AT32WB415
Series Reference Manual
2022.04.13
Page 178
Ver 2.00
14.1.4.6 Software event register (TMRx_SWEVT)
Bit
Register
Reset value
Type
Description
Bit 15: 7
Reserved
0x000
resd
Kept at its default value.
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
Reserved
0x0
resd
Kept at its default value.
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.1.4.7 Channel mode register1 (TMRx_CM1)
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
01: Input,
,
C2IN is mapped on C2IRAW
10: Input, C2IN is mapped on C1IRAW
11: Input, C2IN is mapped on STCI. This mode works only
when the internal trigger input is selected by STIS
register.
Bit 7
C1OSEN
0x0
rw
Channel 1 output switch enable
0: C1ORAW is not affected by EXT
1: Once high level is detect on EXT input, clear C1ORAW.
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 TMRx_CVAL=TMRx_C1DT
010: C1ORAW is low when TMRx_CVAL=TMRx_C1DT
011: Switch C1ORAW level when
TMRx_CVAL=TMRx_C1DT
100: C1ORAW is forced low
101: C1ORAW is forced high.
110: PWM mode A
-
OWCDIR=0, C1ORAW is high once
TMRx_C1DT>TMRx_CVAL, else low;
-
OWCDIR=1, C1ORAW is low once TMRx_ C1DT
<TMRx_CVAL, else high;
111: PWM mode B
-
OWCDIR=0, C1ORAW is low once TMRx_ C1DT
>TMRx_CVAL, else high;