Renesas M32R/ECU Series User Manual page 380

Mitsubishi 32-bit risc single-chip microcomputers
Table of Contents

Advertisement

10
(2) Precautions on using TML measure input
The following describes precautions to be observed when using TML measure input.
• If measure event input and write to the counter occur in the same clock period, the write value is set in the
counter, whereas the up-count value (before being rewritten) is latched into the measure register.
• If clock bus 1 is selected and any clock other than BCLK/2 is used for the timer, the counter cannot be
written normally. Therefore, when using any clock other than BCLK/2, do not write to the counter.
• If clock bus 1 is selected and any clock other than BCLK/2 is used for the timer, the value captured into the
measure register is one count larger the counter value. During the count clock to BCLK/2 period interval,
however, the captured value is exactly the counter value.
The diagram below shows the relationship between counter operation and the valid data that can be cap-
tured.
• When BCLK/2 is selected
Counter
Captured
• When clock bus 1 is selected
Count clock
Captured
Figure 10.6.3 Mistimed Counter Value and the Captured Value
BCLK/2
A
A
BCLK/2
Counter
10.6 TML (Input-Related 32-Bit Timer)
B
C
B
C
A
B
B
C
10-137
MULTIJUNCTION TIMERS
D
E
F
D
E
F
C
D
32180 Group User's Manual (Rev.1.0)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents