Timer Z - Renesas R8C Series User Manual

16-bit single-chip microcomputer
Hide thumbs Also See for R8C Series:
Table of Contents

Advertisement

R8C/1A Group, R8C/1B 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
Dec 08, 2006
REJ09B0252-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 123 of 315
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

Table of Contents