This document describes six application cases of the two analog comparators embedded in the ultra-low power STM32F05xx product line.
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.
The embedded 12-bit analog-to-digital converter has a sampling rate of 1 Msample/s.
The input analog voltage can be connected to pin PA3 for COMP2.
COMP2 wakes up the device from Stop mode through external interrupt line 22.