AT32F425
Series Reference Manual
2022.03.30
Page 241
Ver 2.01
Figure 14-64
Overflow event when PRBEN=0
0
1
2
3
...
31
32
0
1
2
3
...
31
32
0
1
2
3
COUNTER
31
32
0
1
32
...
PR[15:0]
OVFIF
TMR_CLK
0
DIV[15:0]
22
Clear
Clear
Clear
Figure 14-65
Overflow event when PRBEN=1
0
1
2
3
...
21
22
0
1
2
3
...
31
32
0
1
2
3
COUNTER
31
32
0
1
32
...
PR[15:0]
OVFIF
TMR_CLK
0
DIV[15:0]
22
Clear
Clear
Clear
Repetition counter mode:
The repletion counter mode is enabled when the repetition counter value is not equal to 0. In this mode,
the repetition counter is decremented at each counter overflow. An overflow event is generated when
the repetition counter reaches 0. The frequency of the overflow event can be adjusted by setting the
repettion counter value.
Figure 14-66
OVFIF when RPR=2
0
1
2
3
...
31
32
0
1
2
3
...
31
32
0
1
2
3
COUNTER
31
32
0
1
32
...
PR[15:0]
2
1
0
RPR[7:0]
OVFIF
14.5.3.3 TMR input function
Each timer of TMR16 and TMR17 has one independent channel that can be configured as input or output.
As input, the channel can be used for the filtering, selection, division and input capture of the input
signals.
Figure 14-67
Input/output channel 1 main circuit
APB bus
MCU peripheral interface
Channel preload register
Channel shadow register
C1DT
Input
mode
IC1PS
C1EN
C1SWTR
TMR1_SWEVT
Capture
Counter
C1OBEN
C1OBEN
OVF
From time base unit
TMR1_CM1
Comparator
Input
mode
read_in_progress
capture_transfer
write_in_progress
capture_transfer
Output compare
mode
Capture/compare
seletion
C1DT
CVAL=C1DT
CVAL>CIDT
Capture/compare
seletion