R8C/13 Group
12.2 Timer (Timer Y)
Prescaler Y register
b0
Symbol
PREY
Address
008116
After reset
FF16
b7
Mode
Function
Setting range
0016 to FF16
RW
RW
Internal count source or CNTR1
input is counted
Timer mode
Programmable
waveform generation
mode
Internal count source is counted
0016 to FF16
RW
Timer Y secondary register
b0
b7
Symbol
TYSC
Address
008216
After reset
FF16
Mode
Function
Setting range
0016 to FF16
RW
Disabled
Timer mode
Programmable
waveform generation
mode
Underflow of Prescaler Y is
counted(1)
WO(2)
NOTES:
1. The values of TYPR register and TYSC register are reloaded to the counter alternately for counting.
2. The count value can be read out by reading the TYPR register even when the secondary period is being
counted.
Timer Y primary register
b0
b7
Symbol
TYPR
Address
008316
After reset
FF16
Mode
Function
Setting range
0016 to FF16
RW
RW
Underflow of Prescaler Y is
counted
Timer mode
Programmable
waveform generation
mode
Underflow of Prescaler Y is
counted(1)
RW
0016 to FF16
NOTES:
1. The values of TYPR register and TYSC register are 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
RW
Bit symbol
Function
Bit name
Timer Z one-shot
start bit(1)
0 : Stops one-shot
1 : Starts one-shot
TZOS
Timer Y programmable
waveform generation
output switching bit(2)
0 : Outputs programmable waveform
1 : Outputs the value of P32 port register
TYOCNT
TZOCNT
RW
RW
Timer Z programmable
waveform generation
output switching bit(2)
0 : Outputs programmable waveform
1 : Outputs the value of P3 port register
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.13 PREY Register, TYSC Register, TYPR Register, and TYZOC Register
Rev.1.20 Jan 27, 2006 page 81 of 205
REJ09B0111-0120