Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
learn:programmable-logic:tutorials:cmod-a7-xadc-demo:start [2017/10/24 20:10] Arthur Brownlearn:programmable-logic:tutorials:cmod-a7-xadc-demo:start [2023/03/31 20:32] (current) Arthur Brown
Line 1: Line 1:
- +====== Cmod A7 XADC Demo (Redirect) ====== 
-====== Cmod A7 XADC Demo ====== +~~NOSEMANTIC~~ 
- +~~REDIRECT>/programmable-logic/cmod-a7/demos/xadc~~ 
-{{:cmod_a7:cmod_a7-obl-600.png?300|}} +{{tag>redirect}}
- +
-===== Overview ===== +
- +
-A project that instantiates the XADC IP Core and measures an analog voltage. +
- +
-==== Features Used ==== +
- +
-|              ^ Not Used             ^ Used        ^ +
-^ 2 user LEDs                        |  X  |     | +
-^ 1 tri-color LEDs                        X  | +
-^ 2 User Push Buttons                |  X  |     | +
-^ 48 GPIO Pins                        X  |     | +
-^ 1 Pmod port                        |  X  |     | +
-^ Pins for XADC signals              |      X  | +
-^ USB-UART Bridge                    |  X  |     | +
-^ 512 kB SRAM                        |  X  |     | +
- +
-==== Description ==== +
- +
-This simple XADC demo is a verilog project made to demonstrate the ADC functionality of the Cmod-A7's Analog to Digital Converter. +
-  +
-  * 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 Cmod A7 Reference Manual and Schematics. These resources can be found on the Cmod A7 [[:reference:programmable-logic:cmod-a7:start:|Resource Center]]. +
- +
-------- +
- +
-===== Prerequisites ===== +
- +
-===Hardware=== +
-  * **Cmod A7 FPGA board** +
-  * **Micro-USB cable**  +
-  * **Breadboard** +
-  * **Resistors** +
-  * **Wire** +
- +
-===Software=== +
-  * **Vivado Design Suite 2016.4**  +
-    * //Newer versions can be used, but the procedure may vary slightly// +
-  * **Digilent Board Support Files for Vivado**  +
-    * Follow the [[vivado:boardfiles|Vivado Board Files for Digilent 7-Series FPGA Boards]] guide on how to install Board Support Files for Vivado. +
- +
------ +
- +
-===== Downloads ===== +
-Cmod A7 15T XADC Project Repository -- [[https://github.com/Digilent/Cmod-A7-15T-XADC/releases/download/v2016.4-1/Cmod-A7-15T-XADC-2016.4-1.zip|ZIP Archive]] [[https://github.com/Digilent/Cmod-A7-15T-XADC|GIT Repo]] +
- +
-Cmod A7 35T XADC Project Repository -- [[https://github.com/Digilent/Cmod-A7-35T-XADC/releases/download/v2016.4-1/Cmod-A7-35T-XADC-2016.4-1.zip|ZIP Archive]] [[https://github.com/Digilent/Cmod-A7-35T-XADC|GIT Repo]] +
- +
-------- +
- +
- +
- +
-===== Download and Launch the Cmod A7 XADC Demo  ===== +
- +
->1) Follow the [[:learn:programmable-logic:tutorials:github-demos:start|Using Digilent Github Demo Projects]] Tutorial. This is an HDL design project, and as such does not support Vivado SDK, select the tutorial options appropriate for a Vivado-only design. You can launch the demo as soon as you have generated a bitstream, so you do not need to return to this guide when prompted to check for extra hardware requirements and setup.  +
-+
-><WRAP round important 660px> +
-===Important=== +
-Make sure that between the 15T and 35T versions of the project, you download the version that applies to your Cmod A7. +
-</WRAP> +
- +
-===== Using the Cmod A7 XADC Demo ===== +
- +
->The demo reads analog data in from pin 15 and sets the brightness on the red led linearly. The pictures below used a resistor ladder to show the different brightness values the demo puts out. This demo can be used to measure any voltage between 0 and 3.3 volts. The brighter the led, the closer to 3.3 the voltage is. The voltages below are 2.3V, 1.1V and 0V. +
-+
->{{:learn:programmable-logic:tutorials:cmod-a7-xadc-demo:xadc1.jpg?300|}} {{:learn:programmable-logic:tutorials:cmod-a7-xadc-demo:xadc2.jpg?300|}} {{:learn:programmable-logic:tutorials:cmod-a7-xadc-demo:xadc3.jpg?300|}} +
- +
-{{tag>learn programmable-logic project cmod-a7}} +
- +