adc10
2.0.0.0
|
ADC 10 Click is a compact add-on board that contains a high-performance data converter. This board features the ADS122U04, a 24-bit precision ΔΣ analog-to-digital converter with UART compatible interface from Texas Instruments.
We provide a library for the Adc10 Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on mikroE github account.
This library contains API for ADC 10 Click driver.
adc10_cfg_setup
Config Object Initialization function. adc10_init
Initialization function. adc10_default_cfg
Click Default Configuration function. adc10_start_sync
ADC 10 Start the synchronization function. adc10_get_ch_output
ADC 10 Get the channel output function. adc10_calc_voltage
ADC 10 Calculate the voltage function. This is an example that demonstrates the use of the ADC 10 click board.
The demo application is composed of two sections :
Initialization driver enables - UART,
select analog input channel 0, perform a hardware and software reset and set the default device configuration, also, write a log.
In this example, we monitor and display
24-bits of data ( from 0 to 8388607 ) of ADC and voltage ( from 0 mV to 2048 mV ) on the selected channel ( CH-0, CH-1, CH-2 or CH-3 ). Results are being sent to the Usart Terminal where you can track their changes. All data logs write on USB uart changes approximately for every 1 sec.
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on mikroE github account.
Other mikroE Libraries used in the example:
Additional notes and informations
Depending on the development board you are using, you may need USB UART click, USB UART 2 Click or RS232 Click to connect to your PC, for development systems with no UART to USB interface available on the board. UART terminal is available in all Mikroelektronika compilers.