STMicroelectronics AN2841 LED Dimming Application Note

This application note provides a detailed description of LED dimming implemented on the STM32 microcontroller in combination with the STP24DP05 LED driver. It describes the general principles of LED dimming, with a focus on the use of pulse width modulation (PWM) for digital dimming, and compares the most common design approaches. The conclusion helps developers choose the best approach for their LED dimming application.


STMicroelectronics AN2841 LED Dimming Application Note - cover page
Brand
STMicroelectronics
Document type
Application Note
Language
English
Pages
31
File format
PDF
File size
782 KB
Published
06 August, 2012
Updated
30 September, 2023
MD5 checksum
4CFAEE8E1974E762D12B2F553BB1316F

About this manual

This document details the principles of digital LED dimming, specifically focusing on Pulse Width Modulation (PWM). It compares different design approaches for driving multiple LEDs, including dedicated pins and serial-parallel conversion.

The note provides a specific implementation guide using an STM32 microcontroller combined with the STP24DP05 24-bit constant current LED sink driver. It analyzes various data transfer methods such as dynamic preparation, static lookup tables, and interrupt/DMA configurations to help developers choose the optimal approach for their application.

What's inside

  • Introduction
  • Description of LED dimming
  • Driving multiple LED applications
  • Multi-channel dimming using serial-parallel conversion
  • Specific dimming application using an STP24DP05
  • Data transfers and timing
  • Data preparation: redundant and non redundant use of memory
  • Timing: set up of the main dimming timer
  • Achieved values comparison

Specifications

PWM frequency for non-flickering light> 100 Hz
Document revision dateNovember 2008

Frequently asked questions

Which driver is used in the specific application example?

The specific application example uses an STP24DP05 24-bit constant current LED sink driver.

What is the minimum PWM frequency required to prevent flickering?

The PWM frequency must be higher than 100 Hz for the light to appear non-flickering.

How many different light intensity values are possible with a 4-bit resolution?

Using a 4-bit PWM resolution allows for 16 different light intensity values.

What is the maximum number of LEDs supported by an STP24DP05 driver?

The STP24DP05 is a 24-bit constant current LED sink driver.

Download PDF (782 KB)

More STMicroelectronics Manuals


View all STMicroelectronics manuals →