EasyManua.ls Logo

Renesas RL78/G15

Renesas RL78/G15
765 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
RL78/G15 CHAPTER 6 TIMER ARRAY UNIT
R01UH0959EJ0110 Rev.1.10 Page 259 of 765
Mar 7, 2023
Figure 6-63. Operation Procedure When Delay Counter Function Is Used
Software Operation Hardware Status
TAU
default
setting
Power-off status
(Clock supply is stopped and writing to each register
is disabled.)
Sets the TAUmEN bit of peripheral enable register 0
(PER0) to 1.
Power-on status. Each channel stops operating.
(Clock supply is started and writing to each register is
enabled.)
Sets timer clock select register m (TPSm).
Determines clock frequencies of CKm0 to CKm3.
Channel
default
setting
Sets the corresponding bit of the noise filter enable
register 1 (NFEN1) to 0 (off) or 1 (on).
Sets timer mode register mn (TMRmn) (determines
operation mode of channel).
INTTMmn output delay is set to timer data register mn
(TDRmn).
Clears the TOEmn bit to 0 and stops operation of
TOmn.
Channel stops operating.
(Clock is supplied and some power is consumed.)
Operation is resumed.
Operation
start
Sets the TSmn bit to 1.
The TSmn bit automatically returns to 0 because it
is a trigger bit.
TEmn = 1, and the start trigger detection (the valid
edge of the TImn pin input is detected or the TSmn bit
is set to 1) wait status is set.
The counter starts counting down by the next start
trigger detection.
Detects the TImn pin input valid edge.
Sets the TSmn bit to 1 by the software.
Value of the TDRmn register is loaded to the timer
count register mn (TCRmn).
During
operation
Set value of the TDRmn register can be changed.
The TCRmn register can always be read.
The TSRmn register is not used.
The counter (TCRmn) counts down. When the count
value of TCRmn reaches 0000H, the INTTMmn output
is generated, and the count operation stops until the
next start trigger detection (the valid edge of the TImn
pin input is detected or the TSmn bit is set to 1).
Operation
stop
The TTmn bit is set to 1.
The TTmn bit automatically returns to 0 because it
is a trigger bit.
TEmn = 0, and count operation stops.
The TCRmn register holds count value and stops.
TAU stop
The TAUmEN bit of the PER0 register is cleared
to 0.
Power-off status
All circuits are initialized and SFR of each channel
is also initialized.
Remark m: Unit number (m = 0), n: Channel number (n = 0 to 7)

Table of Contents

Related product manuals