
R8C/2C Group, R8C/2D Group
Rev.2.00
Dec 05, 2007
REJ09B0339-0200
Figure 14.15
Registers TRBPRE, TRBSC, and TRBPR
Timer RB Secondary Register(3, 4)
Symbol
Address
After Reset
TRBSC
010Dh
FFh
Mode
Function
Setting Range
RW
NOTES:
1.
2.
3.
4. To w rite to the TRBSC register, perform the follow ing steps.
(1) Write the value to the TRBSC register.
(2) Write the value to the TRBPR register. (If the value does not change, w rite the same value second time.)
The count value can be read out by reading the TRBPR register even w hen the secondary period is being counted.
Programmable w ait one-shot
generation mode
Counts timer RB prescaler underflow s
(one-shot w idth is counted)
00h to FFh
WO(2)
The values of registers TRBPR and TRBSC are reloaded to the counter alternately and counted.
When the TSTOP bit in the TRBCR register is set to 1, the TRBSC register is set to FFh.
WO(2)
Counts timer RB prescaler underflow s(1)
00h to FFh
Programmable one-shot
generation mode
Disabled
00h to FFh
—
Programmable w aveform
generation mode
b7
b0
Timer mode
—
Disabled
00h to FFh
Timer RB Prescaler Register(1)
Symbol
Address
After Reset
TRBPRE
010Ch
FFh
Mode
Function
Setting Range
RW
NOTE:
1.
Counts an internal count source or timer RA
underflow s
00h to FFh
RW
b0
Timer mode
b7
RW
Counts an internal count source or timer RA
underflow s
00h to FFh
When the TSTOP bit in the TRBCR register is set to 1, the TRBPRE register is set to FFh.
Programmable w aveform
generation mode
RW
Counts an internal count source or timer RA
underflow s
00h to FFh
Programmable one-shot
generation mode
Counts an internal count source or timer RA
underflow s
00h to FFh
RW
Programmable w ait one-shot
generation mode
Timer RB Primary Register(2)
Symbol
Address
After Reset
TRBPR
010Eh
FFh
Mode
Function
Setting Range
RW
NOTES:
1.
2.
Programmable w ait one-shot
generation mode
Counts timer RB prescaler underflow s
(w ait period w idth is counted)
00h to FFh
RW
b0
b7
Timer mode
RW
Counts timer RB prescaler underflow s
00h to FFh
When the TSTOP bit in the TRBCR register is set to 1, the TRBPR register is set to FFh.
Programmable w aveform
generation mode
RW
Counts timer RB prescaler underflow s(1)
00h to FFh
Programmable one-shot
generation mode
Counts timer RB prescaler underflow s
(one-shot w idth is counted)
00h to FFh
RW
The values of registers TRBPR and TRBSC are reloaded to the counter alternately and counted.