
11
CHAPTER 6 CLOCK GENERATOR FUNCTION ................................................................................ 125
6.1
Features ................................................................................................................................ 125
6.2
Configuration........................................................................................................................ 125
6.3
Selecting Input Clock .......................................................................................................... 126
6.3.1
Direct mode ............................................................................................................................... 126
6.3.2
PLL mode .................................................................................................................................. 126
6.3.3
Clock control register (CKC)..................................................................................................... 127
6.4
PLL Lock-up ......................................................................................................................... 129
6.5
Power Save Control............................................................................................................. 130
6.5.1
General ...................................................................................................................................... 130
6.5.2
Control registers ........................................................................................................................ 132
6.5.3
HALT mode................................................................................................................................ 133
6.5.4
IDLE mode ................................................................................................................................. 135
6.5.5
Software STOP mode ............................................................................................................... 137
6.6
Specifying Oscillation Stabilization Time ........................................................................ 139
6.7
Clock Output Control .......................................................................................................... 142
CHAPTER 7 TIMER/COUNTER FUNCTION (REAL-TIME PULSE UNIT).......................................... 143
7.1
Features ................................................................................................................................ 143
7.2
Basic Configuration............................................................................................................. 144
7.2.1
Timer 1....................................................................................................................................... 146
7.2.2
Timer 4....................................................................................................................................... 148
7.3
Control Registers................................................................................................................. 149
7.4
Timer 1 Operation ................................................................................................................ 157
7.4.1
Count operation ......................................................................................................................... 157
7.4.2
Selecting count clock frequency............................................................................................... 158
7.4.3
Overflow ..................................................................................................................................... 159
7.4.4
Clearing/starting timer by TCLR signal input ........................................................................... 160
7.4.5
Capture operation...................................................................................................................... 161
7.4.6
Compare operation.................................................................................................................... 164
7.5
Timer 4 Operation ................................................................................................................ 166
7.5.1
Count operation ......................................................................................................................... 166
7.5.2
Selecting count clock frequency............................................................................................... 166
7.5.3
Overflow ..................................................................................................................................... 166
7.5.4
Compare operation.................................................................................................................... 167
7.6
Application Examples ......................................................................................................... 169
7.7
Note........................................................................................................................................ 177
CHAPTER 8 SERIAL INTERFACE FUNCTION .................................................................................. 179
8.1
Features ................................................................................................................................ 179
8.2
Asynchronous Serial Interface 0 and 1 (UART0 and UART1)....................................... 180
8.2.1
Features..................................................................................................................................... 180
8.2.2
Configuration of asynchronous serial interface ....................................................................... 181
8.2.3
Control registers ........................................................................................................................ 183
8.2.4
Interrupt request ........................................................................................................................ 190
8.2.5
Operation ................................................................................................................................... 191
8.3
Clocked Serial Interface 0 to 3 (CSI0 to CSI3) ................................................................ 195
8.3.1
Features..................................................................................................................................... 195