English
Language : 

AN3248 Datasheet, PDF (1/17 Pages) STMicroelectronics – Using STM32L1 analog comparators in application cases
AN3248
Application note
Using STM32L1 analog comparators in application cases
Introduction
This document describes six application cases of the two analog comparators embedded in
the ultra low power STM32L1 product line. The application cases are:
● Analog voltage monitoring
● Analog watchdog during Stop mode
● Pulse width measurement
● Pulse width modulation (PWM) signal control
● Capacitance measurement
● Brightness control using a light dependent resistor (LDR)
The six application cases demonstrate the usefulness of analog comparators and show how
they are integrated with other peripherals, for example, the digital-to-analog-converter (DAC)
and timers.
To ensure a quick start, four application cases presented in this document are implemented
in C language and are available in Project\STM32L1xx_StdPeriph_Examples\COMP within
the STM32L1xx_StdPeriph_Lib package.
Please note that this document is not intended to replace the routing interface (RI) and
comparator sections in the product reference manual RM0038 (for STM32L1xx Ultra Low
Power devices).
The peripheral power consumption should be consulted in the device datasheets.
February 2012
Doc ID 17758 Rev 3
1/17