Yes 12V to relay and 5V to pic
flyback diode
If I change the code I can get the relay to go on and off
am i not doing something wrong with the configuration in MP Lab
I am using microcode studio with PBP
Maybe try turning off the WDT?
Try different code, just for grins...
main:
if pswitch = 1 then relay = 0
if pswitch = 0 then relay = 1
goto main
end
Bookmarks