18.4.2 Mode Programming and Flash Memory Address Space
As its on-chip ROM, the H8/3048F has 128 kbytes of flash memory. The flash memory is
connected to the CPU by a 16-bit data bus. The CPU accesses both byte data and word data in
two states.
The flash memory is assigned to addresses H'00000 to H'1FFFF on the memory map. The mode
pins enable either on-chip flash memory or external memory to be selected for this area. Table
18-8 summarizes the mode pin settings and usage of the flash memory area.
Table 18-8 Mode Pin Settings and Flash Memory Area
Mode Pin Setting
Mode
MD
2
MD
1
MD
0
Flash Memory Area Usage
Mode 0
0
0
0
Illegal setting
Mode 1
0
0
1
External memory area
Mode 2
0
1
0
External memory area
Mode 3
0
1
1
External memory area
Mode 4
1
0
0
External memory area
Mode 5
1
0
1
On-chip flash memory area
Mode 6
1
1
0
On-chip flash memory area
Mode 7
1
1
1
On-chip flash memory area
18.4.3 Features
Features of the flash memory are listed below.
•
Five flash memory operating modes
The flash memory has five operating modes: program mode, program-verify mode, erase
mode, erase-verify mode, and prewrite-verify mode.
•
Block erase designation
Blocks to be erased in the flash memory address space can be selected by bit settings. The
address space includes a large-block area (eight blocks with sizes from 12 kbytes to 16 kbytes)
and a small-block area (eight 512-byte blocks).
•
Program and erase time
Programming one byte of flash memory typically takes 50 µs. Erasing all blocks (128 kbytes)
typically takes 1 s.
570
www.DataSheet4U.com