English
Language : 

UPSD3422_06 Datasheet, PDF (195/293 Pages) STMicroelectronics – Turbo Plus Series Fast Turbo 8032 MCU with USB and Programmable Logic
uPSD34xx
PSD module
Figure 67. Mapping: all Flash in code space
FFFFh
8032 PROGRAM
SPACE (PSEN)
Page Page Page Page
0
1
2
3
8032 XDATA SPACE
(RD and WR)
Page X
FFFFh
fs1 fs3 fs5 fs7
16KB 16KB 16KB 16KB
C000h
fs0 fs2 fs4 fs6
16KB 16KB 16KB 16KB
8000h
csboot3, 8KB
6000h Common Memory to All Pages
csboot2, 8KB
4000h Common Memory to All Pages
csboot1, 8KB
2000h Common Memory to All Pages
csboot0, 8KB
0000h Common Memory to All Pages
System I/O
2100h
csiop, 256B 2000h
rs0, 8KB
AI09175
0000h
● Figure 68 Place the larger Main Flash Memory into XDATA space and the smaller
Secondary Flash into program space for systems that need a large amount of Flash for
data recording or large look-up tables, and not so much Flash for 8032 firmware.
Figure 68. Mapping: Small Code / Big Data
8032 PROGRAM
SPACE (PSEN)
Page X
FFFFh
8032 XDATA SPACE
(RD and WR)
Page Page Page Page
0
1
2
3 FFFFh
Nothing
Mapped
8000h
6000h
4000h
2000h
0000h
csboot3
8KB
csboot2
8KB
csboot1
8KB
csboot0
8KB
fs1 fs3 fs5 fs7
16KB 16KB 16KB 16KB
C000h
fs0
16KB
fs2
16KB
fs4
16KB
fs6
16KB
8000h
System I/O
csiop, 256 bytes,
Common to All Pages
rs0, 8KB
Common Memory to All Pages
2100h
2000h
0000h
AI09176
It is also possible to “reclassify” the Flash memories during runtime, moving the memories
between XDATA memory space and program memory space on-the-fly. This essentially
means that the user can override the initial setting during run-time by writing to a csiop
register (the VM Register). This is useful for IAP, because standard 8051 architecture does
not allow writing to program space. For example, if the user wants to update firmware in
Main Flash memory that is residing in program space, the user can temporarily “reclassify”
the Main Flash memory into XDATA space to erase and rewrite it while executing IAP code
195/293