xv
22.6
On-Board Programming Modes........................................................................................ 672
22.6.1 Boot Mode............................................................................................................ 673
22.6.2 User Program Mode ............................................................................................. 678
Programming/Erasing Flash Memory................................................................................ 679
22.7.1 Program Mode...................................................................................................... 679
22.7.2 Program-Verify Mode.......................................................................................... 680
22.7.3 Erase Mode........................................................................................................... 682
22.7.4 Erase-Verify Mode............................................................................................... 682
Flash Memory Protection.................................................................................................. 684
22.8.1 Hardware Protection............................................................................................. 684
22.8.2 Software Protection.............................................................................................. 684
22.8.3 Error Protection.................................................................................................... 685
Interrupt Handling when Programming/Erasing Flash Memory....................................... 686
22.10 Flash Memory Programmer Mode.................................................................................... 687
22.10.1 Programmer Mode Setting ................................................................................... 687
22.10.2 Socket Adapters and Memory Map...................................................................... 688
22.10.3 Writer Mode Operation........................................................................................ 688
22.10.4 Memory Read Mode............................................................................................. 690
22.10.5 Auto-Program Mode ............................................................................................ 693
22.10.6 Auto-Erase Mode.................................................................................................. 694
22.10.7 Status Read Mode................................................................................................. 696
22.10.8 Status Polling........................................................................................................ 697
22.10.9 Writer Mode Transition Time.............................................................................. 697
22.10.10 Notes On Memory Programming....................................................................... 698
22.11 Flash Memory Programming and Erasing Precautions..................................................... 698
22.7
22.8
22.9
Section 23 Clock Pulse Generator
.................................................................................. 701
23.1
Overview............................................................................................................................ 701
23.1.1 Block Diagram...................................................................................................... 701
23.1.2 Register Configuration ......................................................................................... 701
23.2
Register Descriptions......................................................................................................... 702
23.2.1 Standby Control Register (SBYCR) .................................................................... 702
23.2.2 Low-Power Control Register (LPWRCR)............................................................ 703
23.3
Oscillator............................................................................................................................ 703
23.3.1 Connecting a Crystal Resonator........................................................................... 703
23.3.2 External Clock Input ............................................................................................ 705
23.4
Duty Adjustment Circuit.................................................................................................... 708
23.5
Medium-Speed Clock Divider........................................................................................... 708
23.6
Bus Master Clock Selection Circuit.................................................................................. 708
23.7
Subclock Input Circuit....................................................................................................... 708
23.8
Subclock Waveform Shaping Circuit................................................................................ 709
23.9
Clock Selection Circuit...................................................................................................... 709
23.10 X1 and X2 Pins.................................................................................................................. 710