Introduction

LEDC (Light Emitting Diode Controller) is a dedicated driver module for intelligent externally-controlled LEDs, designed to provide stable and efficient control for applications such as RGB full-color LED strips and pixel screens. The module is compatible with mainstream intelligent externally-controlled LEDs on the market, such as the WS2812 series. It supports independent 256-level brightness adjustment for R/G/B channels of each LED, enabling 256³ = 16777216 true color displays to meet high-precision color rendering requirements. It also supports single-wire cascade driving with a maximum load of 1024 externally-controlled LEDs, accommodating large-scale applications for long LED strips and large screen displays.

Features

  • Configurable transfer data pulse time and non-data period

  • Configurable IDLE state output level

  • Configurable RGB888 display mode and LED refresh time

  • Up to 8095 data sequence configurations

  • 32 * 24-bit transmit data FIFO

  • DMA interface with LEDC as DMA flow controller

  • Operation mode

    • DMA mode

    • Interrupt mode

Block Diagram

The block diagram of LEDC is shown in the figure below.

../../../_images/ledc_block_diagram.svg
  • trans_ctrl: configures LED timing, data order, data transfer mode, data length, and LED number

  • FIFO: 32 * 24-bit FIFO for transmitting LED data

  • Int_ctrl: indicates FIFO status of the LED controller, including wait data timeout or data overflow exception

  • data_out: converts input data to logical character ‘0’ and character ‘1’ according to trans_ctrl configuration