adc18 2.0.0.0
|
ADC 18 Click is a compact add-on board that contains a high-performance data converter. This board features the MAX22005, an SPI-configurable twelve-channel 24-bit analog-to-digital converter (ADC) from Analog Devices.
We provide a library for the ADC 18 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 18 Click driver.
adc18_cfg_setup
Config Object Initialization function. adc18_init
Initialization function. adc18_default_cfg
Click Default Configuration function. adc18_set_active_channel
This function sets the active channel. adc18_start_conversion
This function starts the conversion with the selected data rate. adc18_read_voltage
This function reads RAW ADC value of previous conversion and converts it to voltage. This example demonstrates the use of ADC 18 click board by reading the voltage from 12 analog input single-ended channels.
The demo application is composed of two sections :
Initializes the driver and logger, and performs the click default configuration.
Reads and displays the voltage from 12 analog input single-ended channels on the USB UART approximately once per second.
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.