ST AN4112 Application Note

This document describes six application cases of the two analog comparators embedded in the ultra-low power STM32F05xx product line.


ST AN4112 Application Note - cover page
Brand
STMicroelectronics
Category
microcontrollers
Document type
Application Note
Language
English
Pages
17
File format
PDF
File size
238 KB
Published
07 August, 2012
Updated
30 September, 2023
MD5 checksum
272F60BB90CE09E5BBED69D78EEE1E1A

About this manual

This document details six specific application cases demonstrating the utility of the two analog comparators embedded in the ultra-low power STM32F05xx product line. The cases cover analog voltage monitoring, analog watchdog functionality during Stop mode, pulse width measurement and control, capacitance measurement, and brightness control using a light dependent resistor (LDR). These examples illustrate how the comparators integrate with other peripherals such as the digital-to-analog-converter (DAC) and timers.

What's inside

  • Analog voltage monitoring
  • Analog watchdog during Stop mode
  • Pulse width measurement
  • PWM signal control
  • Capacitance measurement
  • Brightness control using LDR

Frequently asked questions

What is the sampling rate of the 12-bit analog-to-digital converter embedded in the STM32F05xx devices?

The embedded 12-bit analog-to-digital converter has a sampling rate of 1 Msample/s.

Which pins can be used to connect the input analog voltage for comparator 2 (COMP2)?

The input analog voltage can be connected to pin PA3 for COMP2.

How does the device wake up from Stop mode when the sensor output exceeds the threshold in an analog voltage monitoring application?

COMP2 wakes up the device from Stop mode through external interrupt line 22.

Download PDF (238 KB)

More STMicroelectronics Manuals


View all STMicroelectronics manuals →