ix
Section 19 ROM (32-kbyte Dual-Power-Supply Flash Memory Version)
......... 373
19.1 Flash Memory Overview ................................................................................................... 373
19.1.1 Flash Memory Operating Principle ...................................................................... 373
19.1.2 Mode Programming and Flash Memory Address Space...................................... 374
19.1.3 Features................................................................................................................. 374
19.1.4 Block Diagram...................................................................................................... 375
19.1.5 Input/Output Pins.................................................................................................. 376
19.1.6 Register Configuration.......................................................................................... 376
19.2 Flash Memory Register Descriptions................................................................................. 377
19.2.1 Flash Memory Control Register (FLMCR).......................................................... 377
19.2.2 Erase Block Register 1 (EBR1)............................................................................ 378
19.2.3 Erase Block Register 2 (EBR2)............................................................................ 379
19.2.4 Wait-State Control Register (WSCR)................................................................... 380
19.3 On-Board Programming Modes......................................................................................... 383
19.3.1 Boot Mode............................................................................................................ 384
19.3.2 User Programming Mode...................................................................................... 390
19.4 Programming and Erasing Flash Memory......................................................................... 392
19.4.1 Program Mode...................................................................................................... 392
19.4.2 Program-Verify Mode .......................................................................................... 393
19.4.3 Programming Flowchart and Sample Program .................................................... 394
19.4.4 Erase Mode........................................................................................................... 396
19.4.5 Erase-Verify Mode................................................................................................ 396
19.4.6 Erasing Flowchart and Sample Program .............................................................. 397
19.4.7 Prewrite Verify Mode........................................................................................... 410
19.4.8 Protect Modes....................................................................................................... 410
19.4.9 Interrupt Handling during Flash Memory Programming and Erasing.................. 411
19.5 Flash Memory Emulation by RAM ................................................................................... 413
19.6 Flash Memory Writer Mode (H8/3334YF)........................................................................ 416
19.6.1 Writer Mode Setting ............................................................................................. 416
19.6.2 Socket Adapter and Memory Map........................................................................ 416
19.6.3 Operation in Writer Mode .................................................................................... 418
19.7 Flash Memory Programming and Erasing Precautions...................................................... 426
Section 20 ROM (60-kbyte Dual-Power-Supply Flash Memory Version)
......... 433
20.1 Flash Memory Overview ................................................................................................... 433
20.1.1 Flash Memory Operating Principle ...................................................................... 433
20.1.2 Mode Programming and Flash Memory Address Space...................................... 434
20.1.3 Features................................................................................................................. 434
20.1.4 Block Diagram...................................................................................................... 435
20.1.5 Input/Output Pins.................................................................................................. 436
20.1.6 Register Configuration.......................................................................................... 436
20.2 Flash Memory Register Descriptions................................................................................. 437
20.2.1 Flash Memory Control Register (FLMCR).......................................................... 437