COMP

Target Category: STM32

Sub-Target Category: ADC

Description: The COMP block compares two voltages. 

Blanking Source: Specifies the blanking source.

COMPx_INP: Selects the positive side voltage.

COMPx_INM: Selects the minus side voltage.

Enable: Enables the block.

Hysteresis: Sets the hysteresis to avoid spurious output transitions with noisy input signals. It is non-symmetrical and only acting to falling edge of the comparator output. The internal hysteresis function can be disabled so as to set the amount of hysteresis with external components, which can be useful for example when exiting a low-power mode.

Invert Output: Controls output polarity.

Lock after Configuration: Locks the settings after boot time configuration.

Put State on Block Output Pin: Creates an output pin on the block and puts the current comparator output on the pin.

Unit: Specifies the compare unit.