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
basys3:xadcdemo [2015/06/25 22:55] – [A Note About The XADC Port] Sam Lowebasys3: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:xadc4.jpg?500|}}
  
------ +===== 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's  This simple XADC Demo project demonstrates a simple usage of the Basys3's 
Line 42: Line 42:
  
 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.  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. 
-===== How to Build and Program ===== 
  
-You will need...\\+-------
  
-1. Vivado installed on your computer\\ +===== Prerequisites =====
-2. Basys3 board from digilent\\ +
-3. Wires and a voltage to measure\\+
  
 +===Skills===
 +  * **Basic familiarity with Vivado**
 +    *  //This experience can be found by walking through our "Getting Started with Vivado" guide//
  
 +===Hardware===
 +  * **Basys3 FPGA board**
 +  * **Micro-USB cable** 
 +  * **Wires and a voltage to measure**
  
-==== 1. Download the Project ====+===Software=== 
 +  * **Vivado Design Suite 2015.X**  
 +    * //Newer/older versions can be used, but the procedure may vary slightly//
  
-Download the project zip file here. {{:basys3:basys3xadc.zip|}} Once you have downloaded the project, unzip it in the location of your choosing.+-----
  
 +===== Downloads =====
  
-==== 2. Load the Vivado Project ====+Basys 3 Support Repository -- [[https://github.com/Digilent/Basys3/archive/master.zip|ZIP]] [[https://github.com/Digilent/Basys3|GIT Repo]]
  
-In your now unzipped project, open the file basys3XADC.xpr. This should open your project in Vivado. +------ 
 +===== How to...  =====
  
-{{:basys3:gpio_load.png?600|}}+==== 1. Generate the Project ====
  
-==== 3. Synthesize, Implement and Generate Bitstream ====+>1.1) Download the repository linked in the download section and place it in the location of your choosing. 
  
-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**, **Run Implementation** and then **Generate Bitstream**.+>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's Github]]
  
-{{:basys3:buildflow.png?600|}}+==== 2. Build the Project ====
  
-==== 4. Connect and Program the Basys3 ====+>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**. 
 +> 
 +>{{:basys3:buildflow.png?600|}}
  
-Once you have generated your bit file, Click on the hardware manager and connect to your board by choosing the local server option.+==== 3. Program the Board ====
  
-{{:basys3:device_connected.png?600|}}+>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. 
 +> 
 +>{{:basys3:device_connected.png?600|}}
  
-After your board is connected, just click program to load the XADC demo onto your Basys3.+>3.2) Click program to load the project onto your Basys3.
  
-===== Running the Basys3 XADC Demo =====+==== 4. Run the Project ====
  
 This portion will help you run the demo and observe all its features. This portion will help you run the demo and observe all its features.
  
-==== 1. Applying a voltage to the XADC port ====+>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. 
 +> 
 +>{{:basys3:xadc3.jpg?300|}}{{:basys3:xadc4.jpg?300|}}
  
-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. 
  
-{{:basys3:xadc3.jpg?300|}}{{:basys3:xadc4.jpg?300|}}+>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. 
 +> 
 +>{{:basys3:xadc1.jpg?300|}}{{:basys3:xadc2.jpg?300|}}
  
- +>4.3) Selecting a channel 
-==== 2. Seven Segment Display and LEDs ==== +> 
- +>To display a different channel on the display and LEDs, change sw0 and sw1 to the desired channel.
-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. +
- +
-{{:basys3:xadc1.jpg?300|}}{{:basys3:xadc2.jpg?300|}} +
- +
-==== 3. Selecting a channel ==== +
- +
-To display a different channel on the display and LEDs, change sw0 and sw1 to the desired channel.+
  
  
      
-