adc21 2.1.0.0
|
ADC 21 Click is a compact add-on board that converts an analog voltage into a digital representation. This board features the ADC1283, a low-power, eight-channel pure CMOS 12-bit analog-to-digital converter from STMicroelectronics. The ADC1283 is specified for conversion from 50ksps to 200ksps. Its architecture is based on a successive approximation register with an internal track-and-hold cell. It features eight single-ended multiplexed inputs, where the output serial data is straight binary and SPI-compatible.
We provide a library for the ADC 21 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 21 Click driver.
adc21_cfg_setup
Config Object Initialization function. adc21_init
Initialization function. adc21_read_raw_adc
This function reads raw ADC value from the selected channel by using SPI serial interface. adc21_read_voltage
This function reads raw ADC value from the selected channel and converts it to proportional voltage level depending on the avcc selection. This example demonstrates the use of ADC 21 click board by reading and displaying the voltage levels from 8 analog input channels.
The demo application is composed of two sections :
Initializes the driver and logger.
Reads the voltage levels from all 8 analog input channels and displays the results on the USB UART once per second approximately.
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.