AT32F425
Series Reference Manual
2022.03.30
Page 250
Ver 2.01
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.5.4.7 TMR16 and TMR17 Channel control register (TMRx_CCTRL)
Bit
Register
Reset value
Type
Description
Bit 15: 4
Reserved
0x0
resd
Kept its default value.
Bit 3
C1CP
0x0
rw
Channel 1 complementary polarity
0: C1COUT is active high.
1: C1COUT is active low.
Bit 2
C1CEN
0x0
rw
Channel 1 complementary enable
0: Output is disabled.
1: Output is enabled.
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:
0: C1IN active edge is on its rising edge. When used as
external trigger, C1IN is not inverted.
1: C1IN active edge is on its falling edge. When used as
external trigger, C1IN is inverted.
Bit 0
C1EN
0x0
rw
Channel 1 enable
0: Input or output is disabled
1: Input or output is enabled
Table 14-13 Complementary output channel CxOUT and CxCOUT control bits with break
function
Control bit
Output state
(1)
OEN bit FCSODIS bit
FCSOEN
bit
CxEN
bit
CxCEN
bit
CxOUT output state
CxCOUT output state
1
X
0
0
0
Output disabled
(no driven by the timer)
CxOUT=0, Cx_EN=0
Output disabled
(no driven by the timer)
CxCOUT=0, CxCEN=0
0
0
1
Output disabled
(no driven by the timer)
CxOUT=0, Cx_EN=0
polarity,
CxCOUT= CxORAW xor
CxCP, CxCEN=1
0
1
0
polarity
CxOUT= CxORAW xor CxP,
Cx_EN=1
Output disabled
(no driven by the timer)
CxCOUT=0, CxCEN=0
0
1
1
pdead-
time,
Cx_EN=1
CxORAW
ipdead-
time,
CxCEN=1
1
0
0
Output disabled
(no driven by the timer)
CxOUT=CxP, Cx_EN=0
Output disabled
(no driven by the timer)
CxCOUT=CxCP,
CxCEN=0