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