Comparator (COMP)
Bits 20:18 BLANKING[2:0]: COMP2 blanking source selection
Bits 17:16 HYST[1:0]: COMP2 hysteresis selection
Bit 15 POLARITY: COMP2 polarity selection
Bits 14:10 Reserved, must be kept at reset value.
Bit 9 WINMODE: window mode selection
Bits 8:7 INPSEL[1:0]: COMP2 input plus selection
Bits 6:4 INMSEL[2:0]: COMP2 input minus selection
632/1461
These bits select which timer output controls the COMP2 output blanking.
000: No blanking
001: TIM1 OC5 selected as blanking source
010: TIM2 OC3 selected as blanking source
Others: reserved
These bits are set and cleared by software. They select the COMP2 hysteresis voltage.
00: No hysteresis
01: Low hysteresis
10: Medium hysteresis
11: High hysteresis
This bit is set and cleared by software. It inverts COMP2 polarity.
0: COMP2 output value not inverted
1: COMP2 output value inverted
This bit is set and cleared by software. It selects the window mode of the comparators. If set,
both positive inputs of comparators are connected together.
0: COMP2 input plus is not connected to COMP1.
1: COMP2 input plus is connected to COMP1.
These bits are set and cleared by software.
00: PB4
01: PB1
10: PA15
11: reserved
These bits are set and cleared by software. They select which input is connected to the input
minus of COMP2.
000: 1/4 V
REFINT
001: 1/2 V
REFINT
000: 3/4 V
REFINT
011: V
REFINT
100: DAC channel1
101: reserved
110: PB3
111: GPIOx selected by INMESEL[1:0] bits
RM0453 Rev 1
RM0453
Need help?
Do you have a question about the STM32WL5 Series and is the answer not in the manual?
Questions and answers