
R8C/38T-A Group
16. Timer RB2
Under development Preliminary document
Specifications in this document are tentative and subject to change.
R01UH0241EJ0010 Rev.0.10
Page 251 of 730
Aug 05, 2011
16.3.2
Timer RB2 One-Shot Control Register (TRBOCR)
Notes:
1. Verify that the TOSSTF bit is 0 (one-shot is stopped) before writing 1 (one-shot count starts) to the TOSST bit.
2. When 0 is written to this bit, the value is invalid.
3. Verify that the TOSSTF bit is 1 (one-shot is operating (including wait period)) before writing 1 (one-shot count
stops) to the TOSSP bit.
[Conditions for setting to 0]
When the TSTOP bit in the TRBCR register is set to 1 (count is forcibly stopped).
When the count value reaches 00h and is reloaded in programmable one-shot generation mode.
When the secondary count value reaches 00h and is reloaded in programmable wait one-shot generation mode.
After three cycles of the timer RB2 count source has elapsed when the TOSSP bit is set to 1 (one-shot count
stops).
After three cycles of the timer RB2 count source has elapsed when the TSTART bit in the TRBCR register is
set to 0 (count stops) while timer RB2 is counting (TOSSTF = 1).
[Conditions for setting to 1]
After three cycles of the timer RB2 count source has elapsed when the TOSST bit is set to 1 (one-shot count
starts) while the TCSTF bit is 1 (count enabled).
After three cycles of the timer RB2 count source has elapsed when a trigger is input while the TCSTF bit is 1
(count enabled).
Address 00131h (TRBOCR_0)
Bit
b7b6
b5b4b3
b2b1b0
Symbol
After Reset
0
000
0000
Bit
Symbol
Bit Name
Function
R/W
b0
TOSST
Timer RB2 one-shot start bit
(1, 2)When 1 is written to this bit, one-shot count
starts. The read value is 0.
R/W
b1
TOSSP
Timer RB2 one-shot stop bit
(2, 3)When 1 is written to this bit, one-shot count
stops. The read value is 0.
R/W
b2
TOSSTF Timer RB2 one-shot status flag
0: One-shot is stopped
1: One-shot is operating (including wait period)
R
b3
—
Nothing is assigned. The write value must be 0. The read value is 0.
—
b4
—
b5
—
b6
—
b7
—