A question about running analogue signals into digital inputs.
I've been messing around with lots of different logic stuff recently, and in particular I've hit a situation more than once where I want an action to occur when an analog signal is equal to 0. For instance, I wanted a microchip to activate when two analogue values were equal, so I plugged both of them into different ends of a direction combiner, ran that through a NOT gate, and hooked the NOT gate to the chip.
This did not work like how it seemed it should. In the end the only solution I could figure out was to hook the direction combiner into a sequencer with a battery at the 0 location.
What confused me though was that I couldn't work out what rules were governing the way the analog input of the microchip interpreted the analog signal of the combiner. Sometimes it did seem like it worked, and other times it didn't, and through the small amount of testing I did I couldn't figure out what the pattern to it was.
From what I saw, an analog 0 obviously correlated to a digital 0, and a 100 correlated to a 1. But it seemed almost random as to whether 1-99 counted as a 1 or 0. Could someone maybe help me understand what a digital input does when it's given an analog signal that can't be neatly converted into a 1 or 0 (or -1)?