Re: PIC18F - MCC OpenDrain GPIO usage
☼ Best Answerby PIC Baker 2020/09/23 23:06:09
I thought initially you were asking about a "weak pulldown", which this device does not have.
If you just mean how to turn on the open drain transistor, just treat it as a normal output, so control the state via the LATx register (or whatever MCC call is used to control the output pins.)
If you set the pin high, the FET to ground is off.
If you set it low, the FET to ground is on.
To get a useful answer, always state which PIC you are using!