64
Table 5-2 Slide switch setting for sample rate switching for audio recorder and player
SW5
(0
– DOWN;
1- UP)
SW4
(0
– DOWN;
1-UP)
SW3
(0
– DOWN;
1-UP)
Sample Rate
0
0
0
96K
0
0
1
48K
0
1
0
44.1K
0
1
1
32K
1
0
0
8K
Unlisted combination
96K
Note:
(1). Execute DE1_SoC _Audio \demo_batch\ DE1-SoC _Audio.bat will download .sof and .elf
files.
(2). Recording process will stop if audio buffer is full.
(3). Playing process will stop if audio data is played completely.
5
5
.
.
3
3
A
A
K
K
a
a
r
r
a
a
o
o
k
k
e
e
M
M
a
a
c
c
h
h
i
i
n
n
e
e
This demonstration uses the microphone-in, line-in, and line-out ports on the DE1-SOC board to
create a Karaoke Machine application. The WM8731 CODEC is configured in the master mode,
with which the audio CODEC generates AD/DA serial bit clock (BCK) and the left/right channel
clock (LRCK) automatically. As indicated in
Figure 5-4
, the I2C interface is used to configure the
Audio CODEC. The sample rate and gain of the CODEC are set in this manner, and the data input
from the line-in port is then mixed with the microphone-in port and the result is sent to the line-out
port.
For this demonstration the sample rate is set to 48kHz. Pressing the pushbutton KEY0 reconfigures
the gain of the audio CODEC via I2C bus, cycling within ten predefined gain values (volume levels)
provided by the device.
Summary of Contents for DE1-SOC
Page 1: ...1...
Page 108: ...107 Figure 8 4 Select Devices Page...