adac2
2.1.0.0
|
ADAC 2 Click is a compact add-on board providing the ADC/DAC combo solution. This board features the MAX22000, a 24-bit ADC, an 18-bit DAC, and an analog front-end (AFE) from Analog Devices. It allows users to create a software-configurable (SPI interface) input/output that supports all standard industrial analog interfaces: -10V to +10V analog input or output, -20mA to +20mA analog input or output, as well as an RTD or thermocouple input for temperature measurement.
We provide a library for the ADAC 2 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 ADAC 2 Click driver.
adac2_cfg_setup
Config Object Initialization function. adac2_init
Initialization function. adac2_default_cfg
Click Default Configuration function. adac2_set_active_ain_channel
This function sets the active analog input channel. adac2_read_voltage
This function reads RAW ADC value of previous conversion and converts it to voltage. adac2_write_dac
This function sets the analog output by writing to the AO_DATA_WR register. This example demonstrates the use of ADAC 2 Click board by setting the DAC output (CIO)
and reading the ADC results from a single-ended channel (AI4) and from a differential channel (AI5+, AI6-) as well as toggling all GPIO pins.
The demo application is composed of two sections :
Initializes the driver and performs the Click default configuration which enables
DAC voltage output, sets the analog input mode to single-ended for AI4 and differential (AI5+, AI6-), and enables all GPIOs as output.
Reads the ADC results from a single-ended (AI4) and a differential (AI5+, AI6-) channels,
then sets the raw DAC output increasing the value by 10000 after each iteration, and toggles all GPIO pins. The results will be displayed 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.