Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| learn:programmable-logic:tutorials:zybo-xadc-demo:start [2017/05/26 20:24] – Updated for github tutorial rework Arthur Brown | learn:programmable-logic:tutorials:zybo-xadc-demo:start [2022/10/04 11:38] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | ====== |
| - | {{:arty:img_1586.jpg? | + | {{:zybo:zybo_revb-box-600.png? |
| ===== Overview ===== | ===== Overview ===== | ||
| - | ==== Description ==== | + | ===== Description |
| - | This simple XADC Demo project demonstrates | + | This simple XADC demo is a verilog project made to demonstrate |
| - | * The 8 User LEDs increment from top right to left then bottom left to right as the voltage | + | * An XADC IP core is used to read the voltage |
| - | * The four switches | + | * The LED associated with a channel brightens when that channel' |
| + | * The four user switches | ||
| - | ----- | + | ------- |
| ==== Features Used ==== | ==== Features Used ==== | ||
| - | | ^ Not Used ^ Used ^ | + | | ^ Not Used ^ Used ^ |
| - | ^ 4 User Switches | + | ^ 4 user switches |
| - | ^ 4 User LEDs | | + | ^ 4 user LEDs | |
| - | ^ 4 User RGB LEDSs | | | + | ^ 5 user push buttons |
| - | ^ 4 User Push Buttons | + | ^ USB-UART Bridge |
| - | ^ 4 Pmod Connectors | + | ^ Micro SD card connector |
| - | ^ XADC Analog Input | + | ^ HDMI Sink and HDMI Source |
| - | ^ USB-UART Bridge | + | ^ 16 Bit VGA port |
| - | ^ Serial Flash for Application Data | + | ^ Audio codec w/ three 3.5mm jacks | |
| + | ^ User EEPROM | ||
| + | ^ 10/100/1000 Ethernet PHY | ||
| + | ^ 512MiB 800Mt/s DDR3 Memory | ||
| + | ^ Serial Flash | X | | | ||
| + | ^ Five Pmod ports | X | | | ||
| + | ^ Pmod for XADC signals | ||
| + | ^ USB HID Host | ||
| + | ===== Prerequisites ===== | ||
| - | + | ===Skills=== | |
| - | ===== Prerequisites ===== | + | * **Basic familiarity with Vivado** |
| + | * //This experience can be found by walking through our " | ||
| ===Hardware=== | ===Hardware=== | ||
| - | * **Arty FPGA board** | + | * **Zybo Zynq board** |
| - | * **Micro-USB cable** | + | * **Micro-USB cable** |
| * **Wires and a voltage to measure** | * **Wires and a voltage to measure** | ||
| ===Software=== | ===Software=== | ||
| - | * **Vivado Design Suite 2016.4** | + | * **Vivado Design Suite 2016.X** |
| - | * //Newer versions can be used, but the procedure may vary slightly// | + | * //Newer/ |
| - | * **Digilent Board Support Files for Vivado** | + | |
| - | * Follow the [[vivado: | + | |
| ----- | ----- | ||
| ===== Downloads ===== | ===== Downloads ===== | ||
| + | Zybo XADC Project Repository -- [[https:// | ||
| - | Arty XADC Project Repository | + | ------- |
| - | + | ||
| - | ------ | + | |
| ===== Download and Launch the Zybo XADC Demo ===== | ===== Download and Launch the Zybo XADC Demo ===== | ||
| - | Follow the [[: | + | > |
| - | ===== Using the Arty XADC Demo ==== | + | >2) In order to use the demo, you will need to connect a circuit to the XADC Pmod Port in order to measure a voltage. The following example shows a voltage |
| - | + | ||
| - | ==== 1. Applying | + | |
| - | + | ||
| - | >A0-A5 are single ended analog pins while A6-A7, A8-A9, and A10-A11 | + | |
| > | > | ||
| >< | >< | ||
| Line 63: | Line 65: | ||
| Voltages to be measured should only be in the range of 0 to 1 Volt. | Voltages to be measured should only be in the range of 0 to 1 Volt. | ||
| </ | </ | ||
| + | > | ||
| + | > | ||
| - | ==== 2. LEDs ==== | + | >3) Once you have connected your circuit to your Zybo, return to the Github Demo Projects tutorial to finish programming your board. |
| - | >The LEDs turn on from right to left then wrap around | + | ===== Using the Zybo XADC Demo ===== |
| - | > | + | |
| - | > | + | >1) Each channel will control |
| + | |||
| + | | Channel Name ^ LED # ^ | ||
| + | ^ AD14 | LD0 | | ||
| + | ^ AD7 | LD1 | | ||
| + | ^ AD15 | LD2 | | ||
| + | ^ AD6 | LD3 | | ||
| + | |||
| + | >2) Specific channels can be enabled and disabled by toggling the user switch that is adjacent to it's LED. | ||
| - | ==== 3. Selecting a channel ==== | + | >3) Changing voltages through reconfiguring the circuit while the demo is running is fine. If you built the example circuit above, feel free to move jumpers around to test out the different nodes of the voltage divider. |
| - | To display a different channel on the display and LEDs, change the user switches to the desired channel, as seen in the table below. | + | {{tag> |
| - | | Channel Pin/s ^ SW0 ^ SW1 ^ SW2 ^ SW3 ^ | ||
| - | ^ A0 ^ Down ^ Down ^ Down ^ Down | | ||
| - | ^ A1 ^ Up ^ Down ^ Down ^ Down | | ||
| - | ^ A2 ^ Down ^ Up ^ Down ^ Down | | ||
| - | ^ A3 ^ Up ^ Up ^ Down ^ Down | | ||
| - | ^ A4 ^ Down ^ Down ^ Up ^ Down | | ||
| - | ^ A5 ^ Up ^ Down ^ Up ^ Down | | ||
| - | ^ A6-A7 ^ Down ^ Up ^ Up ^ Down | | ||
| - | ^ A8-A9 ^ Up ^ Up ^ Up ^ Down | | ||
| - | ^ A10-A11 ^ Down ^ Down ^ Down ^ Up | | ||
| - | {{tag> | ||

