R8C/20 Group, R8C/21 Group 14. Timers
Rev.2.00 Aug 27, 2008 Page 140 of 458
REJ09B0250-0200
Figure 14.16 Registers TRBPRE, TRBSC, and TRBPR
Timer RB Prescaler Re
iste
(1)
Symbol Address After Reset
TRBPRE
010Ch FFh
Mode Function Setting Range RW
NOTE:
1. When the TSTOP bit in the TRBCR register is set to 1, the TRBPRE register is set to FFh.
Programmable w aveform
generation mode
RW00h to FFh
Programmable one-shot
generation mode
00h to FFh RW
Programmable w ait one-shot
generation mode
RW00h to FFh
Counts an internal count source or a timer RA
underflow
00h to FFh RW
b7
Timer mode
b0
Timer RB Secondar
Re
iste
(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 re
ister.
If the value does not chan
e, 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 a timer RB prescaler underflow
(one-shot w idth is counted)
00h to FFh WO
(2)
Each value in the TRBPR register and TRBSC register is 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 a timer RB prescaler underflow
(1)
00h to FFh
Programmable one-shot
generation mode
Disable
00h to FFh —
Programmable w aveform
generation mode
b7 b0
Timer mode —Disable 00h to FFh
Timer RB Primar
Re
iste
(2)
Symbol Address After Reset
TRBPR
010Eh FFh
Mode Function Setting Range RW
NOTES:
1.
2. 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 a timer RB prescaler underflow
(1)
00h to FFh
Programmable one-shot
generation mode
Counts a timer RB prescaler underflow
(one-shot w idth is counted)
00h to FFh RW
Each value in the TRBPR register and TRBSC register is reloaded to the counter alternately and counted.
Timer mode RWCounts a timer RB prescaler underflow 00h to FFh
b7 b0
Programmable w ait one-shot
generation mode
Counts a timer RB prescaler underflow
(w ait period width is counted)
00h to FFh RW