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