MAX 10 NEEK
78
www.terasic.com
February 4, 2016
Figure 6-14 Software Stack Of SD Card Audio Demo
The audio chip should be configured before sending audio signal to the audio chip. The main
program uses I2C protocol to configure the audio chip working in master mode; the audio output
interface working in I2S 16-bits per channel and with sampling rate according to the wave file
contents. In audio playing loop, the main program reads 512-byte audio data from the SD Card, and
then writes the data to DAC FIFO in the Audio Controller. Before writing the data to the FIFO, the
program will verify if the FIFO is full.
While the demonstration is running, users can get the status information through Nios II terminal.
You can adjust the volume by pressing key1 or key2. And also you can choice the song by pressing
key0 or key3.
Design Tools
Quartus II 15.0
Nios II Eclipse 15.0
Demonstration Source Code
Quartus Project directory: sdcard_audio
Nios II Eclipse project workspace: sdcard_audio\software
Nios II Project Compilation