adc16 2.0.0.0
|
PRVIH_PAR_RECENICA_SA_PRODUCT_PAGE_DA_ISPRATE_CELINU
[click Product page](CLICK_PRODUCT_PAGE_LINK)
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.