code for a 16f628a:rgb led fading throught the color spectrum

Thread Starter

matt99199

Joined Apr 8, 2012
2
hi, i am very new at making c++ code. but what i need is an example with 3 different pins on the 16f628a chip that will make my led fade from red-purple on the color spectrum. i know i need some sort of pwm signal output but i have no idea how to do that.
 

ErnieM

Joined Apr 24, 2011
8,415
Microchip has an application note entitled "Software PWM Generation for LED Dimming and RGB Color Applications." I suspect you may want to give it a hard look.

Find it here. Download and install it, and inside you will find the actual app note as a pdf.

(Funny, I just answered this same question in the other area.)
 
Top