CHAPTER 7 TIMER ARRAY UNIT
Page 140 of 920
7.1
Functions of Timer Array Unit
Timer array unit has the following functions.
7.1.1
Independent channel operation function
By operating a channel independently, it can be used for the following purposes without being affected by the
operation mode of other channels.
(1) Interval timer
Each timer of a unit can be used as a reference timer that generates an interrupt (INTTMmn) at fixed
intervals.
(2) Square wave output
A toggle operation is performed each time INTTMmn interrupt is generated and a square wave with a duty
factor of 50% is output from a timer output pin (TOmn).
(3) External event counter
Each timer of a unit can be used as an event counter that generates an interrupt when the number of the
valid edges of a signal input to the timer input pin (TImn) has reached a specific value.
(4) Input pulse interval measurement
Counting is started by the valid edge of a pulse signal input to a timer input pin (TImn). The count value of
the timer is captured at the valid edge of the next pulse. In this way, the interval of the input pulse can be
measured.
(5) Measurement of high-/low-level width of input signal
Counting is started by a single edge of the signal input to the timer input pin (TImn), and the count value is
captured at the other edge. In this way, the high-level or low-level width of the input signal can be measured.
(Note, Caution, and Remark are listed on the next page.)
Interrupt signal
(INTTMmn)
Operation clock
Compare operation
Channel n
Timer output
(TOmn)
Operation clock
Compare operation
Channel n
Interrupt signal
(INTTMmn)
Timer input
(TImn)
Compare operation
Channel n
Edge detection
Timer input
(TImn)
Capture operation
Channel n
Capture
Start
00H
xxH
Edge detection
Timer input
(TImn)
Capture operation
Channel n
Capture
Start
00H
xxH
Edge detection
Summary of Contents for RL78/G1H
Page 941: ...R01UH0575EJ0120 RL78 G1H...