Datasheet

Section 14 Timer RB
REJ09B0465-0300 Rev. 3.00 Page 437 of 982
Sep 17, 2010
H8S/20103, H8S/20203, H8S/20223, H8S/20115, H8S/20215, H8S/20235 Group
(1) TWRC=0
H'01 H'00 H'01
TRBPR
H'06 H'04H'05 H'03 H'02
H'03
H'01 H'00 H'01 H'00 H'01 H'00
H'25
H'02 H'24
(2) TWRC=1
TRBPR
H'06 H'04
H'05 H'03 H'02
H'03
H'01
H'00 H'01 H'00 H'01 H'00 H'01 H'00
H'02
H'01 H'00 H'25
H'01 H'00
Write H'01 to TRBPRE and
H'25 to TRBPR by program.
Count source
Underflow of
timer RB prescaler
Reload register of
timer RB prescaler
Counter of
timer RB prescaler
Counter of timer RB
Previous value New value (H'01)
Reloaded at
the second
count source
Reloaded on
underflow
Previous value
After a writing, data are written to the reload register
after 4 cycles of the source for counting have elapsed.
Reload register is written to
at the first underflow after a write.
Reloaded at the second underflow
of prescaler
Write H'01 to TRBPRE and
H'25 to TRBPR by program.
After a writing, data are written to the reload register
after 4 cycles of the source for counting have elapsed.
Previous value
New value (H'01)
Count source
Reload register of
timer RB prescaler
Counter of
timer RB prescaler
Underflow of
timer RB prescaler
Counter of timer RB
Reloaded at
an underflow
of timer RB
Previous value New value (H'25)
Reload register is written to
at the first underflow after a write.
Reloaded on
underflow
New value (H'25)
Figure 14.5 TWRC Settings and Operation of Prescaler and Counter