====== Arty Z7 XADC Demo ====== === Under Construction === {{:learn:programmable-logic:tutorials:arty-z7-xadc-demo:arty-z7_obl600_702.png?600|}} ---- ===== Description ===== This project instantiates the XADC IP Core and measures an analog voltage, this simple XADC demo is a Verilog project made to demonstrate the ADC functionality of the Arty Z7. Only the programmable logic of the Arty Z7 is used. * The LED associated with a specific channel brightens when the read voltage goes up. * The two user switches enable two XADC channels to be read from. This demo uses the chipKIT Analog connector, which has differential ports 1, 2, and 3 connected to the XADC pins 12, 0, and 8, respectively. This can be seen in the schematic below. {{:learn:programmable-logic:tutorials:arty-z7-xadc-demo:an.png?300|}} ---- ===== Inventory ===== * Arty Z7 with a MicroUSB Programming Cable * Vivado installation compatible with the latest release of this demo (2022.1) * //See [[programmable-logic:guides:installing-vivado-and-vitis|Installing Vivado, Vitis, and Digilent Board Files]] for installation instructions.// * Wires and a Circuit to Test ---- ===== 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 "20/DMA/2020.1" for the Zybo Z7 is only to be used with the -20 variant of the board and Vivado 2020.1. 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 ^ Release Tag ^ Release Downloads ^ Setup Instructions ^ | Arty Z7-10 | @#C0EEBD: 10/XADC/2022.1-1 | {{https://github.com/Digilent/Arty-Z7/releases/download/10/XADC/2022.1-1/Arty-Z7-10-XADC-hw.xpr.zip}} | See //Using the Latest Release//, below | | Arty Z7-20 | @#C0EEBD: 20/XADC/2022.1-1 | {{https://github.com/Digilent/Arty-Z7/releases/download/20/XADC/2022.1-1/Arty-Z7-20-XADC-hw.xpr.zip}} | See //Using the Latest Release//, below | | Arty Z7-10 | 10/XADC/2021.1-1 | {{https://github.com/Digilent/Arty-Z7/releases/download/10/XADC/2021.1-1/Arty-Z7-10-XADC-hw.xpr.zip}} | See //Using the Latest Release//, below | | Arty Z7-20 | 20/XADC/2021.1-1 | {{https://github.com/Digilent/Arty-Z7/releases/download/20/XADC/2021.1-1/Arty-Z7-20-XADC-hw.xpr.zip}} | See //Using the Latest Release//, below | | Arty Z7-10 | 10/XADC/2020.1-1 | {{https://github.com/Digilent/Arty-Z7/releases/download/10/XADC/2020.1-1/Arty-Z7-10-XADC-hw.xpr.zip}} | See //Using the Latest Release//, below | | Arty Z7-20 | 20/XADC/2020.1-1 | {{https://github.com/Digilent/Arty-Z7/releases/download/20/XADC/2020.1-1/Arty-Z7-20-XADC-hw.xpr.zip}} | See //Using the Latest Release//, below | | Arty Z7-10 | v2018.2-1 | [[https://github.com/Digilent/Arty-Z7-10-XADC/releases/tag/v2018.2-1|Release ZIP Downloads]] | [[https://github.com/Digilent/Arty-Z7-10-XADC/tree/v2018.2-1|v2018.2-1 Github README]] | | Arty Z7-20 | v2018.2-1 | [[https://github.com/Digilent/Arty-Z7-20-XADC/releases/tag/v2018.2-1|Release ZIP Downloads]] | [[https://github.com/Digilent/Arty-Z7-20-XADC/tree/v2018.2-1|v2018.2-1 Github README]] | **Note for Advanced Users:** //GitHub sources for this demo can be found in the [[https://github.com/digilent/arty-z7/tree/10/XADC/master|10/XADC/master]] and [[https://github.com/digilent/arty-z7/tree/20/XADC/master|20/XADC/master]] branches of the Arty-Z7 repository. Further documentation on the structure of this repository can be found on this wiki's [[programmable-logic:documents:git]] page.// ---- Instructions on the use of the latest release can be found in this dropdown: --> Using the Latest Release ^# {{page>programmable-logic:guides:using-github-releases#hardware_only_release_before_programming&noheader}} --> Set up the Arty Z7 # Plug the Arty Z7 into the computer using the microUSB cable. The circuit and wires can be attached after the demo is already running. ---- <-- {{page>programmable-logic:guides:using-github-releases#hardware_only_release_programming&noheader}} At this point, the demo is now running on your board. Refer to the [[#description|Description]] and [[#functionality|Functionality]] sections of this document for more information on what it does. <-- ---- ===== Functionality ===== ==== 1. LEDs and Switches ==== The demo reads analog data in from each enabled XADC channel (set the associated switch to the high position to enable that channel) and sets the brightness on the associated led linearly. Higher voltage = brighter led. ==== 2. Setting up the Circuit ==== As seen in the image to the right, this demo was tested using a resistor ladder to show the different brightness values the demo puts out. This demo can be used to measure any voltage between 0 and 1 volt. The brighter the led, the closer to 1 the voltage is. The voltages from the ladder are 0.5V and 0.1V. The circuit uses a chain of ten 1KOhm resistors in series with two parallel 47KOhm resistors tied to the 3V3 and GND pins of the XADC header to create these voltages. {{:learn:programmable-logic:tutorials:arty-z7-xadc-demo:xadc_setup.jpg?500|}} ---- ===== Additional Resources ===== All materials related to the use of the Arty Z7 can be found on its [[..:start|Resource Center]]. For a walkthrough of the process of creating a simple HDL project in Vivado, see [[programmable-logic:guides:getting-started-with-vivado]]. Information on important parts of the GUI, and indirect discussion of the steps required to modify, rebuild, and run this demo in hardware can also be found here. For technical support, please visit the [[https://forum.digilent.com/forum/4-fpga/|FPGA]] section of the Digilent Forum. ----