![ARTERY AT32F435 Series Reference Manual Download Page 323](http://html1.mh-extra.com/html/artery/at32f435-series/at32f435-series_reference-manual_2977592323.webp)
AT32F435/437
Series Reference Manual
2022.11.11
Page 323
Rev 2.03
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 TMRx_CTRL1 register:
− An overflow event is generated when OVFG= 1 in
the TMRx_SWEVE register;
− An overflow event is generated when the counter
CVAL is reinitialized by a trigger event.
14.4.4.6 TMR1, TMR8 and TMR20 software event register
(TMRx_SWEVT)
Bit
Register
Reset value
Type
Description
Bit 15: 8
Reserved
0x000
resd
Kept at its default value.
Bit 7
BRKSWTR
0x0
wo
Brake event triggered by software
This bit is set by software to generate a brake event.
0: No effect
1: Generate a brake event.
Bit 6
TRGSWTR
0x0
rw
Trigger event triggered by software
This bit is set by software to generate a trigger event.
0: No effect
1: Generate a trigger event.
Bit 5
HALLSWTR
0x0
wo
HALL event triggered by software
This bit is set by software to generate a HALL event.
0: No effect
1: Generate a HALL event.
Note: This bit acts only on channels that have
complementary output.
Bit 4
C4SWTR
0x0
wo
Channel 4 event triggered by software
Please refer to C1M description.
Bit 3
C3SWTR
0x0
wo
Channel 3 event triggered by software
Please refer to C1M description.
Bit 2
C2SWTR
0x0
wo
Channel 2 event triggered by software
Please refer to C1M description
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.4.4.7 TMR1, TMR8 and TMR20 channel mode register1 (TMRx_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
C2OSEN
0x0
rw
Channel 2 output switch enable
Bit 14: 12
C2OCTRL
0x0
rw
Channel 2 output control
Bit 11
C2OBEN
0x0
rw
Channel 2 output buffer enable
Bit 10
C2OIEN
0x0
rw
Channel 2 output enable immediately
Bit 9: 8
C2C
0x0
rw
Channel 2 configuration
This field is used to define the direction of the channel 2
(input or output), and the selection of input pin when
C2EN=’0’:
00: Output