English
Language : 

AN4232 Datasheet, PDF (1/17 Pages) STMicroelectronics – Getting started with analog comparators for STM32F3 series
AN4232
Application note
Getting started with analog comparators
for STM32F3 series
Introduction
This document describes the main features of the analog comparator embedded in
STM32F3 series. The application cases are:
• Cycle-by-cycle current control
• Frequency and pulse width measurement
• Analog voltage monitoring
• Preventing false over-current detections in motor control applications
• Humidity measurement
The five 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, some application cases presented in this document are
implemented in C language and are available in the STM32F30x and STM32F37x DSP and
standard peripherals library packages.
Please note that this document is not intended to replace the analog comparator (COMP)
section in the product reference manual.
All values given in this document are for guidance only. Please refer to the related datasheet
for guaranteed and up-to-date values.
Throughout this document:
• STM32F30x refers to the STM32F301, STM32F302, STM32F303, STM32F3x8,
STM32F328, STM32F358, STM32F398 and STM32F334.
• STM32F37x refers to the STM32F373 and STM32F378 product lines.
January 2015
DocID024134 Rev 2
1/17
www.st.com
1