English
Language : 

UPSD3354DV-40U6 Datasheet, PDF (176/272 Pages) STMicroelectronics – fast 8032 MCU with programmable logic
PSD module
UPSD33xx
from the secondary Flash memory in program space. After the writing is complete, the main
Flash can be “reclassified” back to program space, then execution can continue from the
new code in main Flash memory. The mapping example of Figure 56 will accommodate this
operation.
27.2.6 Memory sector select rules
When defining sector select signals (FSx, CSBOOTx, RS0, CSIOP, PSELx) in PSDsoft
Express, keep these rules in mind:
● Main Flash and secondary Flash memory sector select signals may not be larger than
their physical sector size as defined in Table 112 on page 166.
● Any main Flash memory sector select may not be mapped in the same address range
as another main Flash sector select (cannot overlap segments of main Flash on top of
each other).
● Any secondary Flash memory sector select may not be mapped in the same address
range as another secondary Flash sector select (cannot overlap segments of
Obsolete Product(s) - Obsolete Product(s) Note:
secondary Flash on top of each other).
● A secondary Flash memory sector may overlap a main Flash memory sector. In the
case of overlap, priority is given to the secondary Flash memory sector.
● SRAM, CSIOP, or PSELx may overlap any Flash memory sector. In the case of overlap,
priority is given to SRAM, CSIOP, or PSELx.
● The address range for sector selects for SRAM, PSELx, and CSIOP must not overlap
each other as they have the same priority, causing contention if overlapped.
PSELx is for optional Peripheral I/O mode on Port A.
Figure 57 illustrates the priority scheme of the memory elements of the PSD module.
Priority refers to which memory will ultimately produce a byte of data or code to the 8032
MCU for a given bus cycle. Any memory on a higher level can overlap and has priority over
any memory on a lower level. Memories on the same level must not overlap.
Example: FS0 is valid when the 8032 produces an address in the range of 8000h to BFFFh.
CSBOOT0 is valid from 8000h to 9FFFh. RS0 is valid from 8000h to 87FFh. Any address
from the 8032 in the range of RS0 always accesses the SRAM. Any address in the range of
CSBOOT0 greater than 87FFh (and less than 9FFFh) automatically addresses secondary
Flash memory. Any address greater than 9FFFh accesses main Flash memory. One-half of
the main Flash memory segment, and one-fourth of the secondary Flash memory segment
cannot be accessed by the 8032 in this example.
176/272
Doc ID 9685 Rev 7