> I'm plaing to use a pic16f88 with the internal osc to do pwm to > control a > single RGB led, I'm not sure how to even begin on this code. if > someone has > some examples I woulc use to get started, I would very much appriate > it. In you favourite language implement the following. Do forever Adjust Vlimit here if desired (or almost anywhere else) For Vcount = 1 to Vcountmax ' Vcount steps once each loop ' and resets when max reached if count <= Vlimit then turn LED on else turn LED off endif Optional delay Next Loop LED will be lit for the ratio Vlimit/Vcountmax Increasing Vlimit increases on time. The "For" loop can be accessed once per timer tick or after a delay or just run flat out. If running flat out there will be some "dead time" while the code outside the For/Next loop is run. RM -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist