
AT32F413
Series Reference Manual
2022.06.27
Page 218
Rev 2.00
1111:
f
𝑆𝐴𝑀𝑃𝐿𝐼𝑁𝐺
=
f
𝐷𝑇𝑆
/32, N=8
Bit 3: 2
C1IDIV
0x0
rw
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’
Bit 1: 0
C1C
0x0
rw
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
C1
EN=’0’:
00: Output
01: Input, C1IN is mapped on C1IRAW
10: Input, C1IN is mapped on C2IRAW
11: Input, C1IN is mapped on STCI. This mode works only
when the internal trigger input is selected by STIS.
14.2.4.7 Channel control register (TMR9_CCTRL)
Bit
Register
Reset value
Type
Description
Bit 15: 8
Reserved
0x00
resd
Kept at its default value.
Bit 7
C2CP
0x0
rw
Channel 2 complementary polarity
Pleaser refer to C1P description.
Bit 6
Reserved
0x0
resd
Kept at its default value.
Bit 5
C2P
0x0
rw
Channel 2 polarity
Pleaser refer to C1P description.
Bit 4
C2EN
0x0
rw
Channel 2 enable
Pleaser refer to C1EN description.
Bit 3
C1CP
0x0
rw
Channel 1 complementary polarity
Pleaser refer to C1P description.
Bit 2
Reserved
0x0
resd
Kept at its default value.
Bit 1
C1P
0x0
rw
Channel 1 polarity
When the channel 1 is configured as output mode:
0: C1OUT is active high
1: C1OUT is active low
When the channel 1 is configured as input mode:
00: C1IN rising edge active. When used as external
trigger, C1IN is not inverted.
01: C1IN falling edge active. When used as external
trigger, C1IN is inverted.
10: Reserved
11: C1IN both edges active. When used as external
trigger, C1IN is not inverted.
Bit0
C1EN
0x0
rw
Channel 1 enable
0: Input or output is disabled
1: Input or output is enabled
Table 14-8
Standard CxOUT channel output control bit
CxEN bit
CxOUT output state
0
Output disabled (CxOUT=0)
1
CxOUT = polarity