Analog to Digital Convertor (ADC) functions are provided in the libraries
LIB/adc_lib.bas
|
ADC description
|
|
ADC_init
|
Initialises the ADC hardware
|
ADC_service
|
this function must be called in intserv if async ADC reads are to be performed
|
ADC_read_8bit
|
Synchronous read of most significant 8 bits of analog channel
|
ADC_read_10bit
|
Synchronous read of all 10 bits of analog channel
|
ADC_service_nowait
|
Service asynchronous read of analog channel (this function is called repeatedly between start and competion of async read)
|
ADC_start_read_8bit_nowait
|
Start asynchronous read of most significant 8 bits of analog channel
|
ADC_read_8bit_nowait
|
Complete asynchronous read of most significant 8 bits of analog channel
|
ADC_start_read_10bit_nowait
|
Start asynchronous read of all 10 bits of analog channel
|
ADC_read_10bit_nowait
|
Complete asynchronous read of all 10 bits of analog channel
|