AN1176 STMicroelectronics, AN1176 Datasheet - Page 22

no-image

AN1176

Manufacturer Part Number
AN1176
Description
68HC11/PSD813F1 DESIGN GUIDE
Manufacturer
STMicroelectronics
Datasheet
3.3 PSDsoft Design Entry
The 68HC11 design template that is installed with your copy PSDsoft contains the PSDabel file
needed to implement this second design example. Just do the following:
When mapping the 68HC11 firmware in the Address Translate utility of PSDsoft for this second
design example, you still do not need to specify any HEX or S-Record file for the PSD main
flash area. You only need to specify the 68HC11 linker file(s) for the EEPROM area (as in the
first simple design) because the 68HC11 will execute code from EEPROM and download flash
memory. For reference, the following are the only PSDable statements that differ between the
simple design and this enhanced design. No changes to Device Configuration are needed.
Page 20
swap node 117;
unlock node 116;
"**** Node numbers are used the declarations above instead of reserved
"**** the names, pgr7 and pgr6. This allows the actual names, SWAP and
"**** UNLOCK, to appear throughout the reduced logic equations, making
"**** reports more readable also making files compatible with future
"**** PSDsoft features.
"**** The following memory select equations match the memory maps of
"**** Figures 5 and 6. Notice the use of SWAP and UNLOCK.
fs0 = (address >= ^h9000) & (address <= ^hBFFF) & (page == X);
fs1 = (address >= ^h0000) & (address <= ^h3FFF) & (page == 0);
fs2 = (address >= ^h4000) & (address <= ^h7FFF) & (page == 0);
fs3 = (address >= ^h0000) & (address <= ^h3FFF) & (page == 1);
fs4 = (address >= ^h4000) & (address <= ^h7FFF) & (page == 1);
fs5 = (address >= ^h0000) & (address <= ^h3FFF) & (page == 2);
fs6 = (address >= ^h4000) & (address <= ^h7FFF) & (page == 2);
fs7=((address >= ^h4000)&(address <= ^h7FFF)&(page == 3)& !swap)
ees0=((address >= ^hC000)&(address <= ^hDFFF)&(page == X)& !swap)
ees1=((address >= ^hE000)&(address <= ^hFFFF)&(page == X)& !swap)
ees2=(address >= ^h0000)&(address <= ^h1FFF)&(page == 3) ;
ees3=(address >= ^h2000)&(address <= ^h3FFF)&(page == 3) ;
#((address >= ^hC000)&(address <= ^hFFFF)&(page == X)&
#((address >= ^h4000)&(address <= ^h5FFF)&(page == 3)& swap & unlock);
#((address >= ^h6000)&(address <= ^h7FFF)&(page == 3)& swap & unlock);
Open a new project
Select a PSD813F1
Select the 68HC11 design template and you have the core of this design (all PSDabel
equations are there)
Tailor the PSDabel template to meet your system needs
Synthesize and fit the design
Map the MCU Code (68HC11 firmware)
Program the part.
"This is an unused page register bit 'pgr7'
"This is an unused page register bit 'pgr6'
swap);

Related parts for AN1176