Hey guys/gals.
I am working on a project that involved an SPDT switch. I have the middle of the switch wired to a 5volt source and the other two wired to PORTB.5 and PORTB.7. What I want to do is check if PORTB.B or PORTB.7 goes high so then I can tell my PIC to drive my motor. PORTB.5 will be to drive my motor forward and PORTB.7 is to drive my motor reverse. Is there something similar to.
if PORTB.5 = HIGH Then?
Thanks in advanced.
- Matthew