Index - 4
7.8 Independent Channel Operation Function of Timer Array Unit ............................................. 194
7.8.1 Operation as interval timer/square wave output ............................................................... 194
7.8.2 Operation as external event counter ................................................................................ 199
7.8.3 Operation as input pulse interval measurement ............................................................... 203
7.8.4 Operation as input signal high-/low-level width measurement ......................................... 207
7.8.5 Operation as delay counter ............................................................................................... 211
7.9 Simultaneous Channel Operation Function of Timer Array Unit ........................................... 215
7.9.1 Operation as PWM function .............................................................................................. 215
7.10 Cautions When Using Timer Array Unit ................................................................................ 222
7.10.1 Cautions When Using Timer output .................................................................................. 222
8. TIMER RJ ................................................................................................................................... 223
8.1 Functions of Timer RJ ........................................................................................................... 223
8.2 Configuration of Timer RJ ..................................................................................................... 224
8.3 Registers Controlling Timer RJ ............................................................................................. 225
8.3.1 Peripheral enable register 1 (PER1) ................................................................................. 226
8.3.2 Subsystem clock supply mode control register (OSMC) .................................................. 227
8.3.3 Timer RJ counter register 0 (TRJ0) .................................................................................. 228
8.3.4 Timer RJ control register 0 (TRJCR0) .............................................................................. 229
8.3.5 Timer RJ mode register 0 (TRJMR0) ................................................................................ 230
8.4 Timer RJ Operation .............................................................................................................. 231
8.4.1 Reload Register and Counter Rewrite Operation ............................................................. 231
8.4.2 Timer Mode ....................................................................................................................... 232
8.4.3 Coordination with Event Link Controller (ELC) ................................................................. 233
8.5 Cautions for Timer RJ ........................................................................................................... 234
8.5.1 Count Operation Start and Stop Control ........................................................................... 234
8.5.2 Access to Flags (TUNDF bit in TRJCR0 Register) ........................................................... 234
8.5.3 Access to Counter Register .............................................................................................. 234
8.5.4 When Changing Mode ..................................................................................................... 234
8.5.5 When Timer RJ Operating Clock is Stopped .................................................................... 235
8.5.6 When Count is Forcibly Stopped by TSTOP Bit ............................................................... 235
8.5.7 When Selecting f
IL as Count Source ................................................................................ 235
9. REAL-TIME CLOCK ................................................................................................................... 236
9.1 Functions of Real-time Clock ................................................................................................ 236
9.2 Configuration of Real-time Clock .......................................................................................... 236
9.3 Registers Controlling Real-time Clock .................................................................................. 238
9.3.1 Peripheral enable register 0 (PER0) ................................................................................. 239
9.3.2 Subsystem clock supply mode control register (OSMC) .................................................. 240
9.3.3 Real-time clock control register 0 (RTCC0) ...................................................................... 241
9.3.4 Real-time clock control register 1 (RTCC1) ...................................................................... 242
9.3.5 Second count register (SEC) ............................................................................................ 244
9.3.6 Minute count register (MIN) .............................................................................................. 244
9.3.7 Hour count register (HOUR) ............................................................................................. 245
9.3.8 Day count register (DAY) .................................................................................................. 247
9.3.9 Week count register (WEEK) ............................................................................................ 248
9.3.10 Month count register (MONTH) ........................................................................................ 249
9.3.11 Year count register (YEAR) .............................................................................................. 249
9.3.12 Watch error correction register (SUBCUD) ....................................................................... 250