Hi Rastan,

TRISC in the Tx section should be 4, not 1 as you have now. You're setting PortC.0 as input and the rest of PortC as outputs. I usually write theese numbers in binary since that makes it easier to distinguish between inputs and outputs.

%00000100 = 4

The bit to the far left is bit 7, thr rightmost bit is bit0. When you look at it you should think ..... 0 looks like O as in Output, 1 looks like I as in Input.

You could ofcourse also write "TRISC.2 = 1" or "INPUT PortC.2" if you only want to set that pin to input.

/Ingvar