Hi guys,
I am not sure if it will be an issue or not, but I want to ask a question about portA.4
I have read the spec sheet, and PortA.4 is an open drain, which means current will always flow to the microchip.
what I am worry about is if the microchip is safe if I have a transistor (emitter side) connected to the pin, the Base (B) connected to the 5 Vdc and the collector (C) to 24Vdc.

Can PortA.4 be configured so that it becomes an output. so that it behaves just like the other PortA pins.