English
Language : 

AN4112 Datasheet, PDF (1/17 Pages) STMicroelectronics – Using STM32F05xx analog comparators in application cases
AN4112
Application note
Using STM32F05xx analog comparators in application cases
Introduction
This document describes six application cases of the two analog comparators embedded in
the ultra-low power STM32F05xx 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 available in Project\STM32F0xx_StdPeriph_Examples\COMP within the
STM32F0xx_StdPeriph_Lib package.
Please note that this document is not intended to replace the comparator section in the
product reference manual RM0091 (for STM32F05xx ).
The peripheral power consumption should be consulted in the device datasheets.
Table 1. Applicable products
Type
Microcontrollers
STM32F05xx
Part numbers
June 2012
Doc ID 023195 Rev 1
1/17
www.st.com