I don't know what a 16F814A is, there doesn't seem to be such a device. Do you mean (the ancient) 16F84A?

If your device have a PORTA and a PORTB
Code:
TRISA = 0  ' All pins of PORTA as outputs
TRISB = 0
PORTA = 0   ' All pins of PORTA logic low
PORTB = 0
If the device has any analog functions (comparator and ADC) then those will most likely need attention before the pins will function correctly as digital pins.