adc19 2.0.0.0
|
ADC 19 Click is a compact add-on board that contains a high-performance data converter. This board features the ADC122S101, a low-power two-channel CMOS 12-bit analog-to-digital converter from Texas Instruments. This SPI configurable analog-to-digital converter (ADC) is fully specified over a sample rate range of 500ksps to 1Msps, offering high reliability and performance. The converter is based on a successive-approximation register architecture with an internal track-and-hold circuit configurable to accept one or two input signals at its input channels.
We provide a library for the ADC 19 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 19 Click driver.
adc19_cfg_setup
Config Object Initialization function. adc19_init
Initialization function. adc19_set_vref
This function sets the voltage reference value that will be used for voltage calculation. adc19_set_input_channel
This function sets the selected input channel active by modifying the control register. adc19_get_voltage
This function reads the voltage from the previously selected channel by using SPI serial interface. This example demonstrates the use of ADC 19 click board by reading the voltage from the two analog input channels.
The demo application is composed of two sections :
Initializes the driver and logger and sets the ADC voltage reference.
Reads and displays the voltage from the two analog input channels on the USB UART approximately every 500ms.
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.