I have an application/circuit based on the PIC18F13K50 and an issue I face is that upon the initial power up, the output on port C.4 (an assigned output) can be a bit unpredictable ie. sometimes it can start in the high state even through I have a 10K resistor pulling it to ground. It's critically important that it starts in the low state consistently on power up. Doesn't appear to happen on portC.5 which is configured the same way. Is there any way to ensure this pin always starts in the low state at power up? Or have I selected the wrong pin/port for this task?

Thanks,

Troy.