On Sun, Jul 24, 2011 at 4:17 AM, Oliver Seitz <[email protected]> wrote: >>Disabling PWM does not get what you want: it does disable the toggling, but >>the pin could either be high or low (thus: might continuesly emit IR and draw >>current). > > Right, but I had another working variant before: PWM was continuously > running, with the anode of the LED connected. The cathode (with resistor) was > connected to another port pin. The LED always gets the modulating frequency, > but, depending on the second pin, in forward or reverse direction.
Why using a second pin? Just set low the corresponding CCP pin after turning the PWM off. Vasile -- You received this message because you are subscribed to the Google Groups "jallib" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/jallib?hl=en.
