BAT32G1x9 user manual | Chapter 7 Timer A
232 / 1149
Rev.1.02
Chapter 7
Timer A
7.1 Function of timer A
Timer A is a 16-bit timer capable of measuring pulse outputs, pulse widths and cycles of external inputs, and
counting external events.
The 16-bit timer consists of a reload register and a decrement counter, which are assigned to the same
address. If you access the TA0 register, you can access the reload registers and counters.
The specifications and block diagrams of Timer A are shown in Table 7-1 and Figure 7-1, respectively.
Table 7-1
Specifications for Timer A
Item
content
Operating
mode
Timer mode
Count the count sources.
Pulse output mode
The counting source is counted, and a pulse with opposite polarity is output when
the timer underflow occurs.
Event counter pattern
Count external events.
It can also be operated in deep sleep mode.
Pulse width
measurement mode
Measures the pulse width of the external input.
Pulse period
measurement mode
Measures the pulse period of the external input.
Counting Source (Running Clock)
F
CLK
,
f
CLK
/2,
f
CLK
/8,
f
IL
,
f
SUB
or EVENTC input events.
interrupt
•When the counter underflows
• End of effective width measurement with external input (TAIO) in pulse width
measurement mode
• When entering the setting edge of the external input (TAIO) in pulse period
measurement mode
Select Features
• Collaboration with EVENTC: Events entered by EVENTC can be
selected as the count source.