Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| learn:programmable-logic:tutorials:zybo-xadc-demo:start [2016/08/09 18:40] – created 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: | ||
| - | ====== | + | ====== |
| - | {{:cmod_a7:cmod_a7-obl-600.png?300|}} | + | {{:zybo:zybo_revb-box-600.png?direct& |
| ===== 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 ==== | ||
| | ^ Not Used ^ Used ^ | | ^ Not Used ^ Used ^ | ||
| ^ 4 user switches | ^ 4 user switches | ||
| - | ^ 4 user LEDs | | + | ^ 4 user LEDs | |
| ^ 5 user push buttons | ^ 5 user push buttons | ||
| ^ USB-UART Bridge | ^ USB-UART Bridge | ||
| Line 23: | Line 31: | ||
| ^ Serial Flash | ^ Serial Flash | ||
| ^ Five Pmod ports | X | | | ^ Five Pmod ports | X | | | ||
| - | ^ 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 Cmod-A7 | ||
| - | |||
| - | * The RGB LED brightens the RED LED when the read voltage goes up. | ||
| - | * When BTN1 is pressed, the demo switches which xadc pin to 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 49: | Line 41: | ||
| ===Hardware=== | ===Hardware=== | ||
| - | * **Cmod A7 FPGA board** | + | * **Zybo Zynq board** |
| * **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 62: | Line 52: | ||
| ===== Downloads ===== | ===== Downloads ===== | ||
| - | Cmod A7 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 Cmod A7. | + | >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> |

