
User’s Manual U18417EJ3V0UD
11
CHAPTER 7 TIMER ARRAY UNIT ..................................................................................................... 243
7.1 Functions of Timer Array Unit ............................................................................................................ 243
7.1.1 Functions of each channel when it operates independently............................................................243
7.1.2 Functions of each channel when it operates with another channel .................................................244
7.1.3 LIN-bus supporting function (channel 7 only)..................................................................................244
7.2 Configuration of Timer Array Unit...................................................................................................... 245
7.3 Registers Controlling Timer Array Unit............................................................................................. 251
7.4 Channel Output (TOmn pin) Control.................................................................................................. 274
7.4.1 TOmn pin output circuit configuration .............................................................................................274
7.4.2 TOmn Pin Output Setting ................................................................................................................275
7.4.3 Cautions on Channel Output Operation ..........................................................................................276
7.4.4 Collective manipulation of TOmn bits..............................................................................................279
7.4.5 Timer Interrupt and TOmn Pin Output at Operation Start ...............................................................280
7.5 Channel Input (TImn Pin) Control....................................................................................................... 281
7.5.1 TImn edge detection circuit .............................................................................................................281
7.6 Basic Function of Timer Array Unit ................................................................................................... 282
7.6.1 Overview of single-operation function and combination operation function ....................................282
7.6.2 Basic rules of combination operation function.................................................................................282
7.6.3 Applicable range of basic rules of combination operation function..................................................283
7.7 Operation of Timer Array Unit as Independent Channel ................................................................ 284
7.7.1 Operation as interval timer/square wave output..............................................................................284
7.7.2 Operation as external event counter ...............................................................................................291
7.7.3 Operation as frequency divider (channel 0 of unit 0 fonly) ..............................................................294
7.7.4 Operation as input pulse interval measurement..............................................................................298
7.7.5 Operation as input signal high-/low-level width measurement ........................................................302
7.8 Operation of Plural Channels of Timer Array Unit...........................................................................306
7.8.1 Operation as PWM function ............................................................................................................306
7.8.2 Operation as one-shot pulse output function...................................................................................313
7.8.3 Operation as multiple PWM output function ....................................................................................320
CHAPTER 8 REAL-TIME COUNTER .................................................................................................. 328
8.1 Functions of Real-Time Counter ........................................................................................................ 328
8.2 Configuration of Real-Time Counter.................................................................................................. 328
8.3 Registers Controlling Real-Time Counter......................................................................................... 330
8.4 Real-Time Counter Operation ............................................................................................................. 345
8.4.1 Starting operation of real-time counter ............................................................................................345
8.4.2 Shifting to STOP mode after starting operation...............................................................................346
8.4.3 Reading/writing real-time counter ...................................................................................................347
8.4.4 Setting alarm of real-time counter ...................................................................................................349
8.4.5 1 Hz output of real-time counter......................................................................................................350
8.4.6 32.768 kHz output of real-time counter ...........................................................................................350
8.4.7 512 Hz, 16.384 kHz output of real-time counter..............................................................................350
8.4.8 Example of watch error correction of real-time counter...................................................................351