Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
learn:programmable-logic:tutorials:zybo-dma-audio-demo:start [2016/09/06 17:28] – Sam Lowe | learn:programmable-logic:tutorials:zybo-dma-audio-demo:start [2019/03/12 17:22] (current) – Arthur Brown | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Zybo DMA Audio Demo ====== | ====== Zybo DMA Audio Demo ====== | ||
+ | {{: | ||
----- | ----- | ||
===== Overview ===== | ===== Overview ===== | ||
+ | ===== Description ===== | ||
+ | |||
+ | The audio demo records a 5 second sample from microphone(J6) or line in (J7) and plays it back on a headphone out(J5). Recording and playback are started by push buttons. | ||
+ | |||
==== Features Used ==== | ==== Features Used ==== | ||
Line 23: | Line 27: | ||
^ Pmod for XADC signals | ^ Pmod for XADC signals | ||
^ USB HID Host | ^ USB HID Host | ||
- | |||
- | ===== Description ===== | ||
- | |||
- | The audio demo records a 5 second sample from microphone(J6) or line in (J7) and plays it back on a headphone out(J5). Record and playback is started by push buttons: | ||
- | ^ Button | ||
- | ^ BTN1 | record from mic in | | ||
- | ^ BTN2 | play on hph out | | ||
- | ^ BTN3 | record from line in | | ||
- | |||
===== Prerequisites ===== | ===== Prerequisites ===== | ||
Line 40: | Line 35: | ||
===Hardware=== | ===Hardware=== | ||
- | * **Zybo | + | * **Zybo |
* **Micro-USB cable** | * **Micro-USB cable** | ||
* **Headphones or Speakers** | * **Headphones or Speakers** | ||
Line 46: | Line 41: | ||
===Software=== | ===Software=== | ||
- | * **Vivado Design Suite 2016.X** | + | * **Vivado Design Suite 2016.4** |
- | * // | + | * **Digilent Board Support Files for Vivado** |
- | + | * Follow | |
- | + | ||
- | ==== 1. Setup ==== | + | |
- | + | ||
- | Plug in your microphone or aux input into the respective jack on your Zedboard. Plug your speakers/ | + | |
===== Downloads ===== | ===== Downloads ===== | ||
- | Zybo Support | + | Zybo DMA Audio Project |
------ | ------ | ||
- | ===== How to... ===== | + | ===== Download and Launch the Zybo DMA Audio Demo ===== |
- | ==== 1. Download | + | >1) Follow |
- | >1.1) Download the project zip file which can be downloaded {{https:// | + | > |
- | + | ||
- | >1.2) If you want to generate | + | |
- | + | ||
- | ==== 2. Generate the Project ==== | + | |
- | >2.1) If not already installed, install the Vivado Board Files for the Zedboard by following this guide: [[vivado: | + | |
- | + | ||
- | >2.2) Generate the **dma** project | + | |
- | + | ||
- | ==== 3. Build the Project ==== | + | |
- | + | ||
- | >3.1) Click **Generate Bitstream** | + | |
> | > | ||
- | >Note: If you want, you can click each step by itself in the order of **Run Synthesis**, | + | >{{:playground:dma-zybo.jpg?400|}} |
- | > | + | |
- | >{{:basys3:buildflow.png?600|}} | + | |
- | + | >3) Turn on your board and open a serial terminal (such as TeraTerm) on your computer | |
- | ==== 4. Export to SDK ==== | + | |
- | + | ||
- | >4.1) Export the microblaze project by going to **File-> | + | |
> | > | ||
- | >4.2) Skip to step 6. | + | ><WRAP round tip 660px> |
- | + | ===Tip=== | |
- | ==== 5. Open Xilinx SDK and create a workspace ==== | + | You can connect |
- | + | </ | |
- | >5.1) Open up Xilinx SDK and create a workspace where your project | + | |
> | > | ||
- | >{{:genesys2:1.jpg?500|}} | + | >{{:playground:dma-tera.png?400|}} |
- | ==== 6. Import | + | ===== Using the Zybo DMA Audio Demo ===== |
- | >6.1) In your project Explorer window on the left side, click **File-> | ||
- | > | ||
- | > | ||
- | >6.2) Navigate to where you saved the downloaded project, select the **sdk** folder, and click OK. In the //Import// window, click Finish to import the system hardware wrapper. | + | ==== 1. Controls ==== |
- | > | + | |
- | > | + | |
- | >6.3) Import the projects | + | Audio playback and recording are controlled |
- | > | + | |
- | > | + | |
- | ==== 7. Program the FPGA ==== | + | ^ Button |
- | + | ^ BTN0 | no effect | |
- | >7.1) Click **Xilinx Tools-> | + | ^ BTN1 | record from mic in | |
- | > | + | ^ BTN2 | play on hph out |
- | > | + | ^ BTN3 | record from line in | |
- | + | ||
- | ==== 8. Program the Zynq processor ==== | + | |
- | + | ||
- | >8.1) Right click on the **demo** folder and click **Run as-> | + | |
- | > | + | |
- | > | + | |
- | + | ||
- | ===== Running the Zedboard DMA Audio Demo ===== | + | |
- | + | ||
- | This portion will help you run the demo and observe all its features. | + | |
- | ==== 1. Recording from an input ==== | + | ==== 2. Recording from an input ==== |
- | To record from the microphone input, press btn1. To record from the line input, press btn3. Once the recording is activated, the message "Start Recording..." | + | To record from the microphone input, press **BTN1**. To record from the line input, press **BTN3**. Once the recording is activated, the message "Start Recording..." |
- | ==== 2. Playing to an output ==== | + | ==== 3. Playing to an output ==== |
- | To play to the headphone output, press btn2. Once the playback is activated, the message "Start Playback..." | + | To play to the headphone output, press **BTN2**. Once the playback is activated, the message "Start Playback..." |
- | {{tag> | + | {{tag> |