
R01UH0092EJ0110 Rev.1.10
Page 313 of 807
Jul 31, 2012
M16C/64C Group
18. Timer B
18.3
Operations
18.3.1
Common Operations
18.3.1.1
Operating Clock
The count source for each timer acts as a clock, controlling such timer operations as counting and
reloading.
18.3.1.2
Counter Reload Timing
Timer Bi starts counting from the value (n) set in the TBi register. The TBi register consists of a counter
and a reload register. The counter starts decrementing the count source from n, reloads a value in the
reload register at the next count source after the value becomes 0000h, and continues decrementing.
The value written in the TBi register is reflected in the counter and the reload register at the following
timings.
•
When the count is stopped
•
Between when the count starts and the first count source is input
The value written to the TBi register is immediately written to the counter and the reload register.
•
After the count starts and the first count source is input
The value written to the TBi register is immediately written to the reload register.
The counter continues counting and reloads the value in the reload register at the next count
source after the value becomes 0000h.
Содержание M16C Series
Страница 846: ...M16C 64C Group R01UH0092EJ0110...