ST AN3248 Application Note

This document describes six application cases of the two analog comparators embedded in the ultra low power STM32L1 product line. The application cases include: analog voltage monitoring, analog watchdog during Stop mode, pulse width measurement, pulse width modulation (PWM) signal control, capacitance measurement, and brightness control using a light dependent resistor (LDR). These application cases demonstrate the usefulness of analog comparators and show how they are integrated with other peripherals, such as the digital-to-analog converter (DAC) and timers.


ST AN3248 Application Note - cover page
Brand
STMicroelectronics
Category
microcontrollers
Document type
Application Note
Language
English
Pages
17
File format
PDF
File size
318 KB
Published
07 August, 2012
Updated
28 September, 2023
Model
STM32L1
MD5 checksum
0BC983ED20FCDDF252D3F9DA069AB6F7

About this manual

This document details six application cases for the two analog comparators embedded in the STM32L1 product line. The cases cover analog voltage monitoring, analog watchdog usage during Stop mode, pulse width measurement, PWM signal control, capacitance measurement, and brightness control using a light dependent resistor (LDR).

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

Which timers can receive the redirected COMP2 output for pulse width measurement?

The COMP2 output can be redirected to the input capture of timers TIM2, TIM3, TIM4, and TIM10.

What internal reference voltages are available for the analog watchdog thresholds?

Thresholds can be set to VREFINT, 3/4 VREFINT, 1/2 VREFINT, or 1/4 VREFINT.

What happens to the MCU state when the analog input voltage exceeds the defined thresholds?

The MCU exits Stop mode and switches to Run mode to reduce average power consumption.

Download PDF (318 KB)

More STMicroelectronics Manuals


View all STMicroelectronics manuals →