Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| learn:programmable-logic:tutorials:arty-z7-xadc-demo:start [2017/02/10 09:36] – created Monica Ignat | learn:programmable-logic:tutorials:arty-z7-xadc-demo:start [2022/10/04 11:38] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Arty Z7 XADC Demo ====== | ====== Arty Z7 XADC Demo ====== | ||
| + | {{: | ||
| - | {{: | ||
| ===== Overview ===== | ===== Overview ===== | ||
| - | A project that instantiates the XADC IP Core and measures an analog voltage | + | ==== Description |
| - | ==== Features Used ==== | + | |
| - | + | ||
| - | | ^ Not Used ^ Used ^ | + | |
| - | ^ 4 user switches | + | |
| - | ^ 4 user LEDs | | + | |
| - | ^ 5 user push buttons | + | |
| - | ^ USB-UART Bridge | + | |
| - | ^ Micro SD card connector | + | |
| - | ^ HDMI Sink and HDMI Source | + | |
| - | ^ 16 Bit VGA port | X | | | + | |
| - | ^ Audio codec w/ three 3.5mm jacks | X | | | + | |
| - | ^ User EEPROM | + | |
| - | ^ 10/100/1000 Ethernet PHY | + | |
| - | ^ 512MiB 800Mt/s DDR3 Memory | + | |
| - | ^ Serial Flash | + | |
| - | ^ Five Pmod ports | X | | | + | |
| - | ^ Pmod for XADC signals | + | |
| - | ^ USB HID Host | + | |
| - | ===== Description ===== | ||
| - | This simple XADC demo is a verilog | + | A project that instantiates the XADC IP Core and measures an analog voltage, this simple XADC demo is a Verilog |
| * The LED associated with a specific channel brightens when the read voltage goes up. | * The LED associated with a specific channel brightens when the read voltage goes up. | ||
| - | * The four user switches enable | + | * The two user switches enable |
| - | This demo uses the XADC Pmod header, which has differential ports 1, 2, 3, and 4 connected to the XADC pins 14, 7, 15, and 6, respectively. This can be seen in the schematic below. | + | 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. |
| - | {{: | + | {{: |
| + | ==== Features Used ==== | ||
| + | |||
| + | | ^ Not Used ^ Used ^ | ||
| + | ^ 2 user switches | ||
| + | ^ 2 user LEDs | | ||
| + | ^ 2 user RGB LEDs | X | | | ||
| + | ^ 4 user push buttons | ||
| + | ^ USB-UART Bridge | ||
| + | ^ Micro SD card connector | ||
| + | ^ HDMI Sink and HDMI Source | ||
| + | ^ PWM mono audio out w/ 3.5mm jack | ||
| + | ^ 10/100/1000 Ethernet PHY | ||
| + | ^ 512MB 1050Mb/s DDR3 Memory | ||
| + | ^ Quad-SPI Flash | ||
| + | ^ Two Pmod ports | ||
| + | ^ chipKIT connector for XADC signals | | ||
| + | ^ USB HID Host | ||
| ------- | ------- | ||
| ===== Prerequisites ===== | ===== Prerequisites ===== | ||
| - | |||
| - | ===Skills=== | ||
| - | * **Basic familiarity with Vivado** | ||
| - | * //This experience can be found by walking through our " | ||
| ===Hardware=== | ===Hardware=== | ||
| - | * **Zybo board** | + | * **Arty Z7 board** |
| * **Micro-USB cable** | * **Micro-USB cable** | ||
| * **Breadboard** | * **Breadboard** | ||
| * **Resistors** | * **Resistors** | ||
| - | * **Wire** | + | * **Wires** |
| ===Software=== | ===Software=== | ||
| - | * **Vivado Design Suite 2016.X** | + | * **Vivado Design Suite 2016.4** |
| * // | * // | ||
| + | * **Digilent Board Support Files for Vivado** | ||
| + | * Follow the [[vivado: | ||
| ----- | ----- | ||
| ===== Downloads ===== | ===== Downloads ===== | ||
| - | Zybo Support | + | Arty Z7-10 XADC Project |
| + | Arty Z7-20 XADC Project Repository --[[https:// | ||
| ------- | ------- | ||
| - | ===== How to... ===== | ||
| - | ==== 1. Generate | + | ===== Download and Launch |
| - | >1.1) Download | + | >Follow |
| - | >1.2) Generate | + | ===== Using the Arty Z7 XADC Demo ===== |
| - | ==== 2. Build the Project | + | ==== 1. LEDs and Switches |
| - | >2.1) Click **Generate Bitstream** on the left hand menu towards | + | >The demo reads analog data in from each enabled XADC channel (set the associated switch to the high position to enable that channel) |
| - | > | + | |
| - | >Note: If you want, you can click each step by itself in the order of **Run Synthesis**, | + | |
| - | > | + | |
| - | > | + | |
| - | ==== 3. Program | + | ==== 2. Setting up the Circuit |
| - | >3.1) Once you have generated your bit file, click on the hardware manager | + | >As seen below, 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 below are 0.5V and 0.1V. The circuit below uses a chain of ten 1KOhm resistors in series with two parallel 47KOhm resistors tied to the 3V3 and GND pins of the XADC Pmod header to create these voltages. |
| > | > | ||
| - | >{{:basys3:device_connected.png?600|}} | + | >{{:learn:programmable-logic: |
| - | + | ||
| - | >3.2) Click program to load the project onto your Zybo. | + | |
| - | + | ||
| - | ==== 4. Run the Project ==== | + | |
| - | + | ||
| - | This portion will help you run the demo and observe all its features. 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. | + | |
| - | >4.1 Setting up the circuit | + | {{tag>learn programmable-logic |
| - | >The pictures below used 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 below are 1.0V, 0.5V, 0.2V, and 0.1V. The circuit below uses a chain of ten 1KOhm resistors in series with two parallel 47KOhm resistors tied to the 3V3 and GND pins of the XADC Pmod header to create these voltages. | + | |
| - | >{{:learn:programmable-logic: | + | |

