10.5 Interrupt Sequence ...................................................................................................................................62
10.6 Effective Timing after Controlling Interrupt bit ......................................................................................64
10.7 Multi Interrupt..........................................................................................................................................65
10.8 Interrupt Enable Accept Timing ..............................................................................................................66
10.9 Interrupt Service Routine Address...........................................................................................................66
10.10 Saving/Restore General-Purpose Registers............................................................................................66
10.11 Interrupt Timing.....................................................................................................................................67
10.12 Interrupt Register Overview...................................................................................................................67
10.13 Interrupt Register Description................................................................................................................69
11. Peripheral Hardware.......................................................................................................................................74
11.1 Clock Generator.......................................................................................................................................74
11.2 BIT...........................................................................................................................................................78
11.3 WDT ........................................................................................................................................................80
11.4 WT...........................................................................................................................................................83
11.5 Timer/PWM.............................................................................................................................................86
11.6 Buzzer Driver.........................................................................................................................................108
11.7 USART ..................................................................................................................................................110
11.8 SPI..........................................................................................................................................................128
11.9 I2C..........................................................................................................................................................133
11.10 12-Bit A/D Converter ..........................................................................................................................150
11.11 CALCULATOR_AI ............................................................................................................................155
12. Power Down Operation ................................................................................................................................159
12.1 Overview................................................................................................................................................159
12.2 Peripheral Operation in IDLE/STOP Mode...........................................................................................159
12.3 IDLE mode ............................................................................................................................................160
12.4 STOP mode............................................................................................................................................160
12.5 Release Operation of STOP1, 2 Mode...................................................................................................162
13. RESET..........................................................................................................................................................164
13.1 Overview................................................................................................................................................164
13.2 Reset source...........................................................................................................................................164
13.3 Block Diagram.......................................................................................................................................164
13.4 RESET Noise Canceller.........................................................................................................................165
13.5 Power ON RESET .................................................................................................................................165
13.6 External RESETB Input.........................................................................................................................168
13.7 Brown Out Detector Processor ..............................................................................................................169
14. On-chip Debug System.................................................................................................................................172
14.1 Overview................................................................................................................................................172
14.2 Two-pin external interface.....................................................................................................................173
15. Memory Programming..................................................................................................................................177
15.1 Overview................................................................................................................................................177
15.2 Flash and EEPROM Control and status register....................................................................................177
15.3 Memory map..........................................................................................................................................181
15.4 Serial In-System Program Mode............................................................................................................184
15.5 Parallel Mode.........................................................................................................................................191
15.6 Mode entrance method of ISP and byte-parallel mode..........................................................................194
15.7 Security..................................................................................................................................................195