AT32F421 Series Reference Manual
2022.11.11 Page 281 Rev 2.02
0000: No filter, sampling is done at f
๐ท๐๐
1000: f
๐๐ด๐๐๐ฟ๐ผ๐๐บ
=f
๐ท๐๐
/8, N=6
0001: f
๐๐ด๐๐๐ฟ๐ผ๐๐บ
=f
๐ถ๐พ_๐ผ๐๐
, N=2
1001: f
๐๐ด๐๐๐ฟ๐ผ๐๐บ
=f
๐ท๐๐
/8, N=8
0010: f
๐๐ด๐๐๐ฟ๐ผ๐๐บ
=f
๐ถ๐พ_๐ผ๐๐
, N=4
1010: f
๐๐ด๐๐๐ฟ๐ผ๐๐บ
=f
๐ท๐๐
/16, N=5
0011: f
๐๐ด๐๐๐ฟ๐ผ๐๐บ
=f
๐ถ๐พ_๐ผ๐๐
, N=8
1011: f
๐๐ด๐๐๐ฟ๐ผ๐๐บ
=f
๐ท๐๐
/16, N=6
0100: f
๐๐ด๐๐๐ฟ๐ผ๐๐บ
=f
๐ท๐๐
/2, N=6
1100: f
๐๐ด๐๐๐ฟ๐ผ๐๐บ
=f
๐ท๐๐
/16, N=8
0101: f
๐๐ด๐๐๐ฟ๐ผ๐๐บ
=f
๐ท๐๐
/2, N=8
1101: f
๐๐ด๐๐๐ฟ๐ผ๐๐บ
=f
๐ท๐๐
/32, N=5
0110: f
๐๐๐๐ฟ๐ผ๐๐บ
=f
๐ท๐๐
/4, N=6
1110: f
๐๐ด๐๐๐ฟ๐ผ๐๐บ
=f
๐ท๐๐
/32, N=6
0111: f
๐๐ด๐๐๐ฟ๐ผ๐๐บ
=f
๐ท๐๐
/4, N=8
1111: f
๐๐ด๐๐๐ฟ๐ผ๐๐บ
=f
๐ท๐๐
/32, N=8
Channel 1 input divider
This field defines Channel 1 input divider.
00: No divider. An input capture is generated at each
active edge.
01: An input compare is generated every 2 active edges
10: An input compare is generated every 4 active edges
11: An input compare is generated every 8 active edges
Note: the divider is reset once C1EN=โ0โ
Channel 1 configuration
This field is used to define the direction of the channel 1
(input or output), and the selection of input pin when
C1EN=โ0โ:
00: Output
01: Input, C1IN is mapped on C1IFP1
10: Input, C1IN is mapped on C2IFP1
11: Input, C1IN is mapped on STCI. This mode works
only when the internal trigger input is selected by STIS.
14.6.4.8 TMR1 channel mode register2 (TMR1_CM2)
The channel can be used in input (capture mode) or output (compare mode). The direction of a channel
is defined by the corresponding CxC bits. All the other bits of this register have different functions in input
and output modes. The CxOx describes its function in output mode when the channel is in output mode,
while the CxIx describes its function in output mode when the channel is in input mode. Attention must
be given to the fact that the same bit can have different functions in input mode and output mode.
Output compare mode:
Channel 4 output switch enable
Channel 4 output buffer enable
Channel 4 output enable immediately
Channel 4 configuration
This field is used to define the direction of the channel 1
(input or output), and the selection of input pin when
C4EN=โ0โ:
00: Output
01: Input, C4IN is mapped on C4IFP4
10: Input, C4IN is mapped on C3IFP4
11: Input, C4IN is mapped on STCI. This mode works
only when the internal trigger input is selected by STIS.
Channel 3 output switch enable
Channel 3 output buffer enable
Channel 3 output enable immediately