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 [2016/08/04 23:09] – [Features Used] Sam Lowe | learn: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~~ | |
- | {{: | + | {{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 | + | |
- | ^ 2 User Push Buttons | + | |
- | ^ 48 GPIO Pins | + | |
- | ^ 1 Pmod port | X | | | + | |
- | ^ Pins for XADC signals | + | |
- | ^ USB-UART Bridge | + | |
- | ^ 512 kB SRAM | X | | | + | |
- | + | ||
- | + | ||
- | ===== Description ===== | + | |
- | + | ||
- | This simple XADC demo is a verilog project made to demonstrate the ADC functionality of the Cmod-A7 | + | |
- | + | ||
- | * 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 schematic below. | + | |
- | + | ||
- | {{: | + | |
- | + | ||
- | + | ||
- | + | ||
- | ------- | + | |
- | + | ||
- | ===== Prerequisites ===== | + | |
- | + | ||
- | ===Skills=== | + | |
- | * **Basic familiarity with Vivado** | + | |
- | * //This experience can be found by walking through our " | + | |
- | + | ||
- | ===Hardware=== | + | |
- | * **Cmod A7 FPGA board** | + | |
- | * **Micro-USB cable** | + | |
- | * **Breadboard** | + | |
- | * **Resistors** | + | |
- | * **Wire** | + | |
- | + | ||
- | ===Software=== | + | |
- | * **Vivado Design Suite 2015.X** | + | |
- | * // | + | |
- | + | ||
- | ----- | + | |
- | + | ||
- | ===== Downloads ===== | + | |
- | Cmod A7 Support 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 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 Board ==== | + | |
- | + | ||
- | >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. | + | |
- | > | + | |
- | > | + | |
- | + | ||
- | >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>learn programmable-logic tutorial cmod-a7}} | + | |
- | + |