The reason that you need a resistor between RA4 and Vcc, like Gadelhas mentioned above, is because RA4 in that chip is an Open Drain (OD) type.

Name:  OpenDrain.GIF
Views: 972
Size:  31.7 KB

Robert