BAT32G1x9 user manual | Chapter 6 Universal timer unit Timer4/8
172 / 1149
Rev.1.02
(2) Select the case where the effective edge of the input signal of the TImn pin is selected (CCSmn=1).
The counting clock (fTCLK) is a signal that detects the effective edge of the input signal of the TImn pin and
synchronizes with the rising edge of the next fMCK. In fact, this is a signal that delays the TImn pin by 1 to 2
fMCK clocks (when using a noise filter, a delay of 3 to 4). fMCK clocks). In order to obtain synchronization with
fCLK, the timer count register mn (TCRmn) delays 1 fCLK from the rising edge of the counting clock. For
convenience, it is called "counting at the effective edge of the input signal at the TImn pin".
Fig. 6-25 count clock (f
TCLK
) (CCSmn=1, without the use of a noise filter).
edge detection
edge detection
f
CLK
f
MCK
TSmn(Write)
TEmn
Timn input
sample
waveform
rising edge
detection
singal(f
TCLK
)
①
Start the operation of the timer by placing the TSmn position bit and wait for a valid edge of the TImn input.
②
The rising edge of the TImn input is sampled by f
MCK
.
③
The rising edge of the sampled signal is detected, and the heartbeat signal (counting clock) is output.
Remarks: 1
△
: Counts the rising edge of the clock
▲: Synchronization, increment/decrement of the
counter
2. f
CLK
:
CPU/peripheral hardware clock
f
MCK
: The
operating clock of
channel
n
3. The same waveforms are also measured for the measurement of input pulse intervals, the measurement of high and
low levels of the input signal, the delay counter, and the TImn input of the single-trigger pulse output function.