i stored adc value after analog to digital conversion in variable int preset...but i m not sure this value is decimal value or hex...should i compare like ADC>>40 or ADC >>0X12 please help . i m not getting right result.
after conversion stored adc value is hex value or decimal value
As far as I know, the decimal or hex is a kind of value entry format in your IDE. For a particular value either if you use decimal or hex the compiler will eventually convert it into the same machine code. Also in the adc register the value is stored in its corresponding binary format.