I have an electrical wire - one end goes to a logic device (FPGA/uC).
While the other end has 2 possible electrical pathes:
View attachment 91726
a.Shorted directly to ground.
b.Connected to ground through a 100KOhm resistor.
I want the logic device to detect logic high ('1') when the wire is connected to ground through the 100KOhm resistor.
I want the logic device to detect logic low ('0') when the wire is connected directly to ground.
The challenges:
1. I need zero current flow on the wire in both cases (a and b).
2. The logic levels must be stable and relatively immune to noise.
PLEASE HELP