Quote Originally Posted by Automan View Post
I haven't any PWM signal on pin 5
First off...how do you know that the PIC is running in the first place?
Have you tried the ol' 'Blinky LED' program yet?
Break it down, small steps, independant small steps...Get an LED to blink, get the comparator to light an LED for you, get the PWM to do what you want it to do...THEN tie it all together. Can't go wrong with that methodology.