Changing direction of bidirectional pin

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

cross mob
JaSi_1632926
Level 4
Level 4
Welcome! 25 replies posted 10 replies posted

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
Level 8
100 solutions authored 50 solutions authored 25 solutions authored

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
Level 8
100 solutions authored 50 solutions authored 25 solutions authored

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.