Hi guys,
I can read the input on any individual pin on portb like this:
if (portb.2 = 0) Then do something
However, if I have successive reads such as this it doesn't work properly:
if (portb.2 = 0) Then do something1
if (portb.3 = 0) Then do something2
if (portb.4 = 0) Then do something3
Do I need to do something with the hardware in-between reading the pins? I am using a 16f887 40-pin PIC.
Thanks
Bookmarks