AT32F421
Series Reference Manual
2022.11.11
Page 209
Rev 2.02
This bit indicates whether a recapture is detected when
C1IF=1. This bit is set by hardware, and cleared by
writing “0”.
0: No capture is detected
1: Capture is detected.
Bit 8: 2
Reserved
0x00
resd
Kept at its default value.
Bit 1
C1IF
0x0
rw0c
Channel 1 interrupt flag
If the channel 1 is configured as input mode:
This bit is set by hardware on a capture event. It is
cleared by software or read access to the TMRx_C1DT
0: No capture event occurs
1: Capture event is generated
If the channel 1 is configured as output mode:
This bit is set by hardware on a compare event. It is
cleared by software.
0: No compare event occurs
1: Compare event is generated
Bit 0
OVFIF
0x0
rw0c
Overflow interrupt flag
This bit is set by hardware on an overflow event. It is
cleared by software.
0: No overflow event occurs
1: Overflow event is generated. If OVFEN=0 and
OVFS=0 in the TMR14_CTRL1 register:
− An overflow event is generated when OVFG= 1 in the
TMR14_SWEVE register;
− An overflow event is generated when the counter
CVAL is reinitialized by a trigger event.
14.3.4.4 Software event register (TMR14_SWEVT)
Bit
Register
Reset value
Type
Description
Bit 15: 2
Reserved
0x0000
resd
Kept at its default value.
Bit 1
C1SWTR
0x0
wo
Channel 1 event triggered by software
This bit is set by software to generate a channel 1 event.
0: No effect
1: Generate a channel 1 event.
Bit 0
OVFSWTR
0x0
wo
Overflow event triggered by software
This bit is set by software to generate an overflow event.
0: No effect
1: Generate an overflow event.
14.3.4.5 Channel mode register1 (TMR14_CM1)
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:
Bit
Register
Reset value
Type
Description
Bit 15: 7
Reserved
0x000
resd
Kept at its default value.
Bit 6: 4
C1OCTRL
0x0
rw
Channel 1 output control
This field defines the behavior of the original signal
C1ORAW.
000: Disconnected. C1ORAW is disconnected from
C1OUT;
001: C1ORAW is high when
TMR14_CVAL=TMR14_C1DT
010: C1ORAW is low when
TMR14_CVAL=TMR14_C1DT
011: Switch C1ORAW level when
TMR14_CVAL=TMR14_C1DT
100: C1ORAW is forced low
101: C1ORAW is forced high.