18.4.1
18.4.2
18.4.3
18.4.4
18.4.5
18.4.6
Flash Memory Register Descriptions ............................................................................. 574
18.5.1
Flash Memory Control Register ..................................................................... 574
18.5.2
Erase Block Register 1.................................................................................... 577
18.5.3
Erase Block Register 2.................................................................................... 578
18.5.4
RAM Control Register (RAMCR).................................................................. 580
On-Board Programming Modes ..................................................................................... 582
18.6.1
Boot Mode...................................................................................................... 582
18.6.2
User Program Mode........................................................................................ 587
Programming and Erasing Flash Memory...................................................................... 589
18.7.1
Program Mode................................................................................................ 590
18.7.2
Program-Verify Mode..................................................................................... 590
18.7.3
Programming Flowchart and Sample Program............................................... 591
18.7.4
Erase Mode..................................................................................................... 593
18.7.5
Erase-Verify Mode.......................................................................................... 594
18.7.6
Erasing Flowchart and Sample Program ........................................................ 595
18.7.7
Prewrite-Verify Mode..................................................................................... 607
18.7.8
Protect Modes................................................................................................. 607
18.7.9
NMI Input Masking........................................................................................ 610
Flash Memory Emulation by RAM................................................................................ 611
PROM Mode................................................................................................................... 613
18.9.1
PROM Mode Setting ...................................................................................... 613
18.9.2
Socket Adapter and Memory Map.................................................................. 614
18.9.3
Operation in PROM Mode.............................................................................. 616
18.10 Flash Memory Programming and Erasing Precautions.................................................. 624
Flash Memory Operation................................................................................ 569
Mode Programming and Flash Memory Address Space................................ 570
Features........................................................................................................... 570
Block Diagram................................................................................................ 572
Input/Output Pins............................................................................................ 573
Register Configuration.................................................................................... 573
18.5
18.6
18.7
18.8
18.9
Section 19
19.1
Clock Pulse Generator
............................................................................. 633
Overview......................................................................................................................... 633
19.1.1
Block Diagram................................................................................................ 633
Oscillator Circuit ............................................................................................................ 634
19.2.1
Connecting a Crystal Resonator ..................................................................... 634
19.2.2
External Clock Input....................................................................................... 636
Duty Adjustment Circuit................................................................................................. 639
Prescalers........................................................................................................................ 639
Frequency Divider .......................................................................................................... 639
19.5.1
Register Configuration.................................................................................... 639
19.2
19.3
19.4
19.5