16.2.4 Open-Drain Control
The ODCONx register controls the open-drain feature of the port. Open-drain operation is independently selected for each pin. When an ODCONx bit is set, the corresponding port output becomes an open-drain driver capable of sinking current only. When an ODCONx bit is cleared, the corresponding port output pin is the standard push-pull drive capable of sourcing and sinking current.
Important: It is not necessary to set open-drain control when using the pin for I2C; the I2C module controls the pin and makes the pin open-drain.