OK you're using C language but here we use Melabs PICBasic but anyways, let's try to help you on that.

your problem is with this line
Code:
TRISC=0;
Sure if the RX pin is set as an output, it won't work. Just change it and i suspect it will work. but i didn't look the whole thing so i could have miss something.

Good luck!