adc19
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 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.