Comparator (COMP)
Bit 22 BRGEN: Scaler bridge enable
Bit 21 Reserved, must be kept at reset value
Bits 20:18 BLANKING[2:0]: Comparator 1 blanking source selection bits
Bits 17:16 HYST[1:0]: Comparator 1 hysteresis selection bits
Bit 15 POLARITY: Comparator 1 polarity selection bit
Bits 14: Reserved, must be kept at reset value.
Bit 7 INPSEL: Comparator1 input plus selection bit
Bits 6:4 INMSEL: Comparator 1 input minus selection bits
812/2301
This bit is set and cleared by software (only if LOCK not set). This bit enable the bridge of
the scaler.
0: Scaler resistor bridge disable (if BRGEN bit of COMP2_CSR register is also reset)
1: Scaler resistor bridge enable
If SCALEN is set and BRGEN is reset, BG voltage reference is available but not 1/4 BGAP,
1/2 BGAP, 3/4 BGAP. BGAP value is sent instead of 1/4 BGAP, 1/2 BGAP, 3/4 BGAP.
If SCALEN and BRGEN are set, 1/4 BGAP 1/2 BGAP 3/4 BGAP and BGAP voltage
references are available.
These bits select which timer output controls the comparator 1 output blanking.
000: No blanking
001: TIM1 OC5 selected as blanking source
010: TIM2 OC3 selected as blanking source
All other values: reserved
These bits are set and cleared by software (only if LOCK not set). They select the
Hysteresis voltage of the comparator 1.
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 1
polarity.
0: Comparator 1 output value not inverted
1: Comparator 1 output value inverted
This bit is set and cleared by software (only if LOCK not set).
0: external IO - PC5
1: PB2
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 1.
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 = PB1111 = PC4
RM0432 Rev 6
RM0432
Need help?
Do you have a question about the STM32L4+ Series and is the answer not in the manual?