
iii
8.3.5
Pulse Width Measurement Mode
............................................................................................................ 76
8.3.6
Programmable Pulse Generate (PPG) Output Mode
............................................................................. 79
9.
8-Bit TimerCounter (TC3, TC4)
9.1
Configuration
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
9.2
TimerCounter Control
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
9.3
Function
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
9.3.1
8-Bit Timer Mode (TC3 and 4)
................................................................................................................ 89
9.3.2
8-Bit Event Counter Mode (TC3, 4)
........................................................................................................ 90
9.3.3
8-Bit Programmable Divider Output (PDO) Mode (TC3, 4)
..................................................................... 90
9.3.4
8-Bit Pulse Width Modulation (PWM) Output Mode (TC3, 4)
.................................................................. 93
9.3.5
16-Bit Timer Mode (TC3 and 4)
.............................................................................................................. 95
9.3.6
16-Bit Event Counter Mode (TC3 and 4)
................................................................................................ 96
9.3.7
16-Bit Pulse Width Modulation (PWM) Output Mode (TC3 and 4)
.......................................................... 96
9.3.8
16-Bit Programmable Pulse Generate (PPG) Output Mode (TC3 and 4)
............................................... 99
9.3.9
Warm-Up Counter Mode
....................................................................................................................... 101
9.3.9.1
Low-Frequency Warm-up Counter Mode
(NORMAL1
→
NORMAL2
→
SLOW2
→
SLOW1)
9.3.9.2
High-Frequency Warm-Up Counter Mode
(SLOW1
→
SLOW2
→
NORMAL2
→
NORMAL1)
10.
Asynchronous Serial interface (UART )
10.1
Configuration
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
10.2
Control
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
10.3
Transfer Data Format
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
10.4
Transfer Rate
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
10.5
Data Sampling Method
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
10.6
STOP Bit Length
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
10.7
Parity
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
10.8
Transmit/Receive Operation
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
10.8.1
Data Transmit Operation
.................................................................................................................... 108
10.8.2
Data Receive Operation
..................................................................................................................... 108
10.9
Status Flag
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
10.9.1
Parity Error
.......................................................................................................................................... 109
10.9.2
Framing Error
...................................................................................................................................... 109
10.9.3
Overrun Error
...................................................................................................................................... 109
10.9.4
Receive Data Buffer Full
..................................................................................................................... 110
10.9.5
Transmit Data Buffer Empty
............................................................................................................... 110
10.9.6
Transmit End Flag
.............................................................................................................................. 111
11.
Serial Expansion Interface (SEI)
11.1
Features
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
11.2
SEI Registers
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114
11.2.1
SEI Control Register (SECR)
.............................................................................................................. 114
11.2.1.1
Transfer rate
11.2.2
SEI Status Register (SESR)
............................................................................................................... 115
11.2.3
SEI Data Register (SEDR)
.................................................................................................................. 115
11.3
SEI Operation
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
11.3.1
Controlling SEI clock polarity and phase
............................................................................................ 116
11.3.2
SEI data and clock timing
................................................................................................................... 116
11.4
SEI Pin Functions
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
11.4.1
SCLK pin
............................................................................................................................................. 117