Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
learn:programmable-logic:tutorials:arty-xadc-demo:start [2017/03/01 17:41] – [Prerequisites] sbobrowicz | learn:programmable-logic:tutorials:arty-xadc-demo:start [2017/10/23 21:13] (current) – Arthur Brown | ||
---|---|---|---|
Line 5: | Line 5: | ||
===== Overview ===== | ===== Overview ===== | ||
+ | |||
+ | ==== Description ==== | ||
+ | |||
+ | This simple XADC Demo project demonstrates a simple usage of ARTY's XADC pin capability. The behavior is as follows: | ||
+ | * The 8 User LEDs increment from top right to left then bottom left to right as the voltage difference on the selected XADC pins gets larger. | ||
+ | * The four switches select which channel to read from. | ||
+ | |||
+ | ----- | ||
+ | |||
==== Features Used ==== | ==== Features Used ==== | ||
Line 13: | Line 22: | ||
^ 4 User Push Buttons | ^ 4 User Push Buttons | ||
^ 4 Pmod Connectors | ^ 4 Pmod Connectors | ||
- | ^ XADC Analog Input | | + | ^ XADC Analog Input | |
^ USB-UART Bridge | ^ USB-UART Bridge | ||
^ Serial Flash for Application Data | X | | | ^ Serial Flash for Application Data | X | | | ||
- | ==== Description ==== | ||
- | This simple XADC Demo project demonstrates a simple usage of ARTY' | ||
- | XADC pin capability. The behavior is as follows: | ||
- | |||
- | * The 8 User LEDs increment from top right to left then bottom left to right as the voltage difference on the selected XADC pins gets larger. | ||
- | * The four switches select which channel to read from | ||
- | |||
- | ----- | ||
===== Prerequisites ===== | ===== Prerequisites ===== | ||
Line 37: | Line 38: | ||
* **Vivado Design Suite 2016.4** | * **Vivado Design Suite 2016.4** | ||
* //Newer versions can be used, but the procedure may vary slightly// | * //Newer versions can be used, but the procedure may vary slightly// | ||
- | * **Digilent Board Support Files for Vivado** | + | * **Digilent Board Support Files for Vivado** |
* Follow the [[vivado: | * Follow the [[vivado: | ||
- | |||
----- | ----- | ||
Line 45: | Line 45: | ||
===== Downloads ===== | ===== Downloads ===== | ||
- | Arty Support | + | Arty XADC Project |
------ | ------ | ||
- | ===== How to... ===== | ||
+ | ===== Download and Launch the Arty XADC Demo ===== | ||
- | ==== 1. Generate | + | Follow the [[: |
- | >1.1) Download | + | ===== Using the Arty XADC Demo ==== |
- | >1.2) Generate the **XADC_Demo** 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 | + | |
> | > | ||
- | >Note: If you want, you can click each step by itself in the order of **Run Synthesis**, **Run Implementation** | + | >For this demo, A0-A5 are single ended analog pins while A6-A7, A8-A9, and A10-A11 are differential ports. |
> | > | ||
- | >{{: | + | ><WRAP round important 660px> |
+ | ===Important=== | ||
+ | Voltages to be measured should only be in the range of 0 to 1 Volt. | ||
+ | </ | ||
- | ==== 3. Program the Board ==== | + | >2) LEDs |
- | + | ||
- | >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. | + | |
> | > | ||
- | >{{: | + | >The LEDs turn on from right to left then wrap around |
- | + | ||
- | >3.2) Click program | + | |
- | + | ||
- | ==== 4. Run the Project ==== | + | |
- | + | ||
- | 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, A0-A5 are single ended analog pins then A6-A7, A8-A9, and A10-A11 are differential ports. | + | >{{: |
- | >4.2) LEDs | + | >3) Selecting a channel |
> | > | ||
- | >The | + | >To display a different channel on the display and LEDs, change the user switches |
- | > | + | |
- | > | + | |
- | >4.3) Selecting a channel | + | | Channel Pin/s ^ SW0 ^ SW1 ^ SW2 ^ SW3 ^ |
- | > | + | ^ A0 ^ Down ^ Down ^ Down ^ Down | |
- | >To display a different channel on the display and LEDs, change sw0, sw1, and sw2 to the desired channel. | + | ^ 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> | + | {{tag> |