Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

PSoC™ Creator & Designer Forum Discussions

JaSi_1632926
Level 4
First like received First like given
Level 4

Hello,

   

I'd like to use a bidirectional pin and change its direction from the code. This doesn't seem to be possible using the provided API. What's the easiest way to configure a bidirectional pin as input, and then change it to output?

   

I'm using a PSoC 5LP.

   

Thanks, Jacob

1 Solution
HeLi_263931
Level 8
100 likes received 50 likes received 25 likes received
Level 8

You typically do not need to do that. Use an output drive mode 'open drain', then you can read and write at the same time without problems.

View solution in original post

1 Reply
HeLi_263931
Level 8
100 likes received 50 likes received 25 likes received
Level 8

You typically do not need to do that. Use an output drive mode 'open drain', then you can read and write at the same time without problems.