Window Comparator; Hysteresis; Figure 69. Window Mode; Figure 70. Comparator Hysteresis - ST STM32G0 1 Series Reference Manual

Table of Contents

Advertisement

RM0444
18.3.5

Window comparator

The purpose of window comparator is to monitor the analog voltage if it is within specified
voltage range defined by lower and upper threshold.
COMP1 and COMP2 or COMP2 and COMP3 can combine to create a window comparator.
The monitored analog voltage is connected to the non-inverting (plus) inputs of comparators
connected together and the upper and lower threshold voltages are connected to the
inverting (minus) inputs of the comparators. Two non-inverting inputs can be connected
internally together by enabling WINMODE bit to save one IO for other purposes.
Input
Upper threshold
Lower threshold
18.3.6

Hysteresis

The comparator includes a programmable hysteresis to avoid spurious output transitions in
case of noisy signals. The hysteresis can be disabled if it is not needed (for instance when
exiting from low-power mode) to be able to force the hysteresis value using external
components.
COMPx WINMODE = 0
COMPy WINMODE = 1

Figure 70. Comparator hysteresis

INP
INM
INM - V hyst
COMP_OUT

Figure 69. Window mode

COMPx_INP
+
COMPx_VALUE
COMPx
COMPx_INM
-
COMPy_INP
+
COMPy
COMPy_INM
-
RM0444 Rev 5
Comparator (COMP)
COMPx WINOUT = 1
COMPx_OUT
COMPy WINOUT = 0
COMPy_VALUE
COMPy_OUT
MSv42191V1
MS19984V1
449/1390
458

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32G0 1 Series and is the answer not in the manual?

Questions and answers

Table of Contents

Save PDF