Rev. 1.0, 02/00, page iv of 19
Section 7
ROM
.................................................................................................................. 123
7.1
Overview........................................................................................................................... 123
7.1.1
Block Diagram.................................................................................................. 123
7.2
Overview of Flash Memory .............................................................................................. 124
7.2.1
Features............................................................................................................. 124
7.2.2
Block Diagram.................................................................................................. 125
7.2.3
Flash Memory Operating Modes ...................................................................... 126
7.2.4
Pin Configuration ............................................................................................. 130
7.2.5
Register Configuration...................................................................................... 130
7.3
Flash Memory Register Descriptions................................................................................ 131
7.3.1
Flash Memory Control Register 1 (FLMCR1) ................................................. 131
7.3.2
Flash Memory Control Register 2 (FLMCR2) ................................................. 134
7.3.3
Erase Block Register 1 (EBR1) ........................................................................ 137
7.3.4
Erase Block Register 2 (EBR2) ........................................................................ 137
7.3.5
Serial/Timer Control Register (STCR) ............................................................. 138
7.4
On-Board Programming Modes........................................................................................ 140
7.4.1
Boot Mode ........................................................................................................ 141
7.4.2
User Program Mode.......................................................................................... 146
7.5
Programming/Erasing Flash Memory ............................................................................... 147
7.5.1
Program Mode (n=1 when the target address range is H'00000 to H'3FFFF
and n=2 when the target address range is H'40000 to H'47FFF) ...................... 147
7.5.2
Program-Verify Mode ...................................................................................... 148
7.5.3
Erase Mode (n = 1 when the target address range is H'00000 to H'3FFFF
and n = 2 when the target address range is H'40000 to H'47FFF) .................... 150
7.5.4
Erase-Verify Mode (n = 1 when the target address range is H'00000 to H'3FFFF
and n = 2 when the target address range is H'40000 to H'47FFF) .................... 152
7.6
Flash Memory Protection.................................................................................................. 153
7.6.1
Hardware Protection ......................................................................................... 153
7.6.2
Software Protection .......................................................................................... 154
7.6.3
Error Protection ................................................................................................ 155
7.7
Interrupt Handling when Programming/Erasing Flash Memory....................................... 156
7.8
Flash Memory Writer Mode ............................................................................................. 157
7.8.1
Writer Mode Setting ......................................................................................... 157
7.8.2
Socket Adapters and Memory Map .................................................................. 157
7.8.3
Writer Mode Operation..................................................................................... 158
7.8.4
Memory Read Mode ......................................................................................... 159
7.8.5
Auto-Program Mode......................................................................................... 162
7.8.6
Auto-Erase Mode.............................................................................................. 164
7.8.7
Status Read Mode ............................................................................................. 165
7.8.8
Status Polling .................................................................................................... 167
7.8.9
Writer Mode Transition Time........................................................................... 168
7.8.10
Notes on Memory Programming ...................................................................... 168