Comparator (COMP)
RM0365
417/1080
DocID025202 Rev 7
Bits 3:2
COMP2MODE[1:0]
: Comparator 2 mode (only in STM32F302xB/C devices)
These bits control the operating mode of the comparator2 and allows to adjust the
speed/consumption.
00: High speed
01: Medium speed
10: Low-power
11: Ultra-low-power
Bit 1
COMP2_INP_DAC
: Comparator 2 non inverting input connection to DAC output. (STM32F302x6/8
devices only)
This bit closes a switch between comparator 2 non-inverting input and DAC out I/O.
0: Switch open
1: Switch closed
This switch is solely intended to redirect signals onto high impedance input, such as COMP2 non-
inverting input (highly resistive switch)
Bit 0
COMP2EN
: Comparator 2 enable
This bit switches COMP2 ON/OFF.
0: Comparator 2 disabled
1: Comparator 2 enabled