12.3.3 Programmable One-shot Generation Mode ...................................................................................... 80
12.3.4 Programmable Wait One-shot Generation Mode ............................................................................. 83
12.4 Timer C ........................................................................................................................ 86
Chapter 13. Serial Interface ................................................ 89
13.1 Clock Synchronous Serial I/O Mode ......................................................................... 94
13.1.1 Polarity Select Function ..................................................................................................................... 97
13.1.2 LSB First/MSB First Select Function ................................................................................................ 97
13.1.3 Continuous Receive Mode ................................................................................................................. 98
13.2 Clock Asynchronous Serial I/O (UART) Mode ......................................................... 99
13.2.1 TxD10/RxD1 Select Function (UART1) ............................................................................................ 102
13.2.2 TxD11 Select Function (UART1) ...................................................................................................... 102
13.2.3 Bit Rate .............................................................................................................................................. 103
Chapter 14. A/D Converter................................................ 104
14.1 One-shot Mode ......................................................................................................... 108
14.2 Repeat Mode ............................................................................................................. 109
14.3 Sample & Hold .......................................................................................................... 110
14.4 A/D conversion cycles ........................................................................................... 110
14.5 Internal Equivalent Circuit of Analog Input ........................................................... 111
14.6 Inflow Current Bypass Circuit ................................................................................ 112
14.7 Output Impedance of Sensor under A/D Conversion........................................... 113
Chapter 15. Programmable I/O Ports .............................. 115
15. 1 Description ............................................................................................................... 115
15.1.1 Port Pi Direction Register (PDi Register, i = 0, 1, 3, 4) ................................................................... 115
15.1.2 Port Pi Register (Pi Register, i = 0 to 4)........................................................................................... 115
15.1.3 Pull-up Control Register 0, Pull-up Control Register 1 (PUR0 and PUR1 Registers) ................. 115
15.1.4 Port P1 Drive Capacity Control Register (DRR Register) .............................................................. 115
15.2 Port setting ................................................................................................................ 122
15.3 Unassigned Pin Handling ........................................................................................ 128
Chapter 16. Electrical Characteristics ............................. 129
Chapter 17. Flash Memory Version ................................. 140
17.1 Overview .................................................................................................................... 140
17.2 Memory Map .............................................................................................................. 141
17.3 Functions To Prevent Flash Memory from Rewriting............................................ 142
17.3.1 ID Code Check Function .................................................................................................................. 142
17.4 CPU Rewrite Mode .................................................................................................... 143
17.4.1 EW0 Mode .......................................................................................................................................... 144
17.4.2 EW1 Mode .......................................................................................................................................... 144
17.4.3 Software Commands ........................................................................................................................ 150
17.4.4 Status Register .................................................................................................................................. 154
17.4.5 Full Status Check .............................................................................................................................. 155
17.5 Standard Serial I/O Mode ......................................................................................... 157
17.5.1 ID Code Check Function .................................................................................................................. 157
A-3