I get confused all the time in using old and new pin designations of chips. In this case, I want to use the A.0 analog input on the 28X2 (Pin 2) with an Sharp analog IR sensor and entered the following code
symbol dist = w0
'------------------------------------------------
'Activate - ADC0 = Pin 2
let adcsetup = %0001 'ADC 01
main:
ReadAdc10 A.0, dist
I get the following error Error: Valid ADC channels are 1-11 only!
Which pins is the compiler talking about? And where can I find a "translation" of these Pin designations?
And finally, is my code above written correctly?
symbol dist = w0
'------------------------------------------------
'Activate - ADC0 = Pin 2
let adcsetup = %0001 'ADC 01
main:
ReadAdc10 A.0, dist
I get the following error Error: Valid ADC channels are 1-11 only!
Which pins is the compiler talking about? And where can I find a "translation" of these Pin designations?
And finally, is my code above written correctly?