Hello.....I dont really think you will be very successful using
RA4 to detect positive going input voltages....yes, I agree
with LC...I think you will be surprised.
What I had to do, using RA4 of 16F84
was to use a pullup resistor to set it high
and code it to set it high and read it as
an input to detect Negative going
pulses...you will need an inverter 7404??
to invert your positive input signal.
Believe me, I have gone crazy with RA4,
thats why I have white hair. It will
easily detect positive to negative pulses.
Hope this helps....Art