BAT32G1x9 user manual | Chapter 6 Universal timer unit Timer4/8
175 / 1149
Rev.1.02
Note: f
MCK
, start trigger heartbeat, and
INTMmn
are synchronized
to
f
CLK
and
are valid within 1 clock.
(2) The operation of the event counter pattern
(1) During the run stop state (TEmn=0), the timer count register mn (TCRmn) maintains the initial value.
(2) By writing "1" to the TSmn bit, enter the run Enabled state (TEmn=1).
(3) Load the value of the timer data register mn (TDRmn) into the TCRmn register while both the TSmn
bit and the TEmn bit become "1" and start counting.
(4) Thereafter, at the effective edge of the TImn input, the value of the TCRmn register is counted down
by counting the clock.
Figure 6-27
Runtime Sequence (Event Counter Pattern).
TSmn(write)
TImn(input)
counting clock
start
trigger
detection
singal
TCR mn initial value
edge detection
edge detection
Note: This is the timing when no noise filter is used. If a noise filter is used, edge detection is delayed by 2
f
MCK
cycles
(
3
to
4
cycles in total
) from the
TImn
input
. The
1-cycle error is due to the
TImn
input being out of sync
with the
counting clock (f
MCK
).