Rev. 7.00 Mar 10, 2005 page xxxiv of xlii
Section 6 ROM..................................................................................................................... 143
6.1 Overview........................................................................................................................... 143
6.1.1 Block Diagram..................................................................................................... 143
6.2 H8/38024 PROM Mode.................................................................................................... 144
6.2.1 Setting to PROM Mode ....................................................................................... 144
6.2.2 Socket Adapter Pin Arrangement and Memory Map........................................... 144
6.3 H8/38024 Programming.................................................................................................... 147
6.3.1 Writing and Verifying.......................................................................................... 147
6.3.2 Programming Precautions.................................................................................... 152
6.4 Reliability of Programmed Data....................................................................................... 153
6.5 Flash Memory Overview .................................................................................................. 154
6.5.1 Features................................................................................................................ 154
6.5.2 Block Diagram..................................................................................................... 155
6.5.3 Block Configuration ............................................................................................ 156
6.5.4 Register Configuration......................................................................................... 158
6.6 Descriptions of Registers of the Flash Memory................................................................ 158
6.6.1 Flash Memory Control Register 1 (FLMCR1) .................................................... 158
6.6.2 Flash Memory Control Register 2 (FLMCR2) .................................................... 161
6.6.3 Erase Block Register (EBR)................................................................................ 162
6.6.4 Flash Memory Power Control Register (FLPWCR)............................................ 162
6.6.5 Flash Memory Enable Register (FENR).............................................................. 163
6.7 On-Board Programming Modes........................................................................................ 164
6.7.1 Boot Mode........................................................................................................... 164
6.7.2 Programming/Erasing in User Program Mode..................................................... 167
6.7.3 Notes on On-Board Programming....................................................................... 168
6.8 Flash Memory Programming/Erasing............................................................................... 168
6.8.1 Program/Program-Verify..................................................................................... 168
6.8.2 Erase/Erase-Verify............................................................................................... 172
6.8.3 Interrupt Handling when Programming/Erasing Flash Memory.......................... 172
6.9 Program/Erase Protection................................................................................................. 174
6.9.1 Hardware Protection............................................................................................ 174
6.9.2 Software Protection ............................................................................................. 174
6.9.3 Error Protection ................................................................................................... 175
6.10 Programmer Mode............................................................................................................ 175
6.10.1 Socket Adapter .................................................................................................... 175
6.10.2 Programmer Mode Commands............................................................................ 176
6.10.3 Memory Read Mode............................................................................................ 179
6.10.4 Auto-Program Mode............................................................................................ 182
6.10.5 Auto-Erase Mode................................................................................................. 184
6.10.6 Status Read Mode................................................................................................ 185