world leader in high performance signal processing
This version (12 Apr 2013 15:56) was approved by LucianS.The Previously approved version (11 Feb 2013 13:11) is available.Diff

AD7476A Pmod Xilinx FPGA Reference Design

Introduction

The AD7476A is 12-bit, high speed, low power, successive-approximation analog-to-digital converter (ADC). The part operates from a single 2.35V to 5.25V power supply and feature throughput rates up to 1 MSPS. The part contains a low noise, wide bandwidth track-and-hold amplifier that can handle input frequencies in excess of 13 MHz.

Two reference designs are available for this part:

  • A design which demonstrates how to acquire a signal and reproduce it using Digilent PmodAD1 and PmodDA1. Four types of waveforms (Square, Sine, Sawtooth and Triangle) are generated using the AD7303 DAC present on the PmodDA1 board. Each waveform has a period of 25 ms, and lasts for 25 s (1000 periods). A loopback cable is connected between the output of the AD7303 DAC (A1 Output) and the input of the AD7476 ADC (A0 input) present on the PmodAD1 board. The Xilinx ChipScope Analyzer tool is used to verify the digitized waveforms.

AD7476A Pmod Reference Design

Quick Start Guide

The bit file provided in the project *.zip file combines the FPGA bit file and the SDK elf files. It may be used for a quick check on the system. All you need is the hardware and a PC running a UART terminal and the programmer (IMPACT).

Required Hardware

Required Software

  • Xilinx ISE 14.4 (Programmer (IMPACT) is sufficient for the demo and is available on Webpack).
  • A UART terminal (Tera Term/Hyperterminal), Baud rate 115200 for the Avnet LX-9 Microboard or 9600 for the Digilent Nexys™3 Board.

Running Demo (SDK) Program

If you are not familiar with LX9 and/or Xilix tools, please visit
http://www.xilinx.com/products/boards-and-kits/AES-S6MB-LX9.htm for details.
If you are not familiar with Nexys™3 and/or Xilix tools, please visit
http://www.digilentinc.com/Products/Detail.cfm?NavPath=2,400,897&Prod=NEXYS3 for details.

Extract the project from the archive file (AD7476A_<board_name>.zip) to the location you desire.

Avnet LX9 MicroBoard Setup

To begin, connect the PmodAD1 to J5 connector of LX9 board, pins 1 to 6 (see image below). You can use an extension cable for ease of use. Connect the USB cable from the PC to the USB-UART female connector of the board for the UART terminal. The board will be programmed through its USB male connector.

PmodAD1 and LX-9

Digilent Nexys™3 Spartan-6 FPGA Board

To begin, connect the PmodAD1 to JA connector of Nexys™3 board, pins JA1 to JA6 (see image below). You can use an extension cable for ease of use. Connect the USB cables from the PC to the board, one for programming (Digilent USB device) and one for the UART terminal (FT232R USB UART).

PmodAD1 and Nexys™3

FPGA Configuration

Start IMPACT, and double click “Boundary Scan”. Right click and select Initialize Chain. The program should recognize the Spartan 6 device (see screenshot below). Start a UART terminal (set to appropiate baud rate) and then program the device using the bit file provided in the project *.zip archive, located in the “sw” folder (../ad7476a/sw/AD7476A.bit).

Programming FPGA in IMPACT

If programming was successful, you should be seeing messages appear on the terminal window as shown in the figure below. After programming the AD7476A device, the program will automatically read the values of the analog voltage inputs, Vin1 and Vin2, and print them via UART. Pressing any key will initialize another conversion.

UART messeges UART messeges

Using the reference design

Functional Description

The reference design is a simple SPI interface with multiplexed MISO pins for the AD7476A. The software programs the device and prints the values of the analog input voltages Vin1 and Vin2. The information is displayed on UART.

The hardware SPI access allows reading the data sent by the AD7476A, using a single CS and SCLK pins, and a multiplexed MISO pin (PmodAD1 contains two AD7476A Integrated Circuits, which share the same CS and SCLK pins, but have separate MISO pins, which need to be multiplexed).

  • Connecting the PmodAD1 to the LX-9 Board or Nexys™3 Board using an extension cable provides ease of use.
  • UART must be set to 115200 Baud Rate for the Avnet LX-9 Microboard or 9600 Baud Rate for the Digilent Nexys™3 Board.
  • The reference voltage for the AD7476A is 3.3V.

Downloads

AD7476A Pmod and AD7303 Pmod Reference Design

Quick Start Guide

The bit file provided in the project *.zip file combines the FPGA bit file and the SDK elf files. It may be used for a quick check on the system.

Required Hardware

Required Software

Running Demo (SDK) Program


If you are not familiar with Nexys3 and/or Xilix tools, please visit
http://digilentinc.com/Products/Detail.cfm?NavPath=2,400,897&Prod=NEXYS3 for details.

To begin, connect the PmodAD1 to JA1 connector of Nexys3 board, pins 1 to 6 (see image below) and the PmodDA1 to JB1 connector of Nexys3 board, pins 1 to 6. You can use an extension cable for ease of use. Connect the USB cables from the PC to the board.

 Connecting Pmods to Nexys3

Start IMPACT, and double click “Boundary Scan”. Right click and select Initialize Chain. The program should recognize the Spartan 6 device (see screenshot below). Program the FPGA using the download.bit file provided in the project *.zip archive, located in the ”sw” folder (../ad7303_ad7476/sw/download.bit).

Programming FPGA in IMPACT

Start the ChipScope Pro Analyzer provided with the Xilinx ISE Design Suite 13.2 and load the project Nexys3_ChipScope_Demo.cpj located in the ”chipscope” folder (../ad7303_ad7476/chipscope/Nexys3_ChipScope_Demo.cpj). Click the Open Cable/Search JTAG Chain button and afterwards double click Bus Plot and select Repetitive Trigger Run Mode. Click the Apply Settings and Arm Trigger button. On the main screen you will se the waveforms change once every 25 seconds, between Sine, Square, Sawtooth and Triangle waveforms. Each waveform has a period of 25ms. You can compare the waveform displayed in ChipScope Pro with the waveform displayed on an oscilloscope from the DAC output.

Viewing Waveforms in ChipScope Pro

  • Connecting the Pmod-AD1 and/or Pmod-DA1 to the Nexys3 Board using an extension cable provides ease of use.
  • UART must be set to 57600 baudrate.
  • The reference voltage for both the AD7476A and AD7303 is 3.3V (if using Nexys3 Board).
  • A loopback cable is connected between the output of the AD7303 DAC (A1 out) and the input of the AD7476 ADC present on the PmodAD1 board (pin1 in = A0 in).

Downloads

10 Apr 2012 12:28 · Alexandru Tofan

More information