
AT32F413
Series Reference Manual
2022.06.27
Page 224
Rev 2.00
14.2.5.6 Channel control register (TMRx_CCTRL)
Bit
Register
Reset value
Type
Description
Bit 15: 4
Reserved
0x0
resd
Kept at its default value.
Bit 3
C1CP
0x0
rw
Channel 1 complementary polarity
Refer to C1P description on how to define the active edge
of an input signal.
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.
Bit 0
C1EN
0x0
rw
Channel 1 enable
0: Input or output is disabled
1: Input or output is enabled
Table 14-10
Standard CxOUT channel output control bit
CxEN bit
CxOUT output state
0
Output disabled (CxOUT=0)
1
CxOUT = polarity
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.5.7 Counter value (TMRx_CVAL)
Bit
Register
Reset value
Type
Description
Bit 15: 0
CVAL
0x0000
rw
Counter value
14.2.5.8 Division value (TMRx_DIV)
Bit
Register
Reset value
Type
Description
Bit 15: 0
DIV
0x0000
rw
Divider value
The counter clock frequency f
CK_CNT
= f
TMR_CLK
/(DIV[15:
0]+1).
DIV contains the value written at an overflow event.
14.2.5.9 Period register (TMRx_PR)
Bit
Register
Reset value
Type
Description
Bit 15: 0
PR
0x0000
rw
Period value
This defines the period value of the TMRx counter. The
timer stops working when the period value is 0.
14.2.5.10
Channel 1 data register (TMRx_C1DT)
Bit
Register
Reset value
Type
Description
Bit 15: 0
C1DT
0x0000
rw
Channel 1 data register
When the channel 1 is configured as input mode:
The C1DT is the CVAL value stored by the last channel
1 input event (C1IN)
When the channel 1 is configured as output mode:
C1DT is the value to be compared with the CVAL value.
Whether the written value takes effective immediately