Wiki

This version is outdated by a newer approved version.DiffThis version (16 Apr 2021 11:40) is a draft.
Approvals: 0/1

This is an old revision of the document!


Mbed IIO Application

Introduction

This page gives an overview of using the ARM Mbed platform supported firmware example with Analog Devices AD4130 Evaluation board and SDP-K1 controller board. This example code leverages the ADI developed IIO (Industrial Input Output) ecosystem to evaluate the AD4130 device by providing a device debug and data capture support. The overview of an entire system is shown below: 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. The firmware application communicates with IIO device (AD4130) 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 AD4130 IIO device. The AD4130 eval board is used for development and testing of this application.

Hardware Connections

Jumper Settings

  • SDP-K1:
    Connect the VIO_ADJUST jumper on the SDP-K1 board to 3.3V position to drive SDP-K1 GPIOs at 3.3V
  • EVAL-AD4130:

Hardware Interface

AD4130 uses SPI communication for device register access and data capture. SDP-K1 is powered through USB connection from the computer. SDP-K1 acts as a Serial device when connected to PC, which creates a COM Port to connect to IIO Oscilloscope GUI running on windows-os. The COM port assigned to a device can be seen through the device manager for windows based OS.

Software Downloads

Firmware

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:

  1. Connect the AD4130 EVAL-board to the SDP-K1 controller board as specified in hardware connections section.
  2. Connect the SDP-K1 controller board to your computer over USB provided along with SDP-K1 board.
  3. Go to the link of the code provided above in the 'Downloads' section and import code into Mbed Online Compiler.
  4. Ensure SDP-K1 controller board is selected (top right of online-compiler page). (SDP-K1 platform pre-installed from here.
  5. Compile the code.
  6. After a successful compile a binary will be downloaded to your computer - store this on your drive.
  7. Drag and drop this binary to the USB drive hosted by your controller board.

*Note: For more details on importing code into Mbed online compiler, refer below link (Section: Importing from local machine): here.

Libiio: IIO Library

This library provides an abstracted library interface to communicate IIO device (AD4130) and IIO client application (IIO Oscilloscope) without worrying about the low level hardware details. Download and install below libiio windows installer in your computer. Libiio installer for Windows (Use below link):

IIO Oscilloscope (Client)

This is a GUI (Graphical User Interface) based IIO client application for data visualization and device configuration/debugging. The data from IIO devices (ADCs/DACs) is transmitted over Serial/Ethernet/USB link to IIO Oscilloscope client through the abstracted layer of “libiio”. Download and install below IIO Oscilloscope windows installer in your computer. IIO Oscilloscope installer for Windows (Use below link):

resources/eval/user-guides/ad4130/mbed_iio_app.1618566032.txt.gz · Last modified: 16 Apr 2021 11:40 by Zhaoqun Guo