18.4.1
Flash Memory Operation ................................................................................ 569
18.4.2
Mode Programming and Flash Memory Address Space ................................ 570
18.4.3
Features........................................................................................................... 570
18.4.4
Block Diagram................................................................................................ 572
18.4.5
Input/Output Pins............................................................................................ 573
18.4.6
Register Configuration.................................................................................... 573
18.5
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
18.6
On-Board Programming Modes ..................................................................................... 582
18.6.1
Boot Mode ...................................................................................................... 582
18.6.2
User Program Mode........................................................................................ 587
18.7
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
18.8
Flash Memory Emulation by RAM ................................................................................ 611
18.9
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
Section 19
Clock Pulse Generator
............................................................................. 633
19.1
Overview......................................................................................................................... 633
19.1.1
Block Diagram................................................................................................ 633
19.2
Oscillator Circuit ............................................................................................................ 634
19.2.1
Connecting a Crystal Resonator ..................................................................... 634
19.2.2
External Clock Input....................................................................................... 636
19.3
Duty Adjustment Circuit................................................................................................. 639
19.4
Prescalers ........................................................................................................................ 639
19.5
Frequency Divider .......................................................................................................... 639
19.5.1
Register Configuration.................................................................................... 639
www.DataSheet4U.com