Datasheet

V850ES/JG3-H, V850ES/JH3-H CHAPTER 8 16-BIT TIMER/EVENT COUNTER AB (TAB)
R01UH0042EJ0500 Rev.5.00 Page 414 of 1513
Aug 12, 2011
When performing an interval operation in the free-running timer mode, four intervals can be set with one
channel.
To perform the interval operation, the value of the corresponding TABnCCRm register must be re-set in the
interrupt servicing that is executed when the INTTABnCCm signal is detected.
The set value for re-setting the TABnCCRm register can be calculated by the following expression, where “D
m
is the interval period.
Compare register default value: D
m 1
Value set to compare register second and subsequent times: Previous set value + D
m
(If the calculation result is greater than FFFFH, subtract 10000H from the result and set this value to the
register.)
Remark m = 0 to 3,
n = 0, 1