![Cmsemicon BAT32G1 9 Series Скачать руководство пользователя страница 133](http://html1.mh-extra.com/html/cmsemicon/bat32g1-9-series/bat32g1-9-series_user-manual_2627609133.webp)
BAT32G1x9 user manual | Chapter 6 Universal timer unit Timer4/8
133 / 1149
Rev.1.02
6.1 Functions of the universal timer unit
The universal timer unit has the following functions:
6.1.1
Stand-alone channel operation function
The stand-alone channel operation function is a function that can use any channel independently without
being affected by the operating modes of other channels.
(1) Interval timer
It can be used as a reference timer that generates interrupts (INTTMmn) at regular intervals.
Comparision
operation
Action clock
channel N
interrupt
singnal
(INTTmn)
(2) Square wave output
Whenever an INTTMmn interrupt is generated, it alternates and outputs a square wave with a 50% duty cycle
from the output pin of the timer (TOmn).
Comparision
operation
Action clock
channel N
timer output
(TOmn)
(3) External event counters
The effective edges of the input signal of the timer input pin (TImn) are counted and, if a specified number
of times are reached, can be used as an event counter that generates an interrupt.
Comparision
operation
channel N
interrupt
singnal
(INTTmn)
timer input
(TImn)
(4) Crossover function (limited to channel 0 of unit 0).
Divides the input clock of the timer input pin (TI00) and outputs from the output pin (TO00).
Comparision
operation
channel N
timer output
(TOmn)
timer input
(TImn)
(5) Input the measurement of the pulse interval
The interval between input pulses is measured by starting counting at the effective edge of the input
pulse signal at the timer input pin (TImn) and capturing the count value at the effective edge of the next pulse.
capture operation
edge detection
channel N
timer input
(TImn)
00H
xxH
capture
start