Intel® FPGA University Program
University Program Material, Education Boards, and Laboratory Exercises
1174 Discussions

Nios to control Audio Codec on DE1

Altera_Forum
Honored Contributor II
982 Views

Hi 

 

I'm trying to realize a simple audio processing sistem using DE1, Nios, University Program Audio Core and Audio config. 

 

The CODEC seems to be properly configured via I2C since I'm able to modify some parameters (like line in - line out bypass) 

 

The processor seems to work fine I'm able to read data from switches, write on leds and print a string on STDIO.  

 

However when I'm triyng to read the data from audio codec (reading the registers), the fifo is always empty "0x80800000" and the dara are always "zero". 

 

From a hardware point of view (using Signal Tap II Logic Analizer) i can see that the signals from the codec are correct while all the signals to the codec (like AUD_BCLK, AUD_DACLRCK, AUD_DACDAT are absent) but may be it could also be correct if the Nios does not generate the proper data) 

 

Any suggestion? 

Are any example available? 

 

A further question: 

In the "Audio Configuration Core" one parameter is the Sampling rate which can assume values between 0 and 15 (what is it for?) who the sampling rate is related to this number ? The documentation provided with this block lacks in this detail. 

 

thank you
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
222 Views

Probably I've resolved the problem: 

 

Since it in SOPC builder it is not possible to set the Audio Codec to work as Master or Slave, the AUD_BCLK, AUD_DACLRCK and AUD_ADCLRCK signal must be configured as "bidir" an not as "output"
0 Kudos
Altera_Forum
Honored Contributor II
222 Views

Hi can you send me your project file in which you have interfaced the Altera DE1 Audio Codec. 

 

This will be helpful to complete my Grad Project. 

 

Thanks a lot
0 Kudos
Altera_Forum
Honored Contributor II
222 Views

ok, but please give me an e-mail to send the material.

0 Kudos
Altera_Forum
Honored Contributor II
222 Views

 

--- Quote Start ---  

ok, but please give me an e-mail to send the material. 

--- Quote End ---  

 

 

Send me here - vividvilla [at] gmail.com  

 

Thanks a lot man
0 Kudos
Reply