The audio demo records a 5 second sample from microphone(J12) or line in (J13) and plays it back on headphone out(J10) or line out (J12). Recording and playback are started by push buttons.
Not Used | Used | |
---|---|---|
8 User Switches | X | |
9 User LEDs | X | |
7 User Push Buttons | X | |
512 MB DDR3 RAM | X | |
256 Mb QSPI Flash | X | |
Five Digilent Pmod™ headers | X | |
FMC Header | X | |
USB-UART bridge | X | |
HDMI Output | X | |
VGA (12-bit Color) | X | |
FMC Header | X | |
128×32 OLED Display | X | |
Audio Codec | X | |
SD Card Port | X |
1) Follow the Using Digilent Github Demo Projects Tutorial. Since this is a Vivado SDK Project, you can either directly launch SDK and import the hardware handoff, or you can generate a bitstream in Vivado before launching SDK. Select the hardware handoff options in the tutorial if you don't want to modify the project block design later. Return to this guide when prompted to check for additional hardware requirements and setup.
3) Turn on your board and open a serial terminal (such as TeraTerm) on your computer to receive status messages. Setup the serial port to connect to the appropriate port for your board, with a baud rate of 115200. Then return to the Github Project Tutorial to finish programming and running the demo.
Tip
To make sure that you don't miss any startup messages, you can connect your serial terminal to your board before the board is programmed. If the demo is already running, you can restart the demo in SDK to make sure you get these messages.
Audio playback and recording are controlled by push buttons as below.
Button | Function |
---|---|
BTNL | play on line out |
BTNU | record from mic in |
BTND | play on hph out |
BTNR | record from line in |
To record from the microphone input, press BTNU. To record from the line input, press BTNR. Once the recording is activated, the message “Start Recording…” will be sent over UART and the demo will record 5 seconds of audio. If any buttons are pressed during the recording, the message “Still Recording…” will be sent over UART.
To play to the headphone output, press BTND. To play to the line out, press BTNL. Once the playback is activated, the message “Start Playback…” will be sent over UART and the demo will play 5 seconds of audio. If any buttons are pressed during the playback, the message “Still Playing…” will be sent over UART.