Datasheet
Index-5
6.5.3 Operation of counter ....................................................................................................................... 215
6.6 Channel Output (TOmn pin) Control ........................................................................................ 220
6.6.1 TOmn pin output circuit configuration ............................................................................................. 220
6.6.2 TOmn Pin Output Setting ............................................................................................................... 221
6.6.3 Cautions on Channel Output Operation ......................................................................................... 222
6.6.4 Collective manipulation of TOmn bit ............................................................................................... 227
6.6.5 Timer Interrupt and TOmn Pin Output at Operation Start ............................................................... 228
6.7 Timer Input (TImn) Control ........................................................................................................ 229
6.7.1 TImn input circuit configuration ....................................................................................................... 229
6.7.2 Noise filter ...................................................................................................................................... 229
6.7.3 Cautions on channel input operation .............................................................................................. 230
6.8 Independent Channel Operation Function of Timer Array Unit ............................................. 231
6.8.1 Operation as interval timer/square wave output ............................................................................. 231
6.8.2 Operation as external event counter .............................................................................................. 237
6.8.3 Operation as frequency divider (channel 0 only) ............................................................................ 242
6.8.4 Operation as input pulse interval measurement ............................................................................. 246
6.8.5 Operation as input signal high-/low-level width measurement ........................................................ 250
6.8.6 Operation as delay counter ............................................................................................................ 254
6.9 Simultaneous Channel Operation Function of Timer Array Unit ......................................... 259
6.9.1 Operation as one-shot pulse output function .................................................................................. 259
6.9.2 Operation as PWM function ............................................................................................................ 266
6.9.3 Operation as multiple PWM output function ................................................................................... 273
6.9.4 Remote control output function ....................................................................................................... 281
CHAPTER 7 REAL-TIME CLOCK ......................................................................................................... 284
7.1 Functions of Real-time Clock .................................................................................................... 284
7.2 Configuration of Real-time Clock ............................................................................................. 284
7.3 Registers Controlling Real-time Clock ..................................................................................... 286
7.3.1 Peripheral enable register 0 (PER0) ............................................................................................... 287
7.3.2 Subsystem clock supply mode control register (OSMC) ................................................................ 289
7.3.3 Real-time clock control register 0 (RTCC0) .................................................................................... 290
7.3.4 Real-time clock control register 1 (RTCC1) .................................................................................... 291
7.3.5 Second count register (SEC) .......................................................................................................... 293
7.3.6 Minute count register (MIN) ............................................................................................................ 293
7.3.7 Hour count register (HOUR) ........................................................................................................... 294
7.3.8 Day count register (DAY)................................................................................................................ 296
7.3.9 Week count register (WEEK) .......................................................................................................... 297
7.3.10 Month count register (MONTH) .................................................................................................... 298
7.3.11 Year count register (YEAR) .......................................................................................................... 298
7.3.12 Watch error correction register (SUBCUD) ................................................................................... 299
7.3.13 Alarm minute register (ALARMWM) ............................................................................................. 300