R8C/1A Group, R8C/1B Group
14. Timers
Rev.1.30
Dec 08, 2006
Page 132 of 315
REJ09B0252-0130
Figure 14.18
Operating Example of Timer Z in Programmable Waveform Generation Mode
Count source
00h
01h
TZS bit in
TZMR register
1
0
1
0
TZOPL bit in
PUM register
1
0
“H”
“L”
Contents of timer Z
TZOUT pin output
IR bit in
TZIC register
Set to 1 by program
Set to 0 by program
Set to 0 when interrupt request
is acknowledged, or set by
program
Waveform
output starts
Prescaler Z
underflow signal
Timer Z
secondary
reloads
Timer Z
primary
reloads
02h
01h
00h
01h
00h
02h
Waveform
output inverted
Waveform
output inverted
Primary period
Secondary period
Primary period
The above applies under the following conditions.
PREZ = 01h, TZPR = 01h, TZSC = 02h
TZOC register TZOCNT bit = 0