Hi Bruce,
Also, maybe put a 500ms delay right after the "WAITUP" label. Otherwise, if PIN goes low, it will immediately go high again and you won't catch it.
Cheers!
Hi Bruce,
Also, maybe put a 500ms delay right after the "WAITUP" label. Otherwise, if PIN goes low, it will immediately go high again and you won't catch it.
Cheers!
---> picnaut
Works the same until CCP1CON = 0.
Another delay isn't really necessary since it never toggles the LED to begin with.
I find that setting duty to 0 allows the pin to float
and that can cause a fet to turn on.
I add a weak pull down resistor to the pin used
or set the output to low when duty=0
Bookmarks