AT32F425
Series Reference Manual
2022.03.30
Page 209
Ver 2.01
This field is used to define the direction of the channel 1
(input or output), and the selection of input pin when
C3
EN=’0’:
00: Output
01: Input, C3IN is mapped on C3IRAW
10: Input, C3IN is mapped on C4IRAW
11: Input, C3IN is mapped on STCI. This mode works only
when the internal trigger input is selected by STIS.
14.2.4.9 TMR2 and TMR3 channel control register (TMRx_CCTRL)
Bit
Register
Reset value
Type
Description
Bit 15: 14
Reserved
0x0
resd
Kept at its default value.
Bit 13
C4P
0x0
rw
Channel 4 polarity
Pleaser refer to C1P description.
Bit 12
C4EN
0x0
rw
Channel 4 enable
Pleaser refer to C1EN description.
Bit 11: 10
Reserved
0x0
resd
Default value
Bit 9
C3P
0x0
rw
Channel 3 polarity
Pleaser refer to C1P description.
Bit 8
C3EN
0x0
rw
Channel 3 enable
Pleaser refer to C1EN description.
Bit 7: 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: 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:
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.
Bit0
C1EN
0x0
rw
Channel 1 enable
0: Input or output is disabled
1: Input or output is enabled
Table 14-6 Standard CxOUT channel output control bit
CxEN bit
CxOUT output state
0
Output disabled (CxOUT=0, Cx_EN=0)
1
CxOUT = polarity, Cx_EN=1
Note: The state of the external I/O pins connected to the standard CxOUT channel depends on the
CxOUT channel state and the GPIO and IOMUX registers.
14.2.4.10
TMR2 and TMR3 counter value (TMRx_CVAL)
Bit
Register
Reset value
Type
Description
Bit 31: 16
CVAL
0x0000
rw
Counter value
When TMR2 or TMR5 enables plus mode (the PMEN bit
in the TMR_CTRL1 register), the CVAL is expanded to 32
bits.
Bit 15: 0
CVAL
0x0000
rw
Counter value