
11
5.8
Periods Where Interrupt is Not Acknowledged................................................................................. 130
CHAPTER 6 CLOCK GENERATION FUNCTION............................................................................. 131
6.1
6.2
6.3
General.................................................................................................................................................. 131
Composition ......................................................................................................................................... 131
Clock Output Function......................................................................................................................... 132
6.3.1 Control registers.......................................................................................................................... 132
Power Saving Functions...................................................................................................................... 135
6.4.1 General ....................................................................................................................................... 135
6.4.2 HALT mode................................................................................................................................. 136
6.4.3 IDLE mode .................................................................................................................................. 139
6.4.4 Software STOP mode ................................................................................................................. 141
Oscillation Stabilization Time ............................................................................................................. 142
6.4
6.5
CHAPTER 7 TIMER/COUNTER FUNCTION...................................................................................... 145
7.1
16-bit Timer (TM0, TM1)....................................................................................................................... 145
7.1.1 Overview..................................................................................................................................... 145
7.1.2 Function ...................................................................................................................................... 145
7.1.3 Configuration............................................................................................................................... 147
7.1.4 Timer 0, 1 Control Register......................................................................................................... 150
Operation .............................................................................................................................................. 158
7.2.1 Operation as interval timer (16 bits)............................................................................................ 158
7.2.2 PPG output operation.................................................................................................................. 160
7.2.3 Pulse width measurement........................................................................................................... 161
7.2.4 Operation as external event counter........................................................................................... 168
7.2.5 Operation to output square wave................................................................................................ 169
7.2.6 Operation to output one-shot pulse............................................................................................. 171
7.2.7 Cautions...................................................................................................................................... 175
8-bit Timer (TM2-TM5).......................................................................................................................... 178
7.3.1 Functions..................................................................................................................................... 178
7.3.2 Configuration............................................................................................................................... 179
7.3.3 Timer n control register............................................................................................................... 181
Operation .............................................................................................................................................. 185
7.4.1 Operating as an interval timer (8-bit operation)........................................................................... 185
7.4.2 Operating as external event counter........................................................................................... 187
7.4.3 Operating as square wave output (8-bit resolution).................................................................... 188
7.4.4 Operating as 8-bit PWM output................................................................................................... 189
7.4.5 Cautions...................................................................................................................................... 194
7.2
7.3
7.4
CHAPTER 8 WATCH TIMER.............................................................................................................. 195
8.1
8.2
8.3
8.4
Function................................................................................................................................................ 195
Configuration........................................................................................................................................ 196
Watch Timer Control Register............................................................................................................. 197
Operation .............................................................................................................................................. 198
8.4.1 Operation as watch timer ............................................................................................................ 198