AN1178 STMicroelectronics, AN1178 Datasheet - Page 19

no-image

AN1178

Manufacturer Part Number
AN1178
Description
80C32-PSD8XX DESIGN GUIDE
Manufacturer
STMicroelectronics
Datasheet
Figure 7. Memory Map After Moving the Main Flash Memory to Program Space
Memory Map Configuration After Setting the “swap” bit. Next, we want to swap main and secondary
Flash memory and transfer execution to main Flash memory segment fs0. To do so, the “swap” bit must
be set to HI to re-map the Boot Flash memory segments csboot0/csboot1 out of the MCU boot area and
replace it with main Flash memory segment fs0, as shown in Figure 8. So that no program continuity is
lost, the instruction that sets the “swap” bit is executed from csboot0 and the next contiguous instruction
must be in fs0. For example, if the instruction that executes the swap is at location 1000h in csboot0, then
fs0 must contain the next instruction to be executed at location 1002h.
Flash segments FS1,
temporarily overlaps
FS3, FS5 and FS7
Boot Memory
Execute
Here
from
FFFF
C000
8000
E000
4000
2000
0000
Optional Boot Flash/EEPROM
Optional Boot Flash/EEPROM
Optional Boot Flash/EEPROM
Optional Boot Flash/EEPROM
Page 0
16 KByte
FS0
CSBOOT0/EES0
Program Space
CSBOOT2/EES2
CSBOOT1/EES1
CSBOOT3/EES3
Page 1
16 KByte
FS2
Unmapped
16 KBytes
8 KBytes
8 KBytes
8 KBytes
8 KBytes
Page 2
16 KByte
FS4
Page 3
16 KByte
FS6
VM Register = 06h
Not to
unlock = 0
Scale
swap = 0
FFFF
2800
2000
0400
0300
0200
0000
AN1178 - APPLICATION NOTE
PSD Control Register (CSIOP)
LCD Chip Select (CSLCD)
Optional SRAM (RS0)
8xC51 RAM
Unmapped
Unmapped
Data Space
54 KBytes
256 Bytes
256 Bytes
2 KBytes
AI03347B
19/25

Related parts for AN1178