adc12
2.0.0.0
|
ADC 12 Click is a compact add-on board that contains a fully-featured, general-purpose analog-to-digital converter. This board features the ADS7828, a low-power 12-bit data acquisition device that features a serial I2C interface and an 8-channel multiplexer from Texas Instruments.
We provide a library for the ADC12 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 ADC12 Click driver.
adc12_cfg_setup
Config Object Initialization function. adc12_init
Initialization function. adc12_read_voltage
This function reads the voltage in milivolts from the desired channel. adc12_read_raw_data
This function reads raw 12-bit ADC data from the desired channel. adc12_set_sd_mode
This function sets the input mode. This example demonstrates the use of ADC 12 Click board.
The demo application is composed of two sections :
Initializes the driver and sets the input and power-down modes.
Reads the RAW ADC data and converts it to voltage in milivolts and displays both values on the USB UART every second.
With internal reference voltage set the Click measures up to 2500 mV.
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.