Datasheet

Section 14 Timer RB
REJ09B0465-0300 Rev. 3.00 Page 435 of 982
Sep 17, 2010
H8S/20103, H8S/20203, H8S/20223, H8S/20115, H8S/20215, H8S/20235 Group
Figure 14.4 shows an operation example of the timer RB in programmable wait one-shot
generation mode.
TOSSTF in
TRBOCR
TRGB input pin
TRBIF in TRBIR
Count source
Timer RB prescaler
underflow signal
Timer RB counter
TRBO pin output
TOPL in TRBIOC
Set to 1 by a program.
Set to 0 by a program.
Conditions for the above operation:
TSTART in
TRBCR
"1"
"0"
"1"
"0"
"1"
"0"
"1"
"0"
"1"
"0"
H'00 H'00
Change to 0 at the
end of counting.
TRBPRE = H'01, TRBPR = H'01, TRBSC = H'04
INOSTG = 1 (TRGB one-shot trigger function is enabled.)
INOSEG = 1 (Rising edge trigger)
H'03 H'02 H'01H'04H'01 01h
Set to 0 by a program.
Start of waiting Start of waveform output End of waveform output
Start of counting
Timer RB secondary
reload
Timer RB primary
reload
Change to 1 by writing 1 to TOSST in
TRBOCR or by the TRGB pin input trigger.
Figure 14.4 Operation in Programmable Wait One-Shot Generation Mode