Chapter 16. Electrical Characteristics............................. 152
Chapter 17. Flash Memory Version ................................. 165
17.1 Overview.................................................................................................................... 165
17.2 Memory Map.............................................................................................................. 166
17.3 Functions To Prevent Flash Memory from Rewriting............................................ 167
17.3.1 ID Code Check Function ..................................................................................................................167
17.4 CPU Rewrite Mode.................................................................................................... 168
17.4.1 EW0 Mode ..........................................................................................................................................169
17.4.2 EW1 Mode ..........................................................................................................................................169
17.4.3 Software Commands ........................................................................................................................175
17.4.4 Status Register..................................................................................................................................179
17.4.5 Full Status Check ..............................................................................................................................180
17.5 Standard Serial I/O Mode ......................................................................................... 182
17.5.1 ID Code Check Function ..................................................................................................................182
Chapter 18. On-chip Debugger ........................................ 186
18.1 Address Match Interrupt .......................................................................................... 186
18.2 Single Step Interrupt ................................................................................................ 186
18.3 UART1........................................................................................................................ 186
18.4 BRK Instruction ........................................................................................................ 186
Chapter 19. Usage Notes .................................................. 187
19.1 Stop Mode and Wait Mode ....................................................................................... 187
19.1.1 Stop Mode..........................................................................................................................................187
19.1.2 Wait Mode ..........................................................................................................................................187
19.2 Interrupts ................................................................................................................... 188
19.2.1 Reading Address 0000016 ............................................................................................................................................ 188
19.2.2 SP Setting ..........................................................................................................................................188
19.2.3 External Interrupt and Key Input Interrupt .....................................................................................188
19.2.4 Watchdog Timer Interrupt ................................................................................................................188
19.2.5 Changing Interrupt Factor................................................................................................................189
19.2.6 Changing Interrupt Control Register ..............................................................................................190
19.3 Clock Generation Circuit ......................................................................................... 191
19.3.1 Oscillation Stop Detection Function ...............................................................................................191
19.3.2 Oscillation Circuit constants ...........................................................................................................191
19.4 Timers ........................................................................................................................ 192
19.4.1 Timers X, Y and Z ..............................................................................................................................192
19.4.2 Timer X ...............................................................................................................................................192
19.4.3 Timer Y ...............................................................................................................................................192
19.4.4 Timer Z ...............................................................................................................................................192
19.4.5 Timer C...............................................................................................................................................192
19.5 Serial Interface .......................................................................................................... 193
19.6 A/D Converter............................................................................................................ 194
19.7 Flash Memory Version ............................................................................................. 195
19.7.1 CPU Rewrite Mode ............................................................................................................................195
A-4