PORTA.6 and PORTA.7 on the 16F819 are the oscillator pins. I assume therefore that you are using the internal oscillator. If so, you need to make sure the config bits for the oscillator are set to _INTRC_IO (assuming you are using PMASM as your assembler).
Bookmarks