I'm having a problem with PORTA.2 on a 16F684. Even though I have disabled all external interrupts and set everything to digital I/O, I can not run portA.2 as an I/O port. As a matter of fact, any change in voltage on that pin causes erratic behavior and an apparent "reset" of the chip. By change in voltage, I mean as little as touching the pin. I can only get the chip to run stable if I tie that pin to Vdd with a resistor.

Here are my program configs:

'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
include "modedefs.bas"

DEFINE OSC 4

OSCCON = %01010000 '2 Mhz

ANSEL = %00000000 ' all digital I/O

TRISA = %11111111 ' input pins
TRISC = %11011111 ' input pins except pwm port

T2CON = %00000110 ' enable timer 2 for PWM and set prescaler to 16

CCPR1L = %00000000 'zero duty cycle
CCP1CON = %00001100 'enable PWM, active high

PR2 = 24 '0-100 duty cycle
'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Have i missed a necessary configuration that will disable any peripheral components that can cause this instability? Thanks in advance!