Analog voltage monitoring
AN3248
6/19
Doc ID 17758 Rev 1
Figure 2
shows how to connect a sensor output to an STM32L15xxx device using
comparator 1 (COMP1). COMP1 shares the same inputs as the ADC which reduces the
number of required pins. Nevertheless, the threshold is fixed to
V
REFINT
.
Figure 2.
Sensor output connection to COMP1
1.
Legend for
Figure 2
COMP1_INP/ADC CHx: comparator 1 non-inverting input shared with ADC channel x
2.
Only if required.
Figure 3
shows the gain in power consumption in an analog monitoring application.
Figure 3.
Power consumption in an analog voltage monitoring application
1.
Legend for
Figure 3
S: Stop mode
R: Run mode
!NALOGVOLTAGE
3ENSOR
!MPLIFIER
&ILTER
34-,XXX
AI
#/-0).0!$#
#(X
3
2
3
2
3
2
3
)NPUTANALOGVOLTAGE
!NALOGTHRESHOLD
4IME
-#5STATE
4IME
4IME
-#5CURRENTCONSUMPTION
&EWM!
&EW!
AI