AT32WB415
Series Reference Manual
2022.04.13
Page 162
Ver 2.00
14
Timer
AT32WB415 timers include basic timers, general-purpose timers, and advanced 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 com parison
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 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
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
TMR1
0
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 16
Up
Down
Up/Down
O
O
O
O
O
O
Timer
synchroniz
ation
ADC
General-
purpose
timer
TMR2
TMR5
16/32
Up
Down
Up/Down
O
O
X
X
O
O
Timer
synchroniz
ation
ADC
TMR4 16
Up
Down
Up/Down
O
O
X
X
O
O
Timer
synchroniz
ation
ADC
TMR9 16
Up
O
O
X
X
X
X
Timer
synchroniz
ation
ADC
TMR1
0
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.