This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
resources:fpga:xilinx:pmod:adxl362 [03 Jan 2013 20:42] – external edit | resources:fpga:xilinx:pmod:adxl362 [09 Jan 2021 00:57] (current) – user interwiki links Robin Getz | ||
---|---|---|---|
Line 7: | Line 7: | ||
**HW Platform(s): | **HW Platform(s): | ||
- | * [[http://www.xilinx.com/products/ | + | * [[xilinx>products/ |
* [[http:// | * [[http:// | ||
- | * [[http:// | + | * [[http:// |
- | **System:** Microblaze, AXI, UART \\ | ||
===== Quick Start Guide ===== | ===== Quick Start Guide ===== | ||
Line 17: | Line 16: | ||
==== Required Hardware ==== | ==== Required Hardware ==== | ||
- | * [[http://www.xilinx.com/products/ | + | * [[xilinx>products/ |
* [[http:// | * [[http:// | ||
+ | * [[http:// | ||
* [[http:// | * [[http:// | ||
==== Required Software ==== | ==== Required Software ==== | ||
- | * Xilinx ISE 13.2 (Programmer (IMPACT) is sufficient for the demo and is available on Webpack). | + | * Xilinx ISE 14.4 (Programmer (IMPACT) is sufficient for the demo and is available on Webpack). |
- | * A UART terminal (Tera Term/ | + | * A UART terminal (Tera Term/ |
==== Running Demo (SDK) Program ==== | ==== Running Demo (SDK) Program ==== | ||
- | <WRAP tip>If you are not familiar with LX9 and/or Xilix tools, please visit\\ [[http://www.xilinx.com/products/ | + | < |
- | If you are not familiar with Nexys™3 and/or Xilix tools, please visit\\ [[http:// | + | If you are not familiar with Nexys™3 and/or Xilix tools, please visit\\ [[http:// |
- | </ | + | If you are not familiar with ZedBoard and/or Xilix tools, please visit\\ [[http:// |
+ | |||
+ | ==== Avnet LX9 MicroBoard Setup ==== | ||
Extract the project from the archive file (ADXL362_< | Extract the project from the archive file (ADXL362_< | ||
- | ==== Avnet LX9 MicroBoard Setup ==== | + | To begin, connect the PmodACL2 to J5 connector of LX9 board (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. |
- | + | ||
- | To begin, connect the PmodACL2 to J5 connector of LX9 board (see image below). You can use an extension cable for ease of use. Connect the USB cables | + | |
{{: | {{: | ||
Line 42: | Line 42: | ||
==== Digilent Nexys™3 Spartan-6 FPGA Board ==== | ==== Digilent Nexys™3 Spartan-6 FPGA Board ==== | ||
- | To begin, connect the PmodACL2 to JA connector of NEXYS3 board (see image below). You can use an extension cable for ease of use. Connect the USB cables from the PC to the board. | + | Extract the project from the archive file (ADXL362_< |
+ | |||
+ | To begin, connect the PmodACL2 to JA connector of NEXYS3 board (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). | ||
{{: | {{: | ||
- | ==== FPGA Configuration ==== | + | ==== Avnet ZedBoard ==== |
+ | |||
+ | To begin, connect the PmodACL2 to JA1 connector of ZedBoard (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). | ||
+ | |||
+ | {{: | ||
+ | |||
+ | ==== FPGA Configuration | ||
Start IMPACT, and double click " | Start IMPACT, and double click " | ||
Line 52: | Line 60: | ||
{{: | {{: | ||
- | If programming was successful, the **Main Menu** will apear in your UART terminal, as seen in the picture below. There are 7 options. Pressing [1] to [5], [s] or [r] key will allow you to select the desired option. | + | ==== FPGA Configuration for ZedBoard ==== |
+ | |||
+ | Run the **download.bat** script from the " | ||
+ | The script will automatically configure the ZYNQ SoC and download the *.elf file afterwards. | ||
+ | |||
+ | <WRAP center round tip 80%> | ||
+ | If the download script fails to run, modify the Xilinx Tools path in **download.bat** to match your Xilinx Installation path. | ||
+ | </ | ||
+ | |||
+ | If programming was successful, the Main Menu will apear in your UART terminal, as seen in the picture below. There are 9 options. Pressing [a], [x], [y], [z], [t], [r], [s], [i] or [m] key will allow you to select the desired option. | ||
{{: | {{: | ||
Line 84: | Line 101: | ||
{{: | {{: | ||
+ | |||
+ | {{: | ||
+ | |||
+ | **Print device ID** will show information concerning the internal ID registers of ADXL362. | ||
+ | |||
+ | {{: | ||
===== Using the reference design ===== | ===== Using the reference design ===== | ||
Line 91: | Line 114: | ||
The reference design is a SPI interface used to communicate with the device. The software programs the ADXL362s internal registers, and afterwards reads desired data from the device and prints it via UART. | The reference design is a SPI interface used to communicate with the device. The software programs the ADXL362s internal registers, and afterwards reads desired data from the device and prints it via UART. | ||
- | <WRAP important> | + | < |
+ | \\ | ||
* Connecting the PmodACL2 to the boards using an extension cable provides ease of use. | * Connecting the PmodACL2 to the boards 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. | + | * UART must be set to 115200 Baud Rate for the Avnet LX-9 Microboard |
+ | \\ | ||
+ | </ | ||
+ | |||
+ | <WRAP round important 80%> | ||
+ | When using the ZedBoard reference design in order to develop your own software, please make sure that the following options are set in " | ||
+ | |||
+ | <code c> | ||
+ | // Select between PS7 or AXI Interface | ||
+ | #define USE_PS7 1 | ||
+ | // SPI used in the design | ||
+ | #define USE_SPI 1 | ||
+ | // I2C used in the design | ||
+ | #define USE_I2C 0 | ||
+ | // Timer (+interrupts) used in the design | ||
+ | #define USE_TIMER 0 | ||
+ | // External interrupts used in the design | ||
+ | #define USE_EXTERNAL | ||
+ | // GPIO used in the design | ||
+ | #define USE_GPIO | ||
+ | </ | ||
</ | </ | ||
===== Downloads ===== | ===== Downloads ===== | ||
- | <WRAP round download | + | |
- | {{: | + | <WRAP round download |
- | {{: | + | \\ |
+ | **Avnet LX-9 MicroBoard: **\\ | ||
+ | * {{: | ||
+ | |||
+ | **Digilent Nexys™3: | ||
+ | * {{: | ||
+ | |||
+ | **Avnet ZedBoard: | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | | ||
</ | </ | ||