A - 5
18.4 A/D Conversion Cycles ......................................................................................................................... 371
18.5 Internal Equivalent Circuit of Analog Input .......................................................................................... 372
18.6 Output Impedance of Sensor Under A/D Conversion ........................................................................... 373
18.7 Notes on A/D Converter ........................................................................................................................ 374
19. Flash Memory ............................................................................................................................. 375
19.1 Overview ............................................................................................................................................... 375
19.2 Memory Map ......................................................................................................................................... 377
19.3 Functions to Prevent Rewriting of Flash Memory ................................................................................ 380
19.3.1 ID Code Check Function .................................................................................................................. 380
19.3.2 ROM Code Protect Function ............................................................................................................ 381
19.4 CPU Rewrite Mode ............................................................................................................................... 382
19.4.1 EW0 Mode ........................................................................................................................................ 383
19.4.2 EW1 Mode ........................................................................................................................................ 383
19.4.3 Software Commands ......................................................................................................................... 392
19.4.4 Status Registers ................................................................................................................................. 397
19.4.5 Full Status Check .............................................................................................................................. 398
19.5 Standard Serial I/O Mode ...................................................................................................................... 400
19.5.1 ID Code Check Function .................................................................................................................. 400
19.6 Parallel I/O Mode .................................................................................................................................. 404
19.6.1 ROM Code Protect Function ............................................................................................................ 404
19.7 Notes on Flash Memory ........................................................................................................................ 405
19.7.1 CPU Rewrite Mode ........................................................................................................................... 405
20. Electrical Characteristics ............................................................................................................ 408
21. Usage Notes ............................................................................................................................... 428
21.1 Notes on Clock Generation Circuit ....................................................................................................... 428
21.1.1 Stop Mode ......................................................................................................................................... 428
21.1.2 Wait Mode ........................................................................................................................................ 428
21.1.3 Oscillation Stop Detection Function ................................................................................................. 428
21.1.4 Oscillation Circuit Constants ............................................................................................................ 428
21.2 Notes on Interrupts ................................................................................................................................ 429
21.2.1 Reading Address 00000h .................................................................................................................. 429
21.2.2 SP Setting .......................................................................................................................................... 429
21.2.3 External Interrupt and Key Input Interrupt ....................................................................................... 429
21.2.4 Changing Interrupt Sources .............................................................................................................. 430
21.2.5 Changing Interrupt Control Register Contents ................................................................................. 431
21.3 Notes on Timers .................................................................................................................................... 432
21.3.1 Notes on Timer RA ........................................................................................................................... 432
21.3.2 Notes on Timer RB ........................................................................................................................... 433
21.3.3 Notes on Timer RD ........................................................................................................................... 437
21.3.4 Notes on Timer RE ........................................................................................................................... 443
21.4 Notes on Serial Interface ....................................................................................................................... 444
21.5 Clock Synchronous Serial Interface ...................................................................................................... 445
21.5.1 Notes on Clock Synchronous Serial I/O with Chip Select ............................................................... 445
21.5.2 Notes on I
2
C Bus Interface ............................................................................................................... 445
21.6 Notes on Hardware LIN ........................................................................................................................ 446
21.7 Notes on A/D Converter ........................................................................................................................ 447