EDIT
I need to put a pin in this for a while. I should have done alot more work before posting the question. Rather then just waste people's time, I need to pause this for a little bit.Here is my test code. I am not using a capacitor in this case. I am simply switching the RA0 pin from high to low. The question remains, why is RA0 High when it is supposed to be discharging a capacitor in order to trigger the wake up feature?
INCLUDE registers.asm
__CONFIG 0x2EFF20E5
ORG 0x00
GOTO MAIN
;***********************************************
;Interrupt Service Routine
;turn on an led and return
;*********************************************
ORG 0X04
ISR
BANKSEL PORTD
BSF PORTD,7
RETFIE
MAIN
CALL SETUP
CALL SETUP_WU
SLEEP
TRAP
GOTO TRAP
SETUP
BANKSEL ANSELH
CLRF ANSELH ;CONFIGURE ALL PINS FOR DIGITAL IO
CLRF ANSEL
BANKSEL TRISD ;PORTD IS OUTPUT
CLRF TRISD
BANKSEL PORTD
CLRF PORTD
RETURN
SETUP_WU
BANKSEL PORTA
BSF PORTA,0
BANKSEL ANSEL
CLRF ANSEL
BANKSEL TRISA
BCF TRISA,0
BANKSEL PIR2
BCF PIR2,2
BANKSEL PCON
BSF PCON,5
BSF TRISA,0
BSF PIE2,2
MOVLW B'11000000'
MOVWF INTCON
RETURN
END