
AT32F413
Series Reference Manual
2022.06.27
Page 182
Rev 2.00
14
Timer
AT32F413 timers include basic timers, general-purpose timers, and advanced-control timers.
Please refer to
Section 14.1
Section 14.3
for the detailed function modes. All functions of different
timers are shown in the following tables.
Table 14-1
TMR functional comparison
Timer type Timer
Counter
bit
Count
mode
Repetition Prescaler
DMA
requests
Capture/
compare
channel
PWM
input
mode
EXT
input
Break
input
Advanced-
control timer
TMR1
TMR8
16
Up
Down
Up/Down
8-bit
1~65535
O
4
O
O
O
General-
purpose
timer
TMR2
TMR5
16/32
Up
Down
Up/Down
X
1~65535
O
4
O
TMR2
only
X
TMR3
TMR4
16
Up
Down
Up/Down
X
1~65535
O
4
O
TMR3
only
X
TMR9 16
Up
X
1~65535
X
2
O
X
X
TMR10
TMR11
16
Up
X
1~65535
X
1
X
X
X
Timer
type
Timer
Counter
bit
Count
mode
PWM
output
Single
pulse
output
Complementary
output
Dead-
time
Encoder
interface
connection
Interfacing
with hall
sensors
Linkage
peripheral
Advanced-
control
timer
TMR1
TMR8
16
Up
Down
Up/Down
O
O
O
O
O
O
Timer syn./ADC
General-
purpose
timer
TMR2
TMR5
16/32
Up
Down
Up/Down
O
O
X
X
O
O
Timer syn./ADC
TMR3
TMR4
16
Up
Down
Up/Down
O
O
X
X
O
O
Timer syn./ADC
TMR9
TMR12
16
Up
O
O
X
X
X
X
Timer syn.
TMR10
TMR11
16
Up
O
O
X
X
X
X
NA
14.1 General-purpose timer (TMR2 to TMR5)
14.1.1 TMRx introduction
The general-purpose timer (TMR2 to TMR5) consists of a 16-bit counter supporting up, down, up/down
(bidirectional) counting modes, four capture/compare registers, and four independent channels to
achieve input capture and programmable PWM output.