x
20.2.2 Erase Block Register 1 (EBR1)............................................................................ 438
20.2.3 Erase Block Register 2 (EBR2)............................................................................ 439
20.2.4 Wait-State Control Register (WSCR)................................................................... 440
20.3 On-Board Programming Modes......................................................................................... 443
20.3.1 Boot Mode............................................................................................................ 444
20.3.2 User Programming Mode...................................................................................... 450
20.4 Programming and Erasing Flash Memory......................................................................... 452
20.4.1 Program Mode...................................................................................................... 452
20.4.2 Program-Verify Mode .......................................................................................... 453
20.4.3 Programming Flowchart and Sample Program..................................................... 454
20.4.4 Erase Mode........................................................................................................... 456
20.4.5 Erase-Verify Mode................................................................................................ 456
20.4.6 Erasing Flowchart and Sample Program .............................................................. 457
20.4.7 Prewrite Verify Mode........................................................................................... 470
20.4.8 Protect Modes....................................................................................................... 470
20.4.9 Interrupt Handling during Flash Memory Programming and Erasing.................. 471
20.5 Flash Memory Emulation by RAM ................................................................................... 473
20.6 Flash Memory Writer Mode (H8/3337YF)........................................................................ 476
20.6.1 Writer Mode Setting ............................................................................................. 476
20.6.2 Socket Adapter and Memory Map........................................................................ 476
20.6.3 Operation in Writer Mode .................................................................................... 478
20.7 Flash Memory Programming and Erasing Precautions...................................................... 486
Section 21 ROM (60-kbyte Single-Power-Supply Flash Memory Version)
...... 495
21.1 Flash Memory Overview ................................................................................................... 495
21.1.1 Mode Pin Settings and ROM Space...................................................................... 495
21.1.2 Features................................................................................................................. 496
21.1.3 Block Diagram...................................................................................................... 497
21.1.4 Input/Output Pins.................................................................................................. 498
21.1.5 Register Configuration.......................................................................................... 498
21.1.6 Mode Control Register (MDCR).......................................................................... 499
21.1.7 Flash Memory Operating Modes.......................................................................... 500
21.2 Flash Memory Register Descriptions................................................................................. 504
21.2.1 Flash Memory Control Register 1 (FLMCR1)..................................................... 504
21.2.2 Flash Memory Control Register 2 (FLMCR2)..................................................... 506
21.2.3 Erase Block Register 2 (EBR2)............................................................................ 507
21.2.4 Wait-State Control Register (WSCR)................................................................... 508
21.3 On-Board Programming Modes......................................................................................... 509
21.3.1 Boot Mode............................................................................................................ 509
21.3.2 User Programming Mode...................................................................................... 515
21.4 Programming/Erasing Flash Memory................................................................................ 516
21.4.1 Program Mode...................................................................................................... 516
21.4.2 Program-Verify Mode .......................................................................................... 517