You are here

CE97634 - PSoC® 4 Breathing LED | Cypress Semiconductor

CE97634 - PSoC® 4 Breathing LED

Last Updated: 
May 31, 2020

This code example demonstrates the flexibility of a PSoC® 4, by implementing a breathing LED effect exclusively in hardware, with no CPU usage beyond initialization. The design uses two PWMs and an XOR gate to make an LED gradually cycle through increasing and decreasing brightness. The PWMs have slightly different periods, with 50% duty cycles. The rate of change in LED brightness is proportional to the difference between the PWM output frequencies.

CE97634 - PSoC® 4 Breathing LED

Dear valued customer,

Thank you for choosing our products. They come with all the know-how and passion that our engineers have put into it. As you probably already know, Cypress is now Infineon. This is a major step for our company, but also for the good of you. 

Reliability and business continuity are of utmost importance for us. Hence, we remain fully committed to honoring existing customer and distributor relationships. This includes offering the legacy Cypress product portfolio. We thank you very much for your trusting support.

For the full version of this message, please download the PDF version.