eZ80L92 MCU
Product Specification
78
of the timer is achieved by loading 0001h. Maximum duration is achieved by loading
0000h, because the timer first rolls over to FFFFh and then continues counting down to
0000h.
The time-out period of the PRT is returned by the following equation:
Clock Divider Ratio x Reload Value
PRT Time-Out Period
=
System Clock Frequency
To calculate the time-out period with the above equation when using an initial value of
0000h, enter a reload value of 65536 (FFFFh + 1).
Minimum time-out duration is 4 times longer than the input clock period and is generated
by setting the clock divider ratio to 1:4 and the reload value to 0001h. Maximum time-out
duration is 224 (16,777,216) times longer than the input clock period and is generated by
setting the clock divider ratio to 1:256 and the reload value to 0000h.
SINGLE PASS Mode
In SINGLE PASS mode, when the end-of-count value, 0000h, is reached, counting halts,
the timer is disabled, and the PRT_EN bit resets to 0. To restart the timer, the CPU must
reenable the timer by setting the PRT_EN bit to 1. An example of a PRT operating in
SINGLE PASS mode is illustrated in Figure 19. Timer register information is indicated
in Table 29.
CLK
CLKEN
IOWRN
t
t
7:0]
7:0]
0
2
CNTH
CNTL
0
4
3
1
0
IRQ
Figure 19. PRT SINGLE PASS Mode Operation Example
PS013015-0316
Programmable Reload Timers