Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
learn:programmable-logic:tutorials:cmod-a7-xadc-demo:start [2017/04/28 19:27] – [1. Generate the Project] Andrew Holzerlearn:programmable-logic:tutorials:cmod-a7-xadc-demo:start [2022/10/04 11:38] (current) – external edit 127.0.0.1
Line 6: Line 6:
 ===== Overview ===== ===== Overview =====
  
-A project that instantiates the XADC IP Core and measures an analog voltage +A project that instantiates the XADC IP Core and measures an analog voltage.
-==== Features Used ====+
  
 +==== Features Used ====
  
 |              ^ Not Used             ^ Used        ^ |              ^ Not Used             ^ Used        ^
Line 19: Line 19:
 ^ USB-UART Bridge                    |  X  |     | ^ USB-UART Bridge                    |  X  |     |
 ^ 512 kB SRAM                        |  X  |     | ^ 512 kB SRAM                        |  X  |     |
- 
  
 ==== Description ==== ==== Description ====
  
-This simple XADC demo is a verilog project made to demonstrate the ADC functionality of the Cmod-A7+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.   * 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.   * 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. +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]].
- +
-{{:cmod_a7:xadc_pinout.jpg?300|}} +
- +
  
 ------- -------
Line 54: Line 49:
  
 ===== Downloads ===== ===== Downloads =====
-Cmod A7 15T Project Repository -- [[https://github.com/Digilent/Cmod-A7-15T-XADC|GIT Repo]]+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 Project Repository -- [[https://github.com/Digilent/Cmod-A7-35T-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]]
  
 ------- -------
-===== How to...  ===== 
  
-==== 1. Generate the Project ==== 
  
->1.1) Download the repository linked in the download section and place it in the location of your choosing.  
  
->1.2) Generate the **XADC** project by following this guide before continuing: [[vivado:github|How to Generate a Project from Digilent's Github]]+===== Download and Launch the Cmod A7 XADC Demo  =====
  
-==== 2. Build the Project ==== +>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. 
- +
->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**, **Run Implementation** and then **Generate Bitstream**. +><WRAP round important 660px> 
-> +===Important=== 
->{{:basys3:buildflow.png?600|}}+Make sure that between the 15T and 35T versions of the project, you download the version that applies to your Cmod A7. 
 +</WRAP>
  
-==== 3. Program the Board ====+===== Using the Cmod A7 XADC Demo =====
  
->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 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.
 > >
->{{:basys3:device_connected.png?600|}} 
- 
->3.2) Click program to load the project onto your Cmod A7. 
- 
-==== 4. Run the Project ==== 
- 
-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.  
- 
->4.1 Setting up the circuit 
->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|}} >{{: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 tutorial cmod-a7}}+{{tag>learn programmable-logic project cmod-a7}}