Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| basys3:xadcdemo [2015/06/25 22:14] – [Description] Sam Lowe | basys3:xadcdemo [2022/10/04 11:38] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| ====== Basys3 XADC Demo ====== | ====== Basys3 XADC Demo ====== | ||
| - | {{ :basys3_overview.png?nolink | + | {{:basys3: |
| - | ----- | + | ===== Overview ===== |
| - | ===== Features Used ===== | + | ==== Features Used ==== |
| | ^ Not Used ^ Used ^ | | ^ Not Used ^ Used ^ | ||
| Line 21: | Line 21: | ||
| - | ===== Description | + | ==== Description ==== |
| This simple XADC Demo project demonstrates a simple usage of the Basys3' | This simple XADC Demo project demonstrates a simple usage of the Basys3' | ||
| Line 33: | Line 33: | ||
| ==== A Note About The XADC Port ==== | ==== A Note About The XADC Port ==== | ||
| - | On the Basys 3, the XADC Pmod connector houses 4 differential analog | + | On the Basys3, the XADC Pmod connector houses 4 differential analog |
| - | ===== How to Build and Program ===== | + | |
| - | You will need...\\ | + | {{: |
| - | 1. Vivado installed on your computer\\ | + | The differential pairs are grouped by columns. Looking at the number above, 1 corresponds to XA1_P and XA1_N, column |
| - | 2. Basys3 board from digilent\\ | + | |
| - | 3. Wires and a voltage | + | |
| + | {{: | ||
| + | From the schematic we can see XA1 is connected to XADC channel 6, XA2 is connected to XADC channel 14, XA3 is connected to XADC channel 7, and XA4 is connected to XADC channel 15. | ||
| - | ==== 1. Download the Project ==== | + | ------- |
| - | Download the project zip file here. {{: | + | ===== Prerequisites ===== |
| + | ===Skills=== | ||
| + | * **Basic familiarity with Vivado** | ||
| + | * //This experience can be found by walking through our " | ||
| - | ==== 2. Load the Vivado Project ==== | + | ===Hardware=== |
| + | * **Basys3 FPGA board** | ||
| + | * **Micro-USB cable** | ||
| + | * **Wires and a voltage to measure** | ||
| - | In your now unzipped project, open the file basys3XADC.xpr. This should open your project in Vivado. | + | ===Software=== |
| + | * **Vivado Design Suite 2015.X** | ||
| + | * // | ||
| - | {{: | + | ----- |
| - | ==== 3. Synthesize, Implement and Generate Bitstream | + | ===== Downloads ===== |
| - | To complete this step all that you need to do is 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. If you want, you can click each step by itself in the order of **Run Synthesis**, | + | Basys 3 Support Repository -- [[https:// |
| - | {{: | + | ------ |
| + | ===== How to... ===== | ||
| - | ==== 4. Connect and Program | + | ==== 1. Generate |
| - | Once you have generated your bit file, Click on the hardware manager | + | >1.1) Download |
| - | {{:basys3:device_connected.png? | + | >1.2) Generate the **XADC** project in the Projects folder by following this guide before continuing: [[vivado:github|How to Generate a Project from Digilent' |
| - | After your board is connected, just click program to load the XADC demo onto your Basys3. | + | ==== 2. Build the Project ==== |
| - | ===== Running | + | >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**, | ||
| + | > | ||
| + | > | ||
| - | This portion will help you run the demo and observe all its features. | + | ==== 3. Program the Board ==== |
| - | ==== 1. Applying a voltage | + | >3.1) Once you have generated your bit file, Click on the hardware manager and connect |
| + | > | ||
| + | > | ||
| - | For this demo, the AD6, 7, 14 and 15 pins are used on the JXADC header. We hooked up a signal generator | + | >3.2) Click program |
| - | {{: | + | ==== 4. Run the Project ==== |
| + | This portion will help you run the demo and observe all its features. | ||
| - | ==== 2. Seven Segment Display | + | >4.1) Applying a voltage to the XADC port |
| + | > | ||
| + | >For this demo, the AD6, 7, 14 and 15 pins are used on the JXADC header. We hooked up a signal generator to our pins. All of the other pins were grounded to avoid coupling. | ||
| + | > | ||
| + | > | ||
| - | The 7-Segment display shows the current voltage across the selected xadc pins. The LEDs turn on from right to left as the input voltage increases. | ||
| - | {{: | + | >4.2) Seven Segment Display and LEDs |
| + | > | ||
| + | >The 7-Segment display shows the current voltage across the selected xadc pins. The LEDs turn on from right to left as the input voltage increases. | ||
| + | > | ||
| + | >{{: | ||
| - | ==== 3. Selecting a channel | + | >4.3) Selecting a channel |
| - | + | > | |
| - | To display a different channel on the display and LEDs, change sw0 and sw1 to the desired channel. | + | >To display a different channel on the display and LEDs, change sw0 and sw1 to the desired channel. |
| | | ||
| - | |||

