AN02036: Making an LED glow with Pulse Density Modulation

FAVOURITE VERSION RELEASED COMMENTS DOCUMENTATION SOFTWARE
1.1.1 2026-04-15 v1.1.1 adds building flags for debug information to improve debugger support VIEW HTML VIEW PDF ZIP
View older versions
1.1.0 2025-10-13 Added a new section on building and running the example application ZIP ZIP
1.0.0 2025-03-10 Examples of using port functions to control the brightness of an LED ZIP ZIP
INFO

Summary

This application note describes how to build a Pulse Density Modulator, or PDM, to glow a led. It shows the principles of PDM, and three methods to implement PDM using just ports, timers and ports, and clocked ports.

Features

  • Pulse Density Modulator

Known issues

  • None

Required tools

  • XMOS XTC Tools: 15.3.1

Required libraries (dependencies)

  • None

Scroll to Top
Secret Link