Comparator (COMP)
Bits 20:18 BLANKING[2:0]: COMP1 blanking source selection
Bits 17:16 HYST[1:0]: COMP1 hysteresis selection
Bit 15 POLARITY: COMP1 polarity selection
Bits 14:9 Reserved, must be kept at reset value.
Bits 8:7 INPSEL[1:0]: COMP1 input plus selection
Bits 6:4 INMSEL[2:0]: COMP1 input minus selection
Bits 3:2 PWRMODE[1:0]: COMP1 power mode
Bit 1 Reserved, must be kept at reset value.
Bit 0 EN: COMP1 enable
630/1461
These bits select which timer output controls the COMP1 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 COMP1 hysteresis voltage.
00: No hysteresis
01: Low hysteresis
10: Medium hysteresis
11: High hysteresis
This bit is set and cleared by software. It inverts COMP1 polarity.
0: COMP1 output value not inverted
1: COMP1 output value inverted
These bits are set and cleared by software.
00: PB4
01: PB2
10: reserved
11: reserved
These bits are set and cleared by software. They select which input is connected to the input
minus of COMP1.
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
These bits are set and cleared by software. They control the power and speed of COMP1.
00: High speed
01: Medium speed
10: Medium speed
11: Ultra low-power
This bit is set and cleared by software. It switches COMP1 on.
0: COMP1 switched off
1: COMP1 switched on
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