input and output on same port pin
Posted: Tue Sep 27, 2011 10:29 am
Hi, I'm trying to use the same port pin as a digital in and out. however as soon as I set the port to give an output it resets back to an input on the next instruction, do I need to use soms ASM code to reset the pin to an output for a duration , then use ASM again to reset to an input?
if so can you please give me a sample to follow or point me to the right place in the forums.
Thanks
BarryW
if so can you please give me a sample to follow or point me to the right place in the forums.
Thanks
BarryW