R8C/13 Group
12.3 Timer (Timer Z)
Prescaler Z register
Symbol
PREZ
Address
008516
After reset
FF16
b7
b0
Mode
Function
Setting range
0016 to FF16
RW
RW
Internal count source or Timer Y
underflow is counted
Timer mode
Programmable
waveform
generation mode
Internal count source or Timer Y
underflow is counted
RW
RW
RW
0016 to FF16
0016 to FF16
Internal count source or Timer Y
underflow is counted
Programmable
one-shot
generation mode
Internal count source or Timer Y
underflow is counted
Programmable wait
one-shot generation
mode
0016 to FF16
Timer Z Secondary register
Symbol
TZSC
Address
008616
After reset
FF16
b7
b0
Mode
Timer mode
Function
Setting range
0016 to FF16
RW
Invalid
Programmable
waveform
generation mode
Underflow of
WO(2)
Prescaler Z is counted(1)
Invalid
Programmable
one-shot
generation mode
Underflow of Prescaler Z is
counted
(One-shot width is counted)
Programmable wait
one-shot generation
mode
WO
0016 to FF16
NOTES:
1. Each value in the TZPR register and TZSC register is reloaded to the counter alternately for counting.
2. The count value can be read out by reading the TZSC register even when the secondary period is being
counted.
Timer Z Primary register
Symbol
TZPR
Address
008716
After reset
FF16
b7
b0
Mode
Function
Setting range
0016 to FF16
RW
RW
Underflow of Prescaler Z is
counted
Timer mode
Programmable
waveform
generation mode
Underflow of
Prescaler Z is counted(1)
RW
RW
RW
0016 to FF16
0016 to FF16
Underflow of Prescaler Z is
counted
(One-shot width is counted)
Programmable
one-shot
generation mode
Underflow of Prescaler Z is
counted
(Wait period is counted)
Programmable wait
one-shot generation
mode
0016 to FF16
NOTES:
1. Each value in the TZPR register and TZSC register is reloaded to the counter alternately for counting.
Timer Y, Z output control register(3)
b7 b6 b5 b4 b3 b2 b1 b0
Symbol
TYZOC
Address
008A16
After reset
0016
RW
Bit symbol
TZOS
Function
Bit name
Timer Z one-shot
start bit(1)
0 : Stops one-shot
1 : Starts one-shot
RW
Timer Y programmable
waveform generation
output switching bit(2)
0 : Outputs programmable waveform
1 : Outputs the value of P32 port register
TYOCNT
TZOCNT
RW
Timer Z programmable
waveform generation
output switching bit(2)
0 : Outputs programmable waveform
1 : Outputs the value of P3 port register
RW
1
Nothing is assigned.
When write, set to "0". When read, its content is "0".
(b7-b3)
NOTES:
1. This bit is set to "0" when the output of one-shot waveform is completed. The TZOS bit should be set to "0" if the
one-shot waveform output is terminated by setting the TZS bit in the TYZMR to "0" during the waveform output.
2. This bit is enabled only when operating in programmable waveform generation mode.
3. If executing an instruction which changes this register when the TZOS bit is “1” (during the count), the TZOS is
automatically set to “0” when the count completes while the instruction is executed. If this causes some problems,
execute an instruction which changes this register when the TZOS bit is “0” (one shot stop).
Figure 12.20 PREZ Register, TZSC Register, TZPR Register, and TYZOC Register
Rev.1.20 Jan 27, 2006 page 89 of 205
REJ09B0111-0120