2camjohn Member Aug 30, 2004 #1 If I set the state of a GPIO or PORT output to a 1 or a 0, can I then test the output for its state. EG... PortB.0 = 1 'set portb first bit high if PortB.0 = 1 then 'if portb first bit is high something else something else 'if portb first bit is low endif Thanks
If I set the state of a GPIO or PORT output to a 1 or a 0, can I then test the output for its state. EG... PortB.0 = 1 'set portb first bit high if PortB.0 = 1 then 'if portb first bit is high something else something else 'if portb first bit is low endif Thanks
C crust Member Aug 30, 2004 #2 Yes, if a port is an output, you can still test its value in software. Or I should say I have not seen a part where this was not the case.
Yes, if a port is an output, you can still test its value in software. Or I should say I have not seen a part where this was not the case.