How can I compare a value from an ADC-reading to a set value? f.ex. the ADC has a range of 8 bit (0-255) and when the vaue is above a set value, f.ex. 200, one pin goes high, and when the value goes below 200 the pin goes low.
How can this be done in assembler, or what is the comands to comapre values. ie. higher than >, lower than <? thanks.
How can this be done in assembler, or what is the comands to comapre values. ie. higher than >, lower than <? thanks.