SoCKit User Manual
56
www.terasic.com
December 1, 2015
Table 5-2 Slide switch setting for sample rate switching for audio recorder and player
SW3
(0 – DOWN;
1- UP)
SW2
(0 – DOWN;
1-UP)
SW1
(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 SoCKit _Audio \demo_batch\ SoCKit _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
.
.
2
2
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 SOCKIT board to
create a Karaoke Machine application. The SSM2603 audio 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-3
, 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.