I'm working up a project to use 3 hardware PWM modules. Probably on a 16F777. The PWM signal goes into the signal pin of a LUXEON Buckpuck. The trouble is that that pin thinks 5V is "OFF" and 0V is "ON" for the led. So a 100% duty cycle would have the led off all the time and vice versa for a 0% duty cycle.
I could just put a line in to subtract my desired duty cycle count from 1024 (if in 10bit mode) and invert it that way, but is there an easier way to just invert the output of the PWM module ?
Bookmarks