Wiki

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
resources:fpga:altera:ced1z:ad7671 [02 Jul 2012 10:14] – [FPGA Design] Updated design to 16Bit SRAM system Adrian Costinaresources:fpga:altera:ced1z:ad7671 [21 Aug 2012 11:49] – Changed acquisition procedure to use only scripts Adrian Costina
Line 3: Line 3:
 ====== Overview ====== ====== Overview ======
  
-This document presents the steps to setup an environment for using the **[[adi>AD57671|EVAL-AD7671CBZ]]** evaluation board together with the **[[adi>EVAL-CED|EVAL-CED Converter Evaluation and Development (CED) Board]]**, the Nios II Embedded Development Suite (EDS) and the [[http://micrium.com/page/products/tools/probe|Micrium µC-Probe]] run-time monitoring tool. Below is presented a picture of the EVAL-AD7671 Evaluation Board with the CED1 board.+This document presents the steps to setup an environment for using the **[[adi>AD57671|EVAL-AD7671CBZ]]** evaluation board together with the **[[adi>EVAL-CED|EVAL-CED Converter Evaluation and Development (CED) Board]]** and Nios II Embedded Development Suite (EDS). Below is presented a picture of the EVAL-AD7671 Evaluation Board with the CED1 board.
  
 {{ :resources:fpga:altera:cedz:img_0024.png?500 }} {{ :resources:fpga:altera:cedz:img_0024.png?500 }}
Line 20: Line 20:
   * [[adi>/static/imported-files/eval_boards/EVAL-AD76XXEDZ.pdf|EVAL-AD7671CBZ evaluation board user guide]]   * [[adi>/static/imported-files/eval_boards/EVAL-AD76XXEDZ.pdf|EVAL-AD7671CBZ evaluation board user guide]]
   * [[http://www.altera.com/devices/processor/nios2|Nios II Embedded Development Suite (EDS)]]   * [[http://www.altera.com/devices/processor/nios2|Nios II Embedded Development Suite (EDS)]]
-  * [[http://micrium.com/page/products/tools/probe|Micrium uC-Probe]] 
  
 ====== Getting Started ====== ====== Getting Started ======
Line 39: Line 38:
   * [[http://www.altera.com/products/software/quartus-ii/web-edition/qts-we-index.html|Quartus II Web Edition]] design software v11.0   * [[http://www.altera.com/products/software/quartus-ii/web-edition/qts-we-index.html|Quartus II Web Edition]] design software v11.0
   * [[https://www.altera.com/download/software/nios-ii|Nios II EDS]] v11.0   * [[https://www.altera.com/download/software/nios-ii|Nios II EDS]] v11.0
-  * [[http://micrium.com/page/products/tools/probe|uC-Probe]] run-time monitoring tool 
  
 The **Quartus II** design software and the **Nios II EDS** is available via the Altera Complete Design Suite DVD or by downloading from the web.  The **Quartus II** design software and the **Nios II EDS** is available via the Altera Complete Design Suite DVD or by downloading from the web. 
- 
-The **Micrium uC/Probe Trial** version is available via download from the web at [[http://micrium.com/download/Micrium-uC-Probe-Setup-Trial.exe]]. **Note:** After installation add to the “Path” system variable the entry "//%QUARTUS_ROOTDIR%\bin\//“ on the third position in the list. 
  
 ===== Downloads ===== ===== Downloads =====
Line 49: Line 45:
 ===== Extract the Lab Files ===== ===== Extract the Lab Files =====
  
-Create a folder called “**//ADIEvalBoard//**” on your PC and extract the **//ad7671_evalboard.zip//** archive to this folder. Make sure that there are **//NO SPACES//** in the directory path. After extracting the archive the following folders should be present in the **//ADIEvalBoard//** folder: **//FPGA//**, **//Hdl//**, **//NiosCpu//**, **//Software//**, **//ucProbe//**+Create a folder called “**//ADIEvalBoard//**” on your PC and extract the **//ad7671_evalboard.zip//** archive to this folder. Make sure that there are **//NO SPACES//** in the directory path. After extracting the archive the following folders should be present in the **//ADIEvalBoard//** folder: **//FPGA//**, **//Hdl//**, **//NiosCpu//**, **//Software//**, **//DataCapture//**
  
 ^ **Folder** ^ **Description** ^ ^ **Folder** ^ **Description** ^
Line 55: Line 51:
 | Hdl | Contains the source files for the AD7671 HDL driver: \\ - The //doc// subfolder contains a brief documentation for the driver. \\ - The //src// subfolder contains the HDL source files.  \\ - The //tb// folder contains the sources of the driver's testbench. | | Hdl | Contains the source files for the AD7671 HDL driver: \\ - The //doc// subfolder contains a brief documentation for the driver. \\ - The //src// subfolder contains the HDL source files.  \\ - The //tb// folder contains the sources of the driver's testbench. |
 | NiosCpu | Contains the CED1Z Quartus evaluation project source files . The //ip// subfolder contains the AD7671 SOPC component. | | NiosCpu | Contains the CED1Z Quartus evaluation project source files . The //ip// subfolder contains the AD7671 SOPC component. |
-| Software | Contains the source files of the uCProbe library and the main file of the Nios2 SBT evaluation project.| +| Software | Contains the source files of the Nios2 SBT evaluation project.| 
-uCProbe | Contains the uCProbe interface and data capture script used to acquire data from the evaluation board and store it in a local .csv file. |+DataCapture | Contains the script files used for data acquisition | 
 ===== Install the USB-Blaster Device Driver ===== ===== Install the USB-Blaster Device Driver =====
 {{page>:resources:fpga:altera:ced1z:common_usb}} {{page>:resources:fpga:altera:ced1z:common_usb}}
Line 134: Line 131:
  
 ====== Quick Evaluation ====== ====== Quick Evaluation ======
-{{page>:resources:fpga:altera:ced1z:common_quick_evaluation}}+{{page>:resources:fpga:altera:ced1z:quick_evaluation}}
  
 ====== NIOS II Software Design ====== ====== NIOS II Software Design ======
-{{page>:resources:fpga:altera:ced1z:common_nios2_software_design}}+{{page>:resources:fpga:altera:ced1z:common_software_design}}
  
-====== uC-Probe Interface ====== 
- 
-{{page>:resources:fpga:altera:ced1z:common_ucprobe}} 
- 
-===== Load and Run the Demonstration Project ===== 
- 
-  * Click the **//Open//** option from the **uC-Probe** menu and select the file **//ADIEvalBoard/ucProbe/AD7671_Interface.wsp//**. 
- 
-{{:resources:fpga:altera:ced1z:ucprobeopen.png?400}}{{:resources:fpga:altera:ced1z:ad7671interfaceopen.png?400}} 
- 
-  * Before opening the interface **uC-Probe** will ask for a symbols file that must be associated with the interface. If the lab was done according to the steps provided in the **Quick Evaluation** section, select the file **//ADIEvalBoard/ucProbe/ADIEvalBoard.elf//** to be loaded as a symbol file, otherwise select the file **//ADIEvalBoard/FPGA/software/ADIEvalBoard/ADIEvalBoard.elf//** to be loaded as a symbol file. 
- 
-{{:resources:fpga:altera:ced1z:loadelfucprobe.png?400}}{{:resources:fpga:altera:ced1z:loadelfsoftware.png?400}} 
- 
-  * Run the demonstration project by pressing the **//Play//** button. 
- 
-{{ :resources:fpga:altera:bemicro:image081.png?300 }} 
- 
-  * Run the //**ADIEvalBoard/uCProbe/data_capture.bat**// script. A DOS command prompt window will open. This window must be closed only when the uCProbe demonstration project will be closed. 
 ====== Evaluation Project User Interface ====== ====== Evaluation Project User Interface ======
  
-The following figure presents the uC-Probe interface that can be used for monitoring and controlling the operation of the EVAL-AD7671CBZ evaluation board.  +In order to capture data from the ADC the following steps must be performed: 
- +  * Make sure that the //**CED1Z FPGA**// is properly programmed and the USB Blaster is connected to the CED1Z board. Using the default elf file, the data format is binary offset. It can be changed by modifying main.c and recompiling the project. 
-{{ :resources:fpga:altera:cedz:ucprobe_interface.png?600 |Demonstration Project User Interface}} +  Execute //**data_capture.bat**// script. At this point 1 Mbyte of data will be acquired from the ADC and saved into the CED1Z SRAM memory. The data stored in the CED1Z SRAM memory is transfered to the PC through the JTAG-UART link provided by the USB Blaster. After the data is transferred to the PC it is converted to either Binary offset or 2's Complement 16 bit values. 
- +  * The resulting data is saved into a comma separated values (.csv) file named **//Acquisition.csv//**, located in the same folder as the //**data_capture.bat**// file.
-In order to capture data from the ADC using the uCProbe demonstration project the following steps must be performed: +
-  * Make sure that the //**CED1Z FPGA**// is properly programmed and the USB Blaster is connected to the CED1Z board. +
-  * Start **//uc/Probe//** application. +
-  * Depending on how the AD7671 part is configured set the data format to either //**Binary Offset**// or //**2's Complement**// +
-  * Press **//Acquisition//** button. At this point 1 Mbyte of data will be acquired from the ADC and saved into the CED1Z SRAM memory. The **//Acquisition In Progress//** LED is lit to signal that the data is acquired from the ADC. When the data acquisition is complete the //**Acquisition Complete**// LED turns green. +
-  * The data stored in the CED1Z SRAM memory is transfered to the PC through the JTAG-UART link provided by the USB Blaster. The **//Transfer In Progress//** LED is lit as long as the data is transferred from the CED1Z to the PC. Whe the data transfer is complete the //**Transfer Complete**// LED turns green. +
-  * After the data is transferred to the PC it is converted to either Binary offset or 2's Complement 16 bit values. The **//Processing Data In Progress//** LED is lit as long as the data conversion is performed. When the conversion is complete the //**Processing Data Complete**// LED turns green.  +
-  * The data captured from the ADC is saved into a comma separated values (.csv) file named **//Acquisition.csv//**, located in the same folder as the //**data_capture.bat**// file. While the data is saved the **//Writing File In Progress//** LED is lit. When the data write process is complete the //**Writing in File Complete**// LED turns green.+
   * The data capture status is also displayed in the opened command window as shown in the figure below.   * The data capture status is also displayed in the opened command window as shown in the figure below.
  
 {{ :resources:fpga:altera:cedz:cmd_interface.png?500 |Demonstration Project Command Interface}} {{ :resources:fpga:altera:cedz:cmd_interface.png?500 |Demonstration Project Command Interface}}
-  * A new acquisition can be started by reactivating the **//Acquisition//** button +  * A new acquisition can be started by executing the //**data_capture.bat**// script.
-  After all the needed data is acquired the uCProbe program and the command window can be closed.+
  
 //**Note:**// If several consecutive data acquisitions are performed the captured data is appended to the **//Acquisition.csv//** file. //**Note:**// If several consecutive data acquisitions are performed the captured data is appended to the **//Acquisition.csv//** file.
  
-====== Troubleshooting ====== +====== More information ====== 
-{{page>:resources:fpga:altera:ced1z:common_troubleshooting}}+  * [[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/altera/ced1z/ad7671.txt · Last modified: 29 Dec 2020 20:21 by Robin Getz