AT32F425
Series Reference Manual
2022.03.30
Page 190
Ver 2.01
1: Update event occurs, and OVFEN=0, and OVFS=0 in
the TMRx_CTRL1 register:
− An update event occurs when OVFG=1 in the
TMRx_SWEVE register
− An update event occurs when the counter value
(CVAL) is reinitialized by a trigger event.
14.1.4.5 TMR6 and TMR7 software event register (TMRx_SWEVT)
Bit
Register
Reset value
Type
Description
Bit 15: 1
Reserved
0x0000
resd
Kept at its default value.
Bit 0
OVFSWTR
0x0
rw0c
Overflow event triggered by software
An overflow event is trigged by software.
0: No effect
1:Generate an overflow event by software write operation.
14.1.4.6 TMR6 and TMR7 counter value (TMRx_CVAL)
Bit
Register
Reset value
Type
Description
Bit 15: 0
CVAL
0x0000
rw
Counter value
14.1.4.7 TMR6 and TMR7 division (TMRx_DIV)
Bit
Register
Reset value
Type
Description
Bit 15: 0
DIV
0x0000
rw
Divider value
The counter clock frequency f
CK_CNT
= f
TMR_CLK
/ (DIV[15:
0]+1).
At each overflow event, DIV value is sent to the DIV
register.
14.1.4.8 TMR6 and TMR7 period register (TMRx_PR)
Bit
Register
Reset value
Type
Description
Bit 15: 0
PR
0x0000
rw
Period value
This indicates the period value of the TMRx counter. The
timer stops working when the period value is 0.
14.2
General-purpose timer (TMR2 and TMR3)
14.2.1 TMR2 and TMR3 introduction
The general-purpose timer (TMR2 and TMR3) 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.
14.2.2 TMR2 and TMR3 main features
Source of count clock is selectable : internal clock, external clock and internal trigger
16-bit up, down, up/down and encoder mode counter (TMR2/5 can be extended to 32-bit)
4 independent channels for input capture, output compare, PWM generation and one-pulse
mode output
Synchronization control between master and slave timers
Interrupt/DMA is generated at overflow event, trigger event and channel event
Support TMR burst DMA transfer