I am trying to design a circuit which tests a relay. To do this, i arranged the circuit in this manner;
Pic (RB3) -------Relay-----Resistor-----Pic (RA1) (RA1 and RB3 in on same pic16f84a)
So, if i energize the relay and set RB3 then i suppose to read logic 1 from Ra1. But pic always reads zero from RA1. I know that relay is working and RB3 is at 5VDC. And it seems that when i energize the circuit RA1 and VSS is shorted somehow (checked it with multimeter) but they are not shorted when the power is off. Other pins of pic are connected the same(RB2->Relay->Res->RA0 for instance), they are working. So please help me understand this issue.