AnsweredAssumed Answered

Open Drain GPIO Processor Expert

Question asked by Joseph Gray on Mar 17, 2015
Latest reply on Mar 17, 2015 by Jorge_Gonzalez

I have a board where I need to configure a pin as open drain. I use Processor Expert to program, so I used the Init_GPIO componenet to configure the pin as open drain. Unfortunately, I was unable to disconnect the pin to allow it to go high using the BitIO_LDD PutVal function. I found a work around by calling DeInit whenever I wanted the line to go high and Init when I wanted the line to go low (I set the initial value of the component to '0'). However, I was wondering if there was a better way to control an open-drain GPIO using Processor Expert code. The pin in question is PTC16 on a K22FX512VMC12, and there is an external pull resistor to drive the line high (the line needs to go higher than the K22 can drive it).

Outcomes