Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| programmable-logic:cora-z7:demos:xadc [2022/08/31 14:24] – [Table] andreisopterean | programmable-logic:cora-z7:demos:xadc [2022/10/04 11:38] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Cora Z7 XADC Demo ====== | ||
| + | |||
| + | {{: | ||
| + | |||
| + | ---- | ||
| + | ===== Description ===== | ||
| + | |||
| + | This project demonstrates how to use the Cora Z7's ZYNQ FPGA's analog-to-digital core (referred to as the XADC) with a ZYNQ processor. | ||
| + | * A channel select index can be incremented by pressing button 0 and decremented by pressing button 1 | ||
| + | * RGB LED 0 is used to show the sign of the selected analog input | ||
| + | * A serial terminal connection is used to view the voltage value | ||
| + | |||
| + | ---- | ||
| + | ===== Inventory ===== | ||
| + | |||
| + | * Cora Z7 with a MicroUSB Programming Cable | ||
| + | * Vivado and Vitis installation compatible with the latest release of this demo (2020.1) | ||
| + | * //See [[programmable-logic: | ||
| + | * Serial Terminal application to receive messages printed by the demo | ||
| + | * //See [[programmable-logic: | ||
| + | * Wires and a circuit to measure | ||
| + | |||
| + | ---- | ||
| + | ===== Download and Usage Instructions ===== | ||
| + | |||
| + | First and foremost, releases - consisting of a set of files for download - are only compatible with a specific version of the Xilinx tools, as specified in the name of the release (referred to as a //release tag//). In addition, releases are only compatible with the specified variant of the board. For example, a release tagged " | ||
| + | |||
| + | The latest release version for this demo is highlighted in green. | ||
| + | |||
| + | **Note:** //Releases for FPGA demos from before 2020.1 used a different git structure, and used a different release tag naming scheme.// | ||
| + | |||
| + | ^ Board Variant | ||
| + | | Cora Z7-07S | ||
| + | | Cora Z7-10 | @#C0EEBD: 10/ | ||
| + | | Cora Z7-07S | v2018.2-1 | [[https:// | ||
| + | | Cora Z7-10 | v2018.2-1 | [[https:// | ||
| + | | Cora Z7-07S | v2017.4-2 | [[https:// | ||
| + | | Cora Z7-10 | v2017.4-2 | [[https:// | ||
| + | |||
| + | **Note for Advanced Users:** //All demos for the Cora Z7 are provided through the [[https:// | ||
| + | ---- | ||
| + | Instructions on the use of the latest release can be found in this dropdown: | ||
| + | |||
| + | --> Using the Latest Release # | ||
| + | <WRAP group> | ||
| + | |||
| + | {{page> | ||
| + | |||
| + | {{page> | ||
| + | |||
| + | --> Set up the Cora Z7 # | ||
| + | |||
| + | Plug the microUSB programming cable into the Cora Z7's PROG/UART port. | ||
| + | Set up your circuit. In our case, we used 8 1k ohm resistors in series. | ||
| + | ---- | ||
| + | <-- | ||
| + | |||
| + | {{page> | ||
| + | |||
| + | At this point, the demo is now running on your board. Refer to the [[# | ||
| + | ---- | ||
| + | Additional steps beyond here present how you can use the other archive provided in the release, containing the hardware project, to rebuild the Vivado project, and use a newly exported XSA file to update the platform in Vitis. | ||
| + | ---- | ||
| + | {{page> | ||
| + | |||
| + | |||
| + | </ | ||
| + | <-- | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ===== Functionality ===== | ||
| + | |||
| + | |||
| + | ==== 1. Pushbuttons | ||
| + | |||
| + | The channel select index can be incremented by pressing button 0 and decremented by pressing button 1. The following channels can be selected: | ||
| + | |||
| + | ^ Analog Input/ | ||
| + | | VP/VN Dedicated Differential Input | 0 | | ||
| + | | Shield Header A6-A7 Differential Input | 1 | | ||
| + | | Shield Header A8-A9 Differential Input | 2 | | ||
| + | | Shield Header A10-A11 Differential Input | 3 | | ||
| + | | Shield Header A0 Single-Ended Input | 4 | | ||
| + | | Shield Header A1 Single-Ended Input | 5 | | ||
| + | | Shield Header A2 Single-Ended Input | 6 | | ||
| + | | Shield Header A3 Single-Ended Input | 7 | | ||
| + | | Shield Header A4 Single-Ended Input | 8 | | ||
| + | | Shield Header A5 Single-Ended Input | 9 | | ||
| + | |||
| + | ==== 2. XADC & RGB LED ==== | ||
| + | |||
| + | <WRAP round center important> | ||
| + | **Warning: | ||
| + | </ | ||
| + | |||
| + | RGB LED 0 is used to show the sign of the selected analog input. | ||
| + | |||
| + | If the voltage read by the selected input is greater than 0.5 Volts, the RGB LED is green; if the voltage read is less than -0.5 Volts, the RGB LED is red. The value is also displayed on the Serial Terminal Emulator connection. | ||
| + | |||
| + | {{: | ||
| + | |||
| + | {{: | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ===== Additional Resources ===== | ||
| + | |||
| + | All materials related to the use of the Cora Z7 can be found on its [[..: | ||
| + | |||
| + | For a walkthrough of the process of creating a simple baremetal software project in Vivado and Vitis, see [[programmable-logic: | ||
| + | |||
| + | For technical support, please visit the [[https:// | ||
| + | |||

