
xiii
Section 21 ROM.............................................................................................563
21.1 Overview ....................................................................................................................... 563
21.1.1 Block Diagram.................................................................................................. 563
21.1.2 Register Configuration ...................................................................................... 564
21.2 Register Descriptions ..................................................................................................... 564
21.2.1 Mode Control Register (MDCR) ....................................................................... 564
21.3 Operation ....................................................................................................................... 565
21.4 Overview of Flash Memory............................................................................................ 566
21.4.1 Features ............................................................................................................ 566
21.4.2 Block Diagram.................................................................................................. 567
21.4.3 Flash Memory Operating Modes ....................................................................... 568
21.4.4 Pin Configuration.............................................................................................. 572
21.4.5 Register Configuration ...................................................................................... 572
21.5 Register Descriptions ..................................................................................................... 573
21.5.1 Flash Memory Control Register 1 (FLMCR1) ................................................... 573
21.5.2 Flash Memory Control Register 2 (FLMCR2) ................................................... 575
21.5.3 Erase Block Registers 1 and 2 (EBR1, EBR2)................................................... 577
21.5.4 Serial/Timer Control Register (STCR) .............................................................. 578
21.6 On-Board Programming Modes...................................................................................... 579
21.6.1 Boot Mode ........................................................................................................ 580
21.6.2 User Program Mode .......................................................................................... 585
21.7 Programming/Erasing Flash Memory ............................................................................. 586
21.7.1 Program Mode .................................................................................................. 586
21.7.2 Program-Verify Mode ....................................................................................... 587
21.7.3 Erase Mode....................................................................................................... 589
21.7.4 Erase-Verify Mode............................................................................................ 589
21.8 Flash Memory Protection ............................................................................................... 591
21.8.1 Hardware Protection ......................................................................................... 591
21.8.2 Software Protection........................................................................................... 592
21.8.3 Error Protection ................................................................................................ 592
21.9 Interrupt Handling when Programming/Erasing Flash Memory ...................................... 594
21.10 Flash Memory Writer Mode ......................................................................................... 595
21.10.1 Writer Mode Setting ....................................................................................... 595
21.10.2 Socket Adapters and Memory Map ................................................................. 596
21.10.3 Writer Mode Operation ................................................................................... 596
21.10.4 Memory Read Mode ....................................................................................... 598
21.10.5 Auto-Program Mode ....................................................................................... 601
21.10.6 Auto-Erase Mode ............................................................................................ 603
21.10.7 Status Read Mode ........................................................................................... 604
21.10.8 Status Polling .................................................................................................. 606
21.10.9 Writer Mode Transition Time ......................................................................... 606
21.10.10 Notes On Memory Programming................................................................... 607
21.11 Flash Memory Programming and Erasing Precautions.................................................. 607