Not Used | Used | |
---|---|---|
16 User Switches | X | |
16 User LEDs | X | |
5 User Push Buttons | X | |
4-digit 7-Segment Display | X | |
4 Pmod Connectors | X | |
XADC Analog Input | X | |
12-bit VGA Output | X | |
USB-UART Bridge | X | |
Serial Flash for Application Data | X | |
USB HID Host With Mouse | X | |
USB HID Host With Keyboard | X |
This simple XADC Demo project demonstrates a simple usage of the Basys3's XADC port capability. The behavior is as follows:
On the Basys3, the XADC Pmod connector houses 4 differential analog pairs. The corresponding XADC channels are 6, 7, 14, and 15. Below is a picture of the pinout of the Pmod Header.
The differential pairs are grouped by columns. Looking at the number above, 1 corresponds to XA1_P and XA1_N, column 2 routes to XA2_P and XA2_N, 3 routes to XA3_P and XA3_N, and 4 routes to XA4_P and XA4_N. Below is from the Basys3 schematics that will show the internal connections of these signals.
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.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: How to Generate a Project from Digilent's Github
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.
3.2) Click program to load the project onto your Basys3.
This portion will help you run the demo and observe all its features.
4.3) Selecting a channel
To display a different channel on the display and LEDs, change sw0 and sw1 to the desired channel.