English
Language : 

UPSD3422_06 Datasheet, PDF (193/293 Pages) STMicroelectronics – Turbo Plus Series Fast Turbo 8032 MCU with USB and Programmable Logic
uPSD34xx
PSD module
Table 103. HDL statement example generated from PSDsoft express for memory
map
rs0
= ((address ≥ ^h0000) & (address ≤ ^h1FFF));
csiop = ((address ≥ ^h2000) & (address ≤ ^h20FF));
fs0
= ((address ≥ ^h0000) & (address ≤ ^h3FFF));
fs1
= ((address ≥ ^h4000) & (address ≤ ^h7FFF));
fs2
= ((page == 0)
& (address ≥ ^h8000) & (address ≤ ^hBFFF));
fs3
= ((page == 0)
& (address ≥ ^hC000) & (address ≤ ^hFFFF));
fs4
= ((page == 1)
& (address ≥ ^h8000) & (address ≤ ^hBFFF));
fs5
= ((page == 1)
& (address ≥ ^hC000) & (address ≤ ^hFFFF));
fs6
= ((page == 2)
& (address ≥ ^h8000) & (address ≤ ^hBFFF));
fs7
= ((page == 2)
& (address ≥ ^hC000) & (address ≤ ^hFFFF));
csboot0 = ((address ≥ ^h8000) & (address ≤ ^h9FFF));
csboot1 = ((address ≥ ^hA000) & (address ≤ ^hBFFF));
csboot2 = ((address ≥ ^hC000) & (address ≤ ^hDFFF));
csboot3 = ((address ≥ ^hE000) & (address ≤ ^hFFFF));
Figure 65. PSDsoft express memory mapping
28.2.4
EEPROM emulation
EEPROM emulation is needed if it is desired to repeatedly change only a small number of
bytes of data in Flash memory. In this case EEPROM emulation is needed because
although Flash memory can be written byte-by-byte, it must be erased sector-by-sector, it is
not erasable byte-by-byte (unlike EEPROM which is written AND erased byte-by-byte). So
changing one or two bytes in Flash memory typically requires erasing an entire sector each
time only one byte is changed within that sector.
However, two of the 8K byte sectors of Secondary Flash memory may be used to emulate
EEPROM by using a linked-list software technique to create a small data set that is
193/293