Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| learn:programmable-logic:tutorials:nexys-4-xadc-demo:start [2017/05/03 18:42] – [Running the Nexys 4 XADC Demo] Andrew Holzer | learn:programmable-logic:tutorials:nexys-4-xadc-demo:start [2022/10/04 11:38] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 7: | Line 7: | ||
| ===== Overview ===== | ===== Overview ===== | ||
| + | |||
| + | ==== Description ==== | ||
| + | |||
| + | This simple XADC Demo project demonstrates a simple usage of the Nexys 4' | ||
| + | XADC port capability. The behavior is as follows: | ||
| + | |||
| + | * The 16 User LEDs increment from right to left as the voltage difference on the selected XADC pins gets larger. | ||
| + | * The two seven segment displays show the voltage difference on the AD11 pins in volts. | ||
| + | * sw0 and sw1 select which channel to read from | ||
| ==== Features Used ==== | ==== Features Used ==== | ||
| Line 30: | Line 39: | ||
| ^ Temperature sensor | ^ Temperature sensor | ||
| ^ 10/100 Ethernet PHY | ^ 10/100 Ethernet PHY | ||
| - | |||
| - | ==== Description ==== | ||
| - | |||
| - | This simple XADC Demo project demonstrates a simple usage of the Nexys 4' | ||
| - | XADC port capability. The behavior is as follows: | ||
| - | |||
| - | * The 16 User LEDs increment from right to left as the voltage difference on the selected XADC pins gets larger. | ||
| - | * The two seven segment displays show the voltage difference on the AD11 pins in volts. | ||
| - | * sw0 and sw1 select which channel to read from | ||
| ===== Prerequisites ===== | ===== Prerequisites ===== | ||
| Line 57: | Line 57: | ||
| ===== Downloads ===== | ===== Downloads ===== | ||
| - | Nexys 4 Support | + | Nexys 4 XADC Demo Project |
| ------- | ------- | ||
| - | ===== How to Build and Program | + | ===== Download |
| - | You will need...\\ | + | >Follow the [[: |
| - | 1. Vivado installed on your computer\\ | + | ===== Using the Nexys 4 XADC Demo ===== |
| - | 2. Nexys4 board from digilent\\ | + | |
| - | 3. Wires and a voltage to measure\\ | + | |
| + | This portion will help you run the demo and observe all its features. | ||
| - | ==== 1. Generate | + | ==== 1. Applying a Voltage to the XADC Port ==== |
| - | >1.1) Download the repository linked in the download section and unzip it in the location of your choosing. | ||
| - | > | ||
| - | >1.2) Generate the **XADC** project in the Projects folder by following this guide before continuing: [[vivado: | ||
| - | |||
| - | ==== 2. Build the Project ==== | ||
| - | |||
| - | >2.1) Click **Generate Bitstream** on the left hand menu towards the bottom. Vivado will run through both Run Synthesis and Run Implementation before it generates the bitstream automatically. | ||
| - | > | ||
| - | >Note: If you want, you can click each step by itself in the order of **Run Synthesis**, | ||
| - | > | ||
| - | > | ||
| - | > | ||
| - | |||
| - | ==== 3. Program the Nexys 4 ==== | ||
| - | |||
| - | >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. | ||
| - | > | ||
| - | > | ||
| - | > | ||
| - | >After your board is connected, just click program to load the XADC demo onto your Nexys 4. | ||
| - | |||
| - | ==== 4. Running the Nexys 4 XADC Demo ==== | ||
| - | |||
| - | This portion will help you run the demo and observe all its features. | ||
| - | |||
| - | >4.1) Applying a voltage to the XADC port | ||
| - | > | ||
| >For this demo, the AD11P and AD11N pins are used on the JXADC header. We hooked up a signal generator to our pins. All of the other pins were grounded to avoid coupling. | >For this demo, the AD11P and AD11N pins are used on the JXADC header. We hooked up a signal generator to our pins. All of the other pins were grounded to avoid coupling. | ||
| > | > | ||
| Line 104: | Line 76: | ||
| - | >4.2) Seven Segment Display and LEDs | + | ==== 2. Seven Segment Display and LEDs ==== |
| - | > | + | |
| >The 7-Segment display shows the current voltage across the selected xadc pins. The LEDs turn on from right to left as the input voltage increases. | >The 7-Segment display shows the current voltage across the selected xadc pins. The LEDs turn on from right to left as the input voltage increases. | ||
| > | > | ||
| Line 111: | Line 83: | ||
| - | > 4.3) Selecting a channel | + | ==== 3. Selecting a Channel ==== |
| - | > | + | |
| - | >To display a different channel on the display and LEDs, change | + | >To display a different channel on the display and LEDs, select a channel from the table below and set switches |
| + | |||
| + | | Channel Number | ||
| + | ^ AD2 | ||
| + | ^ AD3 | ||
| + | ^ AD10 | Down (0) | Up (1) | | ||
| + | ^ AD11 | Up (1) | Up (1) | | ||
| - | {{tag> | + | {{tag> |

