Operations; Common Operations - Renesas M16C/64A Series User Manual

Table of Contents

Advertisement

M16C/64A Group
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.
R01UH0136EJ0210 Rev.2.10
Jul 31, 2012
18. Timer B
Page 311 of 800

Advertisement

Table of Contents
loading

Table of Contents