AT32WB415
Series Reference Manual
2022.04.13
Page 368
Ver 2.00
Bit 15
CMP1WP
0x0
rw0c
Comparator 1 write protect
0: Disabled
1: Enabled
Note: The COMP_CTRLSTS1[15:0] and
COMP_CTRLSTS2[15:0] bits are write-protected through
this bit. This bit is cleared only by system reset.
Bit 14
CMP1VALUE
0x0
ro
Comparator 1 output value
This bit is read-only, indicating the status of the current
comparator 1 output (affected by the COMP1P bit).
Bit 13:12
CMP1HYST
0x0
rw
Comparator1 hysteresis
00: No hysteresis
01: Low hysteresis
10: Intermediate hysteresis
11: High hysteresis
Please refer to hysteresis electrical characteristics
Bit 11
CMP1P
0x0
rw
Comparator1 polarity
0: Comparator 1 output value is not inverted
1: Comparator 1 output value is inverted
Bit 10:8
CMP1TAG
0x0
rw
Comparator output target
This field controls the COMP2 output target.
000: No selection
001: Timer 1 brake input
010: Timer 1 input capture 1
011: Timer 1 output compare clear
100: Timer 2 input capture 4
101: Timer 2 output compare clear
110: Timer 3 input capture 1
111: Timer 3 output compare clear
Bit 7
Reserved
0x0
resd
Kept at its default value.
Bit 6:4
CMP1INVSEL
0x0
rw
Comparator1 inverting selection
000: 1/4 VREFIN
001: 1/2 VREFINT
010: 3/4 VREFINT
011: VREFINT
100: PA4
101: PA5
110: PA0
111: Reserved
Bit 3
Reserved
0x0
resd
Kept at its default value.
Bit 2
CMP1SSEL
0x0
rw
Comparator1 speed selection
This bit is used to control the operating mode of
comparators in order to adjust speed and power
consumption.
0: Hihg-speed/maximum power consumption
1: Low-speed/minimum power consumption
Bit 1
CMP1IS
0x0
rw
Comparator1 input shift
0: The switch is off.
1: The switch is on.
Note: This bit is used to swith the connection between PA1
and PA4 of the comparator inverting input. It is only used
for re-direction of input to high-impedance input, such as
the non-inverting input of Comparator 1 (high-impedance
switch).
Bit 0
CMP1EN
0x0
rw
Comparator1 enable
This bit enables or disables a comparator.
0: Comparator 1 disabled
1: Comparator 1 enabled