Datasheet
Programming PIC Microcontrollers in BASIC - mikroElektronika
Description Routine initializes ADC module to work with RC clock. Clock determines the time period necessary for
performing AD conversion (min 12TAD). RC sources typically have Tad 4uS. Parameter <Channel>
determines which channel will be sampled. Refer to the device data sheet for information on device channels.
Example
res = ADC_Read(2) ' reads channel 2 and stores value in variable res
ADC HW connection
http://www.mikroelektronika.co.yu/english/product/books/picbasicbook/05.htm (15 sur 112)05/11/2004 02:20:52