AT32F435/437
Series Reference Manual
2022.11.11
Page 283
Rev 2.03
Figure 14-346
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-357 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
14.3.3.3 TMR input function
Each timer of TMR9 and TMR12 has two independent channels, while each of TMR10, TMR11, TMR13
and TMR14 has an independent channel. Each channel can be configured as input or output.
As input, each channel input signal is handled as follows:
−
TMRx_CHx outputs the pre-processed CxIRAW. Set the C1INSEL bit to select TMRx_CH1 as the
source of C1IRAW.
−
CxIRAW inputs digital filter and outputs filtered CxIF signal. The digital filter uses the CxDF bit to
program sampling frequency and sampling times.
−
CxIF inputs edge detector, and outputs the CxIFPx signal after edge selection. The edge selection
depends on both CxP and CxCP bits. It is possible to select input rising edge, falling edge or both
edges.
−
CxIFPx inputs capture signal selector, and outputs the CxIN signal after capture signal selection.
The capture signal selection is defined by CxC bit . It is possible to select CxIFPx, CyIFPx or STCI
as CxIN source. Of those, CyIFPx (x
≠
y) is the CyIFPy signal that is from Y channel and processed
by channel -x edge detector (for example, C1IFP2 is the channel 1
’s C1IFP1 signal that passed
through channel 2 edge detection). The STCI comes from slave timer controller, and its source is
selected by STIS bit.
−
CxIN outputs the CxIPS signal that is divided by input channel divider. The divider factor can be
defined as No division, /2, /4 or /8, by the CxIDIV bit . It can be used for filtering, selection, division
and input capture of input signals.