
R8C/14 Group, R8C/15 Group 13. Timers
Rev.2.10 Jan 19, 2006 Page 98 of 253
REJ09B0164-0210
13.2 Timer Z
Timer Z is an 8-bit timer with an 8-bit prescaler. The prescaler and timer consist of the reload register and
counter. The reload register and counter are allocated at the same address. Refer to the Tables 13.7 to
13.12 for the Specification of Each Modes. Timer Z contains the timer Z primary and timer Z
secondary as the reload register.
Figure 13.11 shows the Block Diagram of Timer Z. Figures 13.12 to 13.15 show the TZMR, PREZ,
TZSC, TZPR, TZOC, PUM, and TCSS registers.
Timer Z contains the following four operating modes.
• Timer mode: The timer counts an internal count source or
Timer X underflow.
• Programmable waveform generation mode: The timer outputs pulses of a given width
successively
• Programmable one-shot generation mode: The timer outputs one-shot pulse.
• Programmable wait one-shot generation mode: The timer outputs delayed one-shot pulse.
Figure 13.11 Block Diagram of Timer Z
=00b
=01b
=11b
f8
f1
=10b
Timer X Underflow
TZCK1 to TZCK0
TZS
Counter
Reload Register
PREZ Register
TZPR Register
Data Bus
Timer Z Interrupt
INT0 Interrupt
Write to TZMR Register
TZMOD0 to TZMOD1, TZS : Bits in TZMR register
TZOS, TZOCNT : Bits in TZOC register
Toggle
Flip-Flop
Q
Q
CLR
CK
TZOPL=1
TZOPL=0
TZOUT
TZSC Register
Reload Register
Counter
Reload Register
TZOCNT=0
TZOCNT=1
P1_3 bit in P1 Register
TZOPL, INOSTG : Bits in PUM register
TZCK0 to TZCK1 : Bits in TCSS register
INT0EN, INT0PL : Bits in INTEN register
f2
TZMOD1 to TZMOD0=10b, 11b
TZOS
Polarity
Select
INOSEG
Digital FilterINT0
INT0EN
INT0PL
TZMOD1 to TZMOD0=01b, 10b, 11b
TZMOD1 to TZMOD0
=01b, 10b, 11b
Input polarity selected to
be one edge or both edges
Comentarios a estos manuales