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 21:23] – Updated some Cmod specifics 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 XADC ports 4 and 12 since they are the channels connected to pin 15 and 16. This can be seen in the schematic below. | ||
| - | |||
| - | {{: | ||
| - | |||
| - | ------- | ||
| ===== Prerequisites ===== | ===== Prerequisites ===== | ||
| Line 47: | 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 2015.X** | + | * **Vivado Design Suite 2016.X** |
| * // | * // | ||
| Line 60: | 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 pin 15 and sets the brightness on the red led linearly. Higher voltage = brighter led. | + | >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> |

