can you just post your program header to see what u r setting in

TRIS,define.....variables...