Mitsubishi Electric M32R Series User Manual page 429

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

Advertisement

10
(2) Precautions to be observed when 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 simultaneously in the same clock period,
the write value is set in the counter, whereas the up-count value (before being rewritten) is
latched to the measure register.
• If the timer operates with any clock other than the 1/2 internal peripheral clock while clock bus
1 is selected for the count clock, the counter cannot be written to normally. Therefore, when
operating with any clock other than the 1/2 internal peripheral clock, do not write to the counter.
• If the timer operates with any clock other than the 1/2 internal peripheral clock while clock bus
1 is selected for the count clock, the captured value is one that leads the actual counter value
by one clock period. However, during the 1/2 internal peripheral clock interval from the count
clock, this problem does not occur and the counter value is captured at exact timing.
The diagram below shows the relationship between counter operation and the valid data that can
be captured.
• When 1/2 internal peripheral clock is selected
1/2 internal
peripheral clock
Counter
Capture
• When clock bus 1 is selected
1/2 internal
peripheral clock
Count clock
Counter
Capture
Figure 10.6.4 Mistimed Counter Value and Captured Value
A
B
C
A
B
C
A
B
10-159
MULTIJUNCTION TIMERS
10.6 TML (Input-related 32-bit Timer)
D
E
D
E
B
C
F
F
C
D
Ver.0.10

Advertisement

Table of Contents
loading

Table of Contents