English
Language : 

UPSD3354DV-40U6 Datasheet, PDF (175/272 Pages) STMicroelectronics – fast 8032 MCU with programmable logic
UPSD33xx
PSD module
Figure 55. 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
System I/O
8000h
csboot3, 8KB
6000h Common Memory to All Pages
csboot2, 8KB
4000h Common Memory to All Pages
csboot1, 8KB
2100h
2000h Common Memory to All Pages csiop, 256B 2000h
csboot0, 8KB
t(s) 0000h Common Memory to All Pages
rs0, 8KB
AI09175
0000h
● Figure 56 on page 175 Place the larger main Flash memory into XDATA space and
uc the smaller secondary Flash into program space for systems that need a large amount
d of Flash for data recording or large look-up tables, and not so much Flash for 8032
ro firmware.
P Figure 56. Mapping: small code / big data
te 8032 PROGRAM
le SPACE (PSEN)
so Page X
b FFFFh
8032 XDATA SPACE
(RD and WR)
Page Page Page Page
0
1
2
3 FFFFh
) - O Nothing
t(sMapped
duc8000h
ro 6000h
P 4000h
lete 2000h
Obso 0000h
csboot3
8KB
csboot2
8KB
csboot1
8KB
csboot0
8KB
fs1 fs3 fs5 fs7
16KB 16KB 16KB 16KB
C000h
fs0 fs2 fs4
16KB 16KB 16KB
fs6
16KB
8000h
System I/O
2100h
csiop, 256 bytes,
Common to All Pages
2000h
rs0, 8KB
Common Memory to All Pages 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
Doc ID 9685 Rev 7
175/272