Driving an RGB LED using a Xilinx XC2C256 CPLD controlled by an Atmel AVR ATmega32L MCU. In this demonstration only the RED and BLUE LED's are being used. The CPLD has 3 simple 8-bit PWM drivers embedded (a PWM signal for the RED, GREEN, and BLUE), which are given an 8-bit duty cycle value from the MCU. With only the 2 LED's, and the % duty cycle driven from minimum to maximum on each LED, a total of 65,025 colors can be cycled thru.......if the GREEN LED was active, a total of 16.5 million colors could be possible....and this number can be increased by increasing the resolution of the PWM drivers.
Link to this comment:
All Comments (0)