12.1.1 Timer Mode ..........................................................................................................................................73
12.1.2 Pulse Output Mode .............................................................................................................................74
12.1.3 Event Counter Mode ...........................................................................................................................75
12.1.4 Pulse Width Measurement Mode .......................................................................................................76
12.1.5 Pulse Period Measurement Mode.....................................................................................................78
12.2 Timer Y......................................................................................................................... 80
12.2.1 Timer Mode ..........................................................................................................................................83
12.2.2 Programmable Waveform Generation Mode ....................................................................................85
12.3 Timer Z......................................................................................................................... 88
12.3.1 Timer Mode ..........................................................................................................................................91
12.3.2 Programmable Waveform Generation Mode ....................................................................................93
12.3.3 Programmable One-shot Generation Mode...................................................................................... 95
12.3.4 Programmable Wait One-shot Generation Mode .............................................................................98
12.4 Timer C ...................................................................................................................... 101
12.4.1 Input Capture Mode .........................................................................................................................105
12.4.2 Output Compare Mode ....................................................................................................................107
Chapter 13. Serial Interface.............................................. 109
13.1 Clock Synchronous Serial I/O Mode ....................................................................... 114
13.1.1 Polarity Select Function ................................................................................................................... 117
13.1.2 LSB First/MSB First Select Function .............................................................................................. 117
13.1.3 Continuous Receive Mode ............................................................................................................... 118
13.2 Clock Asynchronous Serial I/O (UART) Mode ....................................................... 119
13.2.1 TxD10/RxD1 Select Function (UART1) ............................................................................................122
13.2.2 TxD11 Select Function (UART1) ......................................................................................................122
13.2.3 Bit Rate ..............................................................................................................................................123
Chapter 14. A/D Converter................................................ 124
14.1 One-shot Mode ......................................................................................................... 128
14.2 Repeat Mode ............................................................................................................. 130
14.3 Sample and Hold ......................................................................................................132
14.4 A/D conversion cycles ........................................................................................... 132
14.5 Internal Equivalent Circuit of Analog Input........................................................... 133
14.6 Inflow Current Bypass Circuit ................................................................................ 134
14.7 Output Impedance of Sensor under A/D Conversion........................................... 135
Chapter 15. Programmable I/O Ports .............................. 137
15.1 Description ................................................................................................................ 137
15.1.1 Port PiDirection Register (PDi Register, i=0,1,3,4).........................................................................137
15.1.2 Port Pi Register (Pi Register, i=0 to 4).............................................................................................137
15.1.3 Pull-up Control Register 0, Pull-up Control Register 1 (PUR0 and PUR1 registers) .................. 137
15.1.4 Port P1 Drive Capacity Control Register (DRR Register)..............................................................137
15.2 Port setting................................................................................................................145
15.3 Unassigned Pin Handling ........................................................................................ 151
A-3