R8C/13 Group
12.2 Timer (Timer Y)
Timer Y, Z mode register
b7 b6 b5 b4 b3 b2 b1 b0
Symbol
TYZMR
Address
008016
After reset
0016
1
1
RW
Bit symbol
TYMOD0
Function
Bit name
Timer Y operation
mode bit
1 : Programmable waveform generation mode
RW
RW
Disabled in programmable waveform
generation mode
INT2/CNTR1 polarity
switching bit(1,3)
R1EDG
TYWC
Set to "1" in programmable waveform
generation mode.(2)
Timer Y write
control bit
RW
RW
0 : Stops counting
1 : Starts counting
Timer Y count
start flag
TYS
Timer Z-related bit
TZMOD0
TZMOD1
RW
RW
TZWC
TZS
RW
RW
NOTES:
1. The IR bit in the INT2IC register may be set to “1” (interrupt requested) when the R1EDG bit is rewritten.
Refer to the paragraph 19.2.5 “Changing Interrupt Factor” in the Usage Notes Reference Book.
2. When TYS bit= 1 (starts counting), the timer Y count value is written to the reload register only.
When TYS bit=0 (stops counting), the timer Y count value is written to both reload register and counter.
3. The INT2 interrupt request is not generated when the TYMOD0 bit is set to “1” (programmable waveform generatio mode).
Timer Y, Z waveform output control register
b7 b6 b5 b4 b3 b2 b1 b0
Symbol
PUM
Address
008416
After reset
0016
0
0 0 0
Bit symbol
Bit name
Reserved bit
RW
RW
Function
Must set to “0”
(b3-b0)
TYOPL
0 : Outputs "H" for primary period
Outputs "L" for secondary period
Outputs "L" when the timer is stopped
1 : Outputs "L" for primary period
Outputs "H" for secondary period
Outputs "H" when the timer is stopped
Timer Y output level
latch
RW
Timer Z-related bits
TZOPL
RW
INOSTG
RW
RW
INOSEG
Figure 12.16 TYZMR Register and PUM Register in Programmable Waveform Generation Mode
Rev.1.20 Jan 27, 2006 page 86 of 205
REJ09B0111-0120