This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
You can program the GPIO to be input with 3-state (please refer to register PxDIR, PxINP) when you need open drain/collector.
If you want a logic low, you can program the GPIO to be output low.(please refer to register PxDIR, Px)