You are here

CE220290 - PSoC 6 MCU TCPWM Breathing LED | 赛普拉斯半导体

CE220290 - PSoC 6 MCU TCPWM Breathing LED

最近更新: 
2020 年 11 月 26 日
版本: 
*B

This code example demonstrates the implementation of an LED breathing effect using the TCPWM Component on a PSoC 6 MCU.

This code example implements a breathing LED using two TCPWM Components (configured as PWM) and an XOR gate, without CPU involvement. The LED breathing effect is implemented by changing the duty cycle of the PWM signal from low to high and vice-versa cyclically.