Wiki

no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


Previous revision
Next revision
resources:fpga:xilinx:pmod:ad7193 [08 Jun 2012 16:56] – Approved Alexandru.Tofan
Line 1: Line 1:
 +====== AD7193 Pmod Xilinx FPGA Reference Design ======
 + 
 +===== Introduction =====
  
 +The [[adi>AD7193]] is a low noise, complete analog front end for high precision measurement applications. It contains a low noise, 24-bit sigma-delta (Σ-Δ) analog-to-digital converter (ADC). The on-chip low noise gain stage means that signals of small amplitude can interface directly to the ADC.
 +The device can be configured to have four differential inputs or eight pseudo differential inputs. The on-chip channel sequencer allows several channels to be enabled simultaneously, and the AD7193 sequentially converts on each enabled channel, simplifying communication with the part. The on-chip 4.92 MHz clock can be used as the clock source to the ADC or, alternatively, an external clock or crystal can be used. The output data rate from the part can be varied from 4.7 Hz to 4.8 kHz.
 +
 +**HW Platform(s):** 
 +   * [[http://www.xilinx.com/products/boards-and-kits/AES-S6MB-LX9.htm|Spartan-6 LX9 Microboard (Avnet)]] 
 +   * [[http://www.digilentinc.com/Products/Detail.cfm?NavPath=2,400,897&Prod=NEXYS3|Nexys™3 Spartan-6 FPGA Board (Digilent)]]
 +   * [[http://www.digilentinc.com/Products/Detail.cfm?Prod=PMOD-AD5|PmodAD5 (Digilent)]] \\
 +**System:** Microblaze, AXI, UART \\
 +
 +===== 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 ====
 +  * [[http://www.xilinx.com/products/boards-and-kits/AES-S6MB-LX9.htm|Spartan-6 LX9 Microboard (Avnet)]]   
 +  * [[http://www.digilentinc.com/Products/Detail.cfm?NavPath=2,400,897&Prod=NEXYS3|Nexys™3 Spartan-6 FPGA Board (Digilent)]]
 +  * [[http://www.digilentinc.com/Products/Detail.cfm?Prod=PMOD-AD5|PmodAD5 (Digilent)]]
 +
 +==== Required Software ====
 +  * Xilinx ISE 13.2 (Programmer (IMPACT) is sufficient for the demo and is available on Webpack).
 +  * A UART terminal (Tera Term/Hyperterminal), Baud rate 57600.
 +
 +
 +==== Running Demo (SDK) Program ====
 +
 +<note tip>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.
 +</note>
 +Extract the project from the archive file (AD7193_<board_name>.zip) to the location you desire. 
 +
 +==== Avnet LX9 MicroBoard Setup ====
 +
 +To begin, connect the PmodAD5 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 cables from the PC to the board.
 +
 +{{:resources:fpga:xilinx:pmod:pmodad5.jpg?200|PmodAD5 and LX-9}}
 +
 +==== Digilent Nexys™3 Spartan-6 FPGA Board ====
 +
 +To begin, connect the PmodAD5 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.
 +
 +{{:resources:fpga:xilinx:pmod:pmodad5_nexys3.jpg?200|PmodAD5 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 57600 baud rate) and then program the device using the bit file provided in the project *.zip archive, located in the "sw" folder (../ad7193/sw/AD7193.bit).
 +
 +{{:resources:fpga:xilinx:pmod:PmodAD5impact.jpg?200|Programming FPGA in IMPACT}}
 +
 +If programming was successful, you should be seeing messages appear on the terminal window as shown in the figures below. After programming the AD7193, the program will display the values of all internal registers. After that, it will go through 3 Demo Modes: Read Voltage Values referenced to AINCOM, Read Differential Voltage Values and Read Die Temperature Value.
 +
 +{{:resources:fpga:xilinx:pmod:pmodad5demo1.jpg?200|UART messeges}}
 +{{:resources:fpga:xilinx:pmod:pmodad5demo2.jpg?200|UART messeges}}
 +{{:resources:fpga:xilinx:pmod:pmodad5demo3.jpg?200|UART messeges}}
 +{{:resources:fpga:xilinx:pmod:pmodad5demo4.jpg?200|UART messeges}}
 +
 +
 +===== Using the reference design =====
 +
 +==== Functional Description ====
 +
 +The reference design is a custom SPI Interface, containing CS, SCLK, MISO, MOSI, but also a GPIO to read the RDY status on the MISO line. The information is displayed on UART.
 +
 +The hardware SPI access allows sending and receiving data from the AD7193, programming its internal registers in order to decide which channels should be converted corresponding to AINCOM or its own differential pair, what GAIN, sampling frequency, etc.
 +
 +<note important>
 +  * Connecting the PmodAD5 to the boards using an extension cable provides ease of use.
 +  * UART must be set to 57600 baudrate.
 +  * Reference voltage is 2.5V
 +  * If using Xilinx Software Development Kit integrated Console as a Hyperterminal clinet, please uncomment all the commented **getchar();** in main.c, because the Console sees [Enter] as 2 consecutive keypresses, so 2 getchar(); are required. If using Tera Term or other similar software, do not modify anything. 
 +</note>
 +
 +
 +===== Downloads =====
 +{{:resources:fpga:xilinx:pmod:ad7193_lx9.zip|Reference design source code for Avnet LX9 MicroBoard.}} \\
 +{{:resources:fpga:xilinx:pmod:ad7193_nexys3.zip|Reference design source code for Digilent Nexys™3 Spartan-6 FPGA Board.}} \\
 +
 +
 +===== More information =====
 +  * [[ez>community/fpga|ask questions about the FPGA reference design]]
 +  * Example questions: {{rss>http://ez.analog.com/community/feeds/allcontent/atom?community=2061 5 author 1d}}
resources/fpga/xilinx/pmod/ad7193.txt · Last modified: 09 Jan 2021 00:49 by Robin Getz