
ROM/Flash Controller
12-12
Élan™SC520 Microcontroller User’s Manual
width of the ROM device, e.g., if a 16-bit write is performed to an 8-bit ROM, two Am5
x
86
CPU write cycles are generated to complete the operation.
All write access to Flash devices must occur in units no smaller than the data width of the
device. For example, 8-bit writes to a 16-bit Flash device are not allowed. Care should be
taken to also avoid 24-bit writes to 16-bit Flash devices, because this generates two Flash
cycles, one with a complete 16-bit write and another with an 8-bit write to a 16-bit Flash
device.
Figure 12-11 Word Write Cycle to Flash Memory
12.5.4
Software Considerations
12.5.4.1
Address Decoding
The ROM controller does not perform address decoding. Address decoding for chip select
generation is provided by the Programmable Address Region (PAR) registers. In addition
to the regions defined in the PAR registers, a default region from FFFF0000–FFFFFFFFh
is defined at system reset to handle early code fetches from the boot ROM. See Chapter 3,
“System Initialization”, and Chapter 4, “System Address Mapping”, for further details on
configuring the address regions for ROM chip selects and the shadowing of ROM.
12.5.4.2
Programming Flash Memory
Flash is available in 8-bit and 16-bit versions and is organized into sectors. Sectors can be
of fixed or variable size and range from 8–32 Kbytes. New, higher density Flash devices
have sector sizes of up to 256 Kbytes.
Several programmable operations can be performed on Flash devices, including sector
erase, sector protect, and programming of individual bytes.
■
The erased value of a byte is 0FFh.
■
Bits can be programmed from a 1 to a 0.
■
If any bit in a sector needs to be changed from a 0 to a 1, the entire sector must be
erased and reprogrammed.
Most Flash devices cannot be programmed while the Am5
x
86 CPU is fetching data from
it, requiring the programming code to reside in another device during programming. This
address
W
CPU clock
ads
GPA25–GPA0
GPD15–GPD0, or
rdy
FLASHWR
BOOTCS
MD15–MD0
bs16
Содержание Elan SC520
Страница 1: ...lan SC520 Microcontroller User s Manual Order 22004A...
Страница 4: ...iv lan SC520 Microcontroller User s Manual...
Страница 28: ...Introduction xxviii lan SC520 Microcontroller User s Manual...
Страница 42: ...Architectural Overview 1 14 lan SC520 Microcontroller User s Manual...
Страница 78: ...System Initialization 3 22 lan SC520 Microcontroller User s Manual...
Страница 108: ...Clock Generation and Control 5 10 lan SC520 Microcontroller User s Manual...
Страница 118: ...Reset Generation 6 10 lan SC520 Microcontroller User s Manual...
Страница 148: ...System Arbitration 8 24 lan SC520 Microcontroller User s Manual...
Страница 214: ...SDRAM Controller 10 36 lan SC520 Microcontroller User s Manual...
Страница 230: ...Write Buffer and Read Buffer 11 16 lan SC520 Microcontroller User s Manual...
Страница 288: ...GP Bus DMA Controller 14 22 lan SC520 Microcontroller User s Manual...
Страница 316: ...Programmable Interval Timer 16 8 lan SC520 Microcontroller User s Manual...
Страница 328: ...Software Timer 18 4 lan SC520 Microcontroller User s Manual...
Страница 346: ...Real Time Clock 20 12 lan SC520 Microcontroller User s Manual...
Страница 360: ...UART Serial Ports 21 14 lan SC520 Microcontroller User s Manual...
Страница 414: ...AMDebug Technology 26 8 lan SC520 Microcontroller User s Manual...