
11
CHAPTER 6 CLOCK GENERATION FUNCTION...............................................................................139
6.1 General........................................................................................................................................139
6.2 Composition...............................................................................................................................139
6.3 Clock Output Function ..............................................................................................................140
6.3.1
Control registers.......................................................................................................................... 140
6.4 Power Saving Functions ...........................................................................................................143
6.4.1
General........................................................................................................................................ 143
6.4.2
HALT mode ................................................................................................................................. 144
6.4.3
IDLE mode................................................................................................................................... 147
6.4.4
Software STOP mode.................................................................................................................. 149
6.5 Oscillation Stabilization Time...................................................................................................150
CHAPTER 7 TIMER/COUNTER FUNCTION........................................................................................153
7.1 16-bit Timer (TM0, TM1).............................................................................................................153
7.1.1
Outline......................................................................................................................................... 153
7.1.2
Function....................................................................................................................................... 153
7.1.3
Configuration............................................................................................................................... 155
7.1.4
Timer 0, 1 control register............................................................................................................ 158
7.2 16-Bit Timer Operation ..............................................................................................................167
7.2.1
Operation as interval timer (16 bits) ............................................................................................ 167
7.2.2
PPG output operation.................................................................................................................. 169
7.2.3
Pulse width measurement ........................................................................................................... 170
7.2.4
Operation as external event counter ........................................................................................... 177
7.2.5
Operation to output square wave ................................................................................................ 178
7.2.6
Operation to output one-shot pulse............................................................................................. 180
7.2.7
Cautions ...................................................................................................................................... 184
7.3 8-bit Timer (TM2 to TM7)............................................................................................................187
7.3.1
Functions..................................................................................................................................... 187
7.3.2
Configuration............................................................................................................................... 188
7.3.3
Timer n control register................................................................................................................ 190
7.4 8-Bit Timer Operation ................................................................................................................195
7.4.1
Operating as an interval timer (8-bit operation)........................................................................... 195
7.4.2
Operating as external event counter ........................................................................................... 197
7.4.3
Operating as square wave output (8-bit resolution)..................................................................... 198
7.4.4
Operating as 8-bit PWM output ................................................................................................... 199
7.4.5
Operating as interval timer (16 bits) ............................................................................................ 202
7.4.6
Cautions ...................................................................................................................................... 204
CHAPTER 8 WATCH TIMER................................................................................................................205
8.1 Function......................................................................................................................................205
8.2 Configuration..............................................................................................................................206
8.3 Watch Timer Control Register ..................................................................................................207
8.4 Operation ....................................................................................................................................209
8.4.1
Operation as watch timer............................................................................................................. 209
8.4.2
Operation as interval timer .......................................................................................................... 210