RM0351
Bits 17:16 HYST[1:0]: Comparator 2 hysteresis selection bits
Bit 15 POLARITY: Comparator 2 polarity selection bit
Bits 14:10 Reserved, must be kept at reset value.
Bit 9 WINMODE: Windows mode selection bit
Bit 8 Reserved, must be kept at reset value.
Bit 7 INPSEL: Comparator 1 input plus selection bit
Bits 6:4 INMSEL: Comparator 2 input minus selection bits
Bits 3:2 PWRMODE[1:0]: Power Mode of the comparator 2
Bit 1 Reserved, must be kept cleared.
Bit 0 EN: Comparator 2 enable bit
These bits are set and cleared by software (only if LOCK not set). Select the Hysteresis
voltage of the comparator 2.
00: No hysteresis
01: Low hysteresis
10: Medium hysteresis
11: High hysteresis
This bit is set and cleared by software (only if LOCK not set). It inverts Comparator 2
polarity.
0: Comparator 2 output value not inverted
1: Comparator 2output value inverted
This bit is set and cleared by software (only if LOCK not set). This bit selects the window
mode of the comparators. If set, both positive inputs of comparators will be connected
together.
0: Input plus of Comparator 2 is not connected to Comparator 1
1: Input plus of Comparator 2 is connected with input plus of Comparator 1
This bit is set and cleared by software (only if LOCK not set).
0: PB4
1: PB6
These bits are set and cleared by software (only if LOCK not set). They select which input is
connected to the input minus of comparator 2.
000 = 1/4 V
REFINT
001 = 1/2 V
REFINT
010 = 3/4 V
REFINT
011 = V
REFINT
100 = DAC Channel1
101 = DAC Channel2
110 = PB3
111 = PB7
These bits are set and cleared by software (only if LOCK not set). They control the
power/speed of the Comparator 2.
00:
High speed
01 or 10: Medium speed
11:
Ultra low power
This bit is set and cleared by software (only if LOCK not set). It switches oncomparator2.
0: Comparator 2 switched OFF
1: Comparator 2 switched ON
DocID024597 Rev 3
Comparator (COMP)
587/1693
588
Need help?
Do you have a question about the STM32L4x6 and is the answer not in the manual?
Questions and answers