input and output on same port pin

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
barryw
Posts: 13
Joined: Wed Jun 24, 2009 2:05 pm

input and output on same port pin

Post by barryw »

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

Spanish_dude
Posts: 594
Joined: Thu Sep 17, 2009 7:52 am
Location: Belgium
Has thanked: 63 times
Been thanked: 102 times

Re: input and output on same port pin

Post by Spanish_dude »

Hi,

Could you attach your .fcf and .c files ?
You don't need ASM to do that, using the input and output icons in flowcode should do the trick.

Nicolas

Post Reply