adc16 2.0.0.0
|
ADC 16 Click is a compact add-on board that contains a high-performance data converter. This board features the ADS7142-Q1, a low-power two-channel 12-bit analog-to-digital converter from Texas Instruments. This I2C configurable 140kSPS successive approximation register (SAR) analog-to-digital converter (ADC) can autonomously monitor signals while maximizing system power, reliability, and performance. It implements event-triggered interrupts per channel using a digital window comparator with programmable high and low thresholds, hysteresis, and event counter.
We provide a library for the ADC 16 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 16 Click driver.
adc16_cfg_setup
Config Object Initialization function. adc16_init
Initialization function. adc16_default_cfg
Click Default Configuration function. adc16_single_register_write
This function writes a single data to the selected register. adc16_single_register_read
This function reads a single data from the selected register. adc16_get_voltage
This function reads the voltage from two analog input single-ended channels. This example demonstrates the use of ADC 16 click board by reading the voltage from the two analog input channels.
The demo application is composed of two sections :
Initializes the driver and performs the click default configuration which sets the two analog input channels to single-ended mode.
Reads and displays the voltage from the two analog input channels on the USB UART approximately every 100ms.
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.