Check the data sheet for the MCU you are using, you do not say which one.
Something does not look correct.
ADCON1 = %00000010 ' Set PORTA analog
ADCIN 0, adval1 ' Read channel 0 to adval D1
ADCIN 1, adval2 ' Read channel 0 to adval D0
Check the data sheet for the MCU you are using, you do not say which one.
Something does not look correct.
ADCON1 = %00000010 ' Set PORTA analog
ADCIN 0, adval1 ' Read channel 0 to adval D1
ADCIN 1, adval2 ' Read channel 0 to adval D0
Dave
Always wear safety glasses while programming.
Bookmarks