Functions Of Timer Array Unit; Independent Channel Operation Function - Renesas RL78/G1P Hardware User Manual

16-bit single-chip microcontroller
Hide thumbs Also See for RL78/G1P:
Table of Contents

Advertisement

RL78/G1P

6.1 Functions of Timer Array Unit

Timer array unit has the following functions.

6.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.
Edge detection
(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.
Edge detection
(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.
Edge detection
R01UH0895EJ0100 Rev.1.00
Nov 29, 2019
Operation clock
Channel n
Operation clock
Channel n
Timer input
(TImn)
Channel n
Timer input
(TImn)
Channel n
Capture operation
Timer input
(TImn)
Channel n
Compare operation
Interrupt signal
Compare operation
Timer output
Interrupt signal
Compare operation
Capture operation
00H
Start
00H
Start
CHAPTER 6 TIMER ARRAY UNIT
(INTTMmn)
(TOmn)
(INTTMmn)
xxH
Capture
xxH
Capture
128

Advertisement

Table of Contents
loading

Table of Contents