This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
resources:tools-software:product-support-software:ad4696_mbed_iio_application [15 Aug 2022 22:48] – [Useful links] Jim Catt | resources:tools-software:product-support-software:ad4696_mbed_iio_application [27 Dec 2022 09:28] (current) – Janani Sunil | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== AD4696 | + | ====== AD4696 IIO Application ====== |
===== Introduction ===== | ===== Introduction ===== | ||
- | This page gives an overview of using the ARM Mbed platform supported firmware example with Analog Devices AD4696 Evaluation board(s) and SDP-K1 controller board. This example code leverage | + | This page gives an overview of using the ARM Mbed platform supported firmware example with Analog Devices AD4696 Evaluation board(s) and SDP-K1 controller board. This example code leverages |
- | The overview of an entire system is shown below: | + | {{section>resources/tools-software/product-support-software/ |
- | + | ||
- | {{ :resources:tools-software:product-support-software: | + | |
- | {{ : | + | |
- | + | ||
- | IIO oscilloscope is used as client application running on windows-OS, which is ADI developed GUI for ADC data visualization and device debug. The interface used for communicating client application with firmware application (IIO device) is UART (Note: SDP-K1 can also support high speed VirtualCOM port @1Mbps or higher speed for faster data transmission). The firmware application communicates with IIO device (AD4696) using ADI No-OS drivers and platform drivers low level software layers. SDP-K1 is used as controller board, on which IIO firmware application runs and using above software libraries, the IIO firmware communicates with AD4696 IIO device. The AD4696B Eval board is used for development and testing of this application. | + | |
- | + | ||
- | <note important> | + | |
---- | ---- | ||
Line 18: | Line 11: | ||
===== Useful links ===== | ===== Useful links ===== | ||
- | * [[https://ide.mbed.com/compiler|Mbed Online Compiler]] | + | {{section> |
- | * [[https:// | + | |
* [[https:// | * [[https:// | ||
* [[adi> | * [[adi> | ||
Line 26: | Line 18: | ||
===== Hardware Connections ===== | ===== Hardware Connections ===== | ||
- | |||
=== Power Connections: | === Power Connections: | ||
- | * Connect a 12V ( 1A max ) DC power supply to board through VPWR and GND4 pin. | + | * Connect a 12V (1A max) DC power supply to board through VPWR and GND4 pin. |
* Connect the VCC_HOST pin of the AD4696 to the 3.3V supply. | * Connect the VCC_HOST pin of the AD4696 to the 3.3V supply. | ||
Line 44: | Line 35: | ||
< | < | ||
- | The AD4696 | + | The SDP-K1 generates PWM signals to manually trigger conversion on the AD4696. The digital pin and the sampling rate for PWM signal can be configured in the app_config_mbed.h file. By default, it is generated at 62.5 KSPS on D6 Arduino pin. The D6 (CNV) Arduino pin is used to generate trigger signals |
- | SDP-K1 is powered through USB connection from the computer. SDP-K1 acts as a Serial device when connected | + | The firmware supports both unipolar and pseudo bipolar modes. By default, |
- | {{ : | + | The AD4696 device is configured in " |
- | SDP-K1 can also support high speed VirtualCOM port UART interface if “USE_VIRTUAL_COM_PORT” macro is defined in the firmware (in app_config.h file). | + | {{section>resources/tools-software/product-support-software/ |
- | {{ :resources:tools-software:product-support-software: | + | |
- | ---- | ||
- | ===== Theory of operation ===== | ||
- | The SDP-K1 generates PWM signals to manually trigger conversion on the AD4696. The digital pin and the sampling rate for PWM signal can be configured in the app_config_mbed.h file. By default it is generated at 62.5 KSPS on D6 Arduino pin. To achieve this, the CS of the SDP-K1 and CNV pins on the Eval board should be shorted/ | ||
- | |||
- | The firmware supports both unipolar and pseudo bipolar modes. By default the firmware is configured in unipolar mode. To switch to pseudo bipolar mode, by defining " | ||
- | |||
===== Software Downloads ===== | ===== Software Downloads ===== | ||
- | ==== Mbed Firmware ==== | + | {{section> |
- | + | ||
- | <WRAP round download> | + | |
- | Latest firmware (Use below link): | + | |
- | * [[https:// | + | |
- | </ | + | |
- | + | ||
- | === Quick Start to use Mbed IIO Firmware === | + | |
- | + | ||
- | If you have some familiarity with the Mbed platform, the following is a basic list of steps required to start running the code, see below for more detail: | + | |
- | * Connect the AD4696 EVAL-board to the SDP-K1 controller board as specified in hardware connections section. | + | |
- | * Connect the SDP-K1 controller board to your computer over USB provided along with SDP-K1 board. | + | |
- | * Go to the link of the code provided above in the ' | + | |
- | * Ensure SDP-K1 controller board is selected (top right of online-compiler page). | + | |
- | * Compile the code. | + | |
- | * After a successful compile a binary will be downloaded to your computer - store this on your drive. | + | |
- | * Drag and drop this binary to the USB drive hosted by your controller board. | + | |
- | * Press reset button to reset the microcontroller and the application will start to run. | + | |
- | + | ||
- | + | ||
- | ==== Libiio: IIO Library ==== | + | |
- | This library provides an abstracted library interface to communicate IIO device (AD4696) and IIO client application (IIO Oscilloscope) without worrying about the low level hardware details. | + | |
- | Download and install below [[/resources/ | + | |
- | + | ||
- | <WRAP round download> | + | |
- | Libiio installer for Windows (Use below link): | + | |
- | * [[https:// | + | |
- | ]] | + | |
- | </ | + | |
- | + | ||
- | + | ||
- | ==== IIO Oscilloscope (Client) ==== | + | |
- | This is a GUI (Graphical User Interface) based IIO client application for data visualization and device configuration/ | + | |
- | Download and install below [[/ | + | |
- | + | ||
- | <WRAP round download> | + | |
- | IIO Oscilloscope installer for Windows (Use below link): | + | |
- | * [[https:// | + | |
- | ]] | + | |
- | </ | + | |
- | + | ||
- | + | ||
- | ---- | + | |
===== Evaluating AD4696 Using IIO Ecosystem ===== | ===== Evaluating AD4696 Using IIO Ecosystem ===== | ||
- | <note>Ensure that hardware connection has been made properly in between Mbed Controller Board (SDP-K1) and AD4696 EVAL board. Also ensure all software's (IIO firmware, Libiio windows installer and IIO Oscilloscope windows installer) are downloaded and installed in your computer before trying to communicate with AD4696 device.</note> | + | {{section>resources/ |
==== Running IIO Oscilloscope (Client) ==== | ==== Running IIO Oscilloscope (Client) ==== | ||
Open the IIO Oscilloscope application from start menu and configure the serial (UART) settings as shown below. | Open the IIO Oscilloscope application from start menu and configure the serial (UART) settings as shown below. | ||
- | Click on refresh button and AD4696 device should pop-up in IIO devices list. Click ' | + | Click on refresh button and AD4696 device should pop-up in IIO devices list. Click ' |
{{ : | {{ : | ||
Line 141: | Line 82: | ||
DMM tab can be used read the instantaneous voltage applied on analog input channels. Simply select the device and channels to read and press start button. | DMM tab can be used read the instantaneous voltage applied on analog input channels. Simply select the device and channels to read and press start button. | ||
- | //*Note: The voltage is just instantaneous, | + | //*Note: The voltage is just instantaneous, |
{{ : | {{ : |