Just put another 10K-resistor from PortA-Pin to Vdd.
Then You can measure the voltage on the pin.
>= 0,7 * Vdd - the circuit is broken (Switch is open)
<= 0,3 * Vdd - the circuit is shortcut
Just put another 10K-resistor from PortA-Pin to Vdd.
Then You can measure the voltage on the pin.
>= 0,7 * Vdd - the circuit is broken (Switch is open)
<= 0,3 * Vdd - the circuit is shortcut
PBP 2.50C, MCS+ 3.0.0.5, MPLAB 8, MPASM 5.14, ASIX Presto, PoScope, mE mikroBasic V7.2, PICKIT2
Bookmarks