This version (20 Mar 2018 16:44) was approved by CsomI.The Previously approved version (08 Mar 2017 15:26) is available.Diff

AD7616 User Guide


The AD7616 is a 16-bit, data acquisition system (DAS) that supports dual simultaneous sampling of 16 channels. The AD7616 operates from a single 5 V supply and can accommodate ±10 V, ±5 V, and ±2.5 V true bipolar input signals while sampling at throughput rates up to 1 MSPS per channel pair with 90 dB SNR. Higher SNR performance can be achieved with the on-chip oversampling mode; 92 dB for an oversampling ratio of 2.

The input clamp protection circuitry can tolerate voltages up to ±20 V. The AD7616 has 1 MΩ analog input impedance regardless of sampling frequency. The single supply operation, on-chip filtering, and high input impedance eliminate the need for driver op-amps and external bipolar supplies.

Each device contains analog input clamp protection, a dual, 16-bit charge redistribution successive approximation analog-to-digital converter (ADC), a flexible digital filter, a 2.5 V reference and reference buffer, and high-speed serial and parallel interfaces.


  • Powerline monitoring
  • Protective relays
  • Multiphase motor control
  • Instrumentation and control systems
  • Data acquisition systems (DAS)

Supported Devices

Evaluation Boards

Supported carrier

Other required hardware

Required software

  • We're upgrading the Xilinx tools on every release. The supported version number can be found in our git repository .
  • An UART terminal (Tera Term/Hyperterminal), baud rate set to 115200.

Using the HDL reference design

In the ADI Reference Designs HDL User Guide can be found an in-depth presentation and instructions about the HDL design in general.

In the axi_ad7616's wiki page, can be found a detailed description of the core.

The data path of the HDL design is simple as follows:

  • the serial or parallel interface is controlled by the axi_ad7616 IP core
  • data is written into memory by a DMA (axi_dmac core)
  • all the control pins of the device are driven by GPIO's

In order to build the HDL design the user has to go through the following steps:

  1. Confirm that you have the right tools (see Release notes)
  2. Clone the HDL GitHub repository (see
  3. Choose the required interface (see caption Switching between interface types)

Switching between interface types

Before power-up the board, the user has to choose the required device interface and setup, in function of the required interface mode some hardware modification needs to be done on the board and/or Tcl script:

1) In case of the SERIAL interface:

  • open system_project.tcl and set:
set ad7616_if 0
  • Short the SL5 on the board. (It is on the front side of the board, near of the device)
  • To activate both SDI line, short the SL3 on the back of the board.

2) In case of the PARALLEL interface:

set ad7616_if 1
  • No hardware modification required for this interface mode.

Because of the SDP-I-FMC the level of the VADJ in the carrier board needs to be set to 3.3V.

No-OS Driver Description

Functions Declarations

Function Description
int32_t ad7616_read(ad7616_dev *dev, uint8_t reg_addr, uint16_t *reg_data);
SPI read from device.
int32_t ad7616_write(ad7616_dev *dev, uint8_t reg_addr, uint16_t reg_data);
SPI write to device.
int32_t ad7616_read_mask(ad7616_dev *dev, uint8_t reg_addr, uint16_t mask, uint16_t *data);
SPI read from device using a mask.
int32_t ad7616_write_mask(ad7616_dev *dev, uint8_t reg_addr, uint16_t mask, uint16_t data);
SPI write to device using a mask.
int32_t ad7616_spi_read(ad7616_dev *dev, uint8_t reg_addr, uint16_t *reg_data);
SPI read from device.
int32_t ad7616_spi_write(ad7616_dev *dev, uint8_t reg_addr, uint16_t reg_data);
SPI write to device.
int32_t ad7616_par_read(ad7616_dev *dev, uint8_t reg_addr, uint16_t *reg_data);
PAR read from device.
int32_t ad7616_par_write(ad7616_dev *dev, uint8_t reg_addr, uint16_t reg_data);
PAR write to device.
int32_t ad7616_reset(ad7616_dev *dev);
Perform a full reset of the device.
int32_t ad7616_set_range(ad7616_dev *dev, ad7616_ch ch, ad7616_range range);
Set the analog input range for the selected analog input channel.
int32_t ad7616_set_mode(ad7616_dev *dev, ad7616_mode mode);
Set the operation mode (software or hardware).
int32_t ad7616_set_oversampling_ratio(ad7616_dev *dev, ad7616_osr osr);
Set the oversampling ratio.
int32_t ad7616_setup(ad7616_dev **device, adc_core *core, ad7616_init_param init_param);
Initialize the device.

Types Declarations

typedef enum {
} ad7616_mode;
typedef enum {
} ad7616_interface;
typedef enum {
} ad7616_ch;
typedef enum {
    AD7616_2V5 = 1,
    AD7616_5V  = 2,
    AD7616_10V = 3,
} ad7616_range;
typedef enum {
} ad7616_osr;
typedef struct {
    /* SPI */
    spi_device          spi_dev;
    /* GPIO */
    gpio_device         gpio_dev;
    int8_t              gpio_hw_rngsel0;
    int8_t              gpio_hw_rngsel1;
    int8_t              gpio_reset;
    int8_t              gpio_os0;
    int8_t              gpio_os1;
    int8_t              gpio_os2;
    /* Device Settings */
    ad7616_interface    interface;
    ad7616_mode         mode;
    ad7616_range        va[8];
    ad7616_range        vb[8];
    ad7616_osr          osr;
    adc_core            *core;
} ad7616_dev;
typedef struct {
    /* SPI */
    uint8_t             spi_chip_select;
    spi_mode            spi_mode;
    spi_type            spi_type;
    uint32_t            spi_device_id;
    /* GPIO */
    gpio_type           gpio_type;
    uint32_t            gpio_device_id;
    int8_t              gpio_hw_rngsel0;
    int8_t              gpio_hw_rngsel1;
    int8_t              gpio_reset;
    int8_t              gpio_os0;
    int8_t              gpio_os1;
    int8_t              gpio_os2;
    /* Device Settings */
    ad7616_mode         mode;
    ad7616_range        va[8];
    ad7616_range        vb[8];
    ad7616_osr          osr;
} ad7616_init_param;

Create the SDK Project

To run the application the user has to create aEmpty Application Project using Xilinx SDK, and have to copy all the design sources to the sw directory. (see SDK Software Setup for more detailed instructions)

HDL Downloads

No-OS Downloads


Questions? Feel free to ask your questions in EngineerZone support forums.

resources/eval/user-guides/ad7616-sdz.txt · Last modified: 20 Mar 2018 16:44 by CsomI