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 [2016/08/09 22:14] – Arthur Brown | learn:programmable-logic:tutorials:zybo-xadc-demo:start [2022/10/04 11:38] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 6: | Line 6: | ||
| ===== Overview ===== | ===== Overview ===== | ||
| - | A project | + | ===== Description ===== |
| + | |||
| + | This simple XADC demo is a verilog | ||
| + | * An XADC IP core is used to read the voltage | ||
| + | * The LED associated with a channel brightens when that channel' | ||
| + | * The four user switches control which XADC channels will be read. | ||
| + | |||
| + | ------- | ||
| ==== Features Used ==== | ==== Features Used ==== | ||
| Line 25: | Line 33: | ||
| ^ Pmod for XADC signals | ^ Pmod for XADC signals | ||
| ^ USB HID Host | ^ USB HID Host | ||
| - | |||
| - | |||
| - | ===== Description ===== | ||
| - | |||
| - | This simple XADC demo is a verilog project made to demonstrate the ADC functionality of the Zybo | ||
| - | |||
| - | * The LED associated with a specific channel brightens when the read voltage goes up. | ||
| - | * The four user switches enable each XADC channel to be read from. | ||
| - | |||
| - | 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. | ||
| - | |||
| - | {{: | ||
| - | |||
| - | |||
| - | ------- | ||
| ===== Prerequisites ===== | ===== Prerequisites ===== | ||
| Line 48: | Line 41: | ||
| ===Hardware=== | ===Hardware=== | ||
| - | * **Zybo board** | + | * **Zybo |
| * **Micro-USB cable** | * **Micro-USB cable** | ||
| - | * **Breadboard** | + | * **Wires and a voltage to measure** |
| - | * **Resistors** | + | |
| - | * **Wire** | + | |
| ===Software=== | ===Software=== | ||
| - | * **Vivado Design Suite 2016.X** | + | * **Vivado Design Suite 2016.X** |
| * // | * // | ||
| Line 61: | Line 52: | ||
| ===== Downloads ===== | ===== Downloads ===== | ||
| - | Zybo Support | + | Zybo XADC Project |
| ------- | ------- | ||
| - | ===== How to... ===== | + | ===== Download and Launch the Zybo XADC Demo ===== |
| - | ==== 1. Generate | + | >1) Follow the [[: |
| - | >1.1) Download | + | >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 divider that produces each voltage between 0 and 1 Volt in increments |
| - | + | ||
| - | >1.2) Generate the **XADC** project | + | |
| - | + | ||
| - | ==== 2. Build the Project ==== | + | |
| - | + | ||
| - | >2.1) Click **Generate Bitstream** on the left hand menu towards | + | |
| > | > | ||
| - | >Note: If you want, you can click each step by itself | + | ><WRAP round important 660px> |
| + | ===Important=== | ||
| + | Voltages to be measured should only be in the range of 0 to 1 Volt. | ||
| + | </ | ||
| > | > | ||
| - | >{{:basys3:buildflow.png?600|}} | + | >{{:learn:programmable-logic: |
| - | ==== 3. Program | + | >3) Once you have connected your circuit to your Zybo, return to the Github Demo Projects tutorial to finish programming your board. |
| - | >3.1) Once you have generated your bit file, click on the hardware manager and connect to your board by choosing the local server option. | + | ===== Using the Zybo XADC Demo ===== |
| - | > | + | |
| - | > | + | |
| - | >3.2) Click program to load the project onto your Zybo. | + | >1) Each channel will control |
| - | ==== 4. Run the Project ==== | + | | Channel Name ^ LED # ^ |
| + | ^ AD14 | LD0 | | ||
| + | ^ AD7 | LD1 | | ||
| + | ^ AD15 | LD2 | | ||
| + | ^ AD6 | LD3 | | ||
| - | 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 | + | >2) Specific channels can be enabled |
| - | >4.1 Setting up the circuit | + | >3) Changing voltages through reconfiguring |
| - | >The pictures below used a resistor ladder to show the different brightness values | + | |
| - | > | + | |
| - | {{tag> | + | {{tag> |

