Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| learn:programmable-logic:tutorials:cmod-a7-xadc-demo:start [2017/05/31 17:48] – Updated Download ZIP Links Arthur Brown | learn: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 | ^ USB-UART Bridge | ||
| ^ 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: |
| - | + | ||
| - | {{:cmod_a7:xadc_pinout.jpg? | + | |
| - | + | ||
| ------- | ------- | ||
| Line 54: | Line 49: | ||
| ===== Downloads ===== | ===== Downloads ===== | ||
| - | Cmod A7 15T Project Repository -- [[https:// | + | Cmod A7 15T XADC Project Repository -- [[https:// |
| - | Cmod A7 35T Project Repository -- [[https:// | + | Cmod A7 35T XADC Project Repository -- [[https:// |
| ------- | ------- | ||
| - | ===== 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 | + | ===== Download and Launch |
| - | ==== 2. Build the Project ==== | + | > |
| - | + | ||
| - | >2.1) Click **Generate Bitstream** on the left hand menu towards the bottom. Vivado will run through both Run Synthesis | + | |
| > | > | ||
| - | >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=== |
| - | > | + | Make sure that between |
| + | </WRAP> | ||
| - | ==== 3. Program | + | ===== Using the Cmod A7 XADC Demo ===== |
| - | >3.1) Once you have generated your bit file, Click on the hardware manager and connect | + | >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 |
| > | > | ||
| - | > | ||
| - | |||
| - | >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. | ||
| > | > | ||
| - | {{tag> | + | {{tag> |

