I am working with a 16f877a and everything works great with my program, but when I take porta.5=0 to run the program, it's like the mclr resets. All other ports are like this using a 5k pullup resistor. After it resets, program runs perfect untill i ground ra5 again.
osc 20
adcon=7 digital off
cmcon=7
is there something special about porta.5 that does this?