I'll try again. For background, alarm switches used in the security business frequently have a resistor across the switch. The purpose of this resistor is to help detect a switch being disconnected. So you need to be able to sense 3 conditions with respect to the switch. Switch closed, alarm condition, switch open, someone has disconnected the switch and you need to alert someone and switch open, but resistance present, all's well.
Hence the question of how to detect those three conditions. I'm proposing connecting one side of the switch to VCC via a resistor, the other side connected to ground, so a normal operating condition would provide a voltage somewhere between VCC and ground. I suggested two Schmitt triggers one biased to sense a transition near ground when the switch is closed and one near VCC which would sense a disconnected switch. Normal operation would have the output from one trigger a logical 1 and the other a logical 0. Two logical 1s or two logical zeros would indicate either an alarm or a fault. Which is which depends on the inverting or non inverting property of the trigger.
That was my suggested design but I was wondering if anyone had a better design or if anyone saw any problems with this design.
Thanks,
Jim