If you are running using the code I sent the other day it may be an error I made
In the config Line I left it with DEBUG=ON, it should be OFF.
Attached is the code I have just had flashing a led on PORTC,0.
Also, do not use both the PORT and LAT commands - LAT, according to Microchip should be used in preferance to the PORT instruction - although 99% of coders still use PORT