plz can someone help me to understand this code in pic basic manual!!!
Several DEFINEs may also be used:
DEFINE ADC_BITS 8 ' Set number of bits in result
DEFINE ADC_CLOCK 3 ' Set clock source (rc = 3)
DEFINE ADC_SAMPLEUS 50 ' Set sampling time in microseconds
ADC_SAMPLEUS is the number of microseconds the program waits between setting the Channel and starting the analog to digital conversion.
TRISA = 255 ' Set PORTA to all input
ADCON1 = 2 ' PORTA is analog
ADCIN 0, B0 ' Read channel 0 to B0