782
Chapter 38 Reload Timer
5.Operation
(For information on attributes, see “Meaning of Bit Attribute Symbols (Page No.10)”.)
The reload value for the down counter is stored in reload register TMRLR.
Please write using half-word access.
5. Operation
5.1 Internal Clock/Reload Mode
In reload mode, a pulse with a 50% duty ratio is output.
(1) Set reload value to reload register
(2) Enable reload timer count operation
(3) TOT pin output
(4) Generate reload trigger (activation): soft trigger or external event trigger
(5) Load reload value
(6) TOT toggle output start
(7) Counter count down (internal clock synchronous)
(8) Generate counter underflow
(9) TOT pin output level reversal (toggle output)
(10) Reload reload value
(11) Repeat steps (7) to (10)
(See “8. Caution (Page No.794)”.)
X X X X X X X X Initial Value
RX/W RX/W RX/W RX/W RX/W RX/W RX/W RX/W Attribute
Count clock
Activation trigger
(Soft or external event)
Underflow
FFFF
Load
data
Reload
data
Reload
data
0000
-1-1
0000
-1
Data load
T = CLKP
0 (Min)
When RELD=1
Toggle output
OUTL=0
OUTL=1
[Reload register setting value + 1]
Down counter
TOT output waveform
CNTE bit
Count
Count start
Reload data
TMRLR
(1)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(5)
(2)
(10)
(10)
Repeat