This is probably a silly question...

Status
Not open for further replies.

2camjohn

Member
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
 
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.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…