
iv
13. 8-Bit TimerCounter 6 (TC6)
13.1 Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129
13.2 TimerCounter Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130
13.3 Function. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132
13.3.1 Timer Mode......................................................................................................................................... 132
13.3.2 Event Counter Mode........................................................................................................................... 133
13.3.3 Programmable Divider Output (PDO) Mode ....................................................................................... 134
13.3.4 Pulse Width Modulation (PWM) Output Mode .................................................................................... 135
14. Asynchronous Serial interface (UART )
14.1 Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138
14.3 Transfer Data Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140
14.4 Infrared (IrDA) Data Format Transfer Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . 141
14.5 Transfer Rate. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142
14.6 Data Sampling Method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142
14.7 STOP Bit Length . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
14.8 Parity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
14.9 Transmit/Receive Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
14.9.1 Data Transmit Operation .................................................................................................................... 143
14.9.2 Data Receive Operation ..................................................................................................................... 143
14.10 Status Flag . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144
14.10.1 Parity Error........................................................................................................................................ 144
14.10.2 Framing Error.................................................................................................................................... 144
14.10.3 Overrun Error.................................................................................................................................... 144
14.10.4 Receive Data Buffer Full................................................................................................................... 145
14.10.5 Transmit Data Buffer Empty ............................................................................................................. 145
14.10.6 Transmit End Flag ............................................................................................................................ 146
15. Synchronous Serial Interface (SIO1)
15.1 Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147
15.2 Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148
15.3 Serial clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149
15.3.1 Clock source ....................................................................................................................................... 149
15.3.2 Shift edge............................................................................................................................................ 151
15.4 Number of bits to transfer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151
15.5 Number of words to transfer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151
15.6 Transfer Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152
15.6.1 4-bit and 8-bit transfer modes............................................................................................................. 152
15.6.2 4-bit and 8-bit receive modes ............................................................................................................. 154
15.6.3 8-bit transfer / receive mode ............................................................................................................... 155
16. Synchronous Serial Interface (SIO2)
16.1 Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159