Timer Z - Renesas R8C/18 Series Hardware Manual

16-bit single-chip mcu
Table of Contents

Advertisement

R8C/18 Group, R8C/19 Group
14.2

Timer Z

Timer Z is an 8-bit timer with an 8-bit prescaler. The prescaler and timer each consist of a reload register
and counter. The reload register and counter are allocated at the same address. Refer to the Tables
14.7 to 14.10 for the Specifications of Each Mode. Timer Z contains timer Z primary and timer Z
secondary reload registers.
Figure 14.11 shows a Block Diagram of Timer Z. Figures 14.12 to 14.15 show registers TZMR, PREZ,
TZSC, TZPR, TZOC, PUM, and TCSS.
Timer Z has the following four operating modes:
Timer mode:
Programmable waveform generation mode:
Programmable one-shot generation mode:
Programmable wait one-shot generation mode:
TZCK1 to TZCK0
= 00b
f1
= 01b
f8
= 10b
Timer X underflow
= 11b
f2
INT0
TZMOD1 to TZMOD0 = 01b, 10b, 11b
TZOUT
TZMOD0 to TZMOD1, TZS: Bits in TZMR register
TZOS, TZOCNT: Bits in TZOC register
Figure 14.11
Block Diagram of Timer Z
Rev.1.30
Apr 14, 2006
REJ09B0222-0130
Reload register
Counter
PREZ register
TZS
Input polarity selected to
Digital filter
be one edge or both edges
INT0PL
INT0EN
TZOCNT = 0
P1_3 bit in P1 register
TZOCNT = 1
TZOPL, INOSTG: Bits in PUM register
TZCK0 to TZCK1: Bits in TCSS register
INT0EN, INT0PL: Bits in INTEN register
Page 117 of 233
The timer counts an internal count source or timer
X underflows.
The timer outputs pulses of a given width
successively.
The timer outputs a one-shot pulse.
The timer outputs a delayed one-shot pulse.
Data bus
TZSC register
TZPR register
Reload register
Reload register
Counter
TZMOD1 to TZMOD0 = 10b, 11b
TZOS
Polarity
select
INOSEG
TZOPL = 1
Toggle
Q
CK
flip-flop
Q
CLR
TZOPL = 0
14. Timers
Timer Z interrupt
INT0 interrupt
Write to TZMR register
TZMOD1 to TZMOD0
= 01b, 10b, 11b

Advertisement

Table of Contents
loading

This manual is also suitable for:

R8c/1 seriesR8c seriesR8c/19 series

Table of Contents