I think a write to the latch register might do it:
Code:mainloop: Pause 10 if PortA.5= 1 then LATB.1 = 1 'turn ON an LED if PortA.5= 0 then LATB.1= 0 'turn OFF an LED goto mainloop
I think a write to the latch register might do it:
Code:mainloop: Pause 10 if PortA.5= 1 then LATB.1 = 1 'turn ON an LED if PortA.5= 0 then LATB.1= 0 'turn OFF an LED goto mainloop
Louie
Bookmarks