FPGA, SoC, And CPLD Boards And Kits
FPGA Evaluation and Development Kits
5929 Discussions

newbie help with WM8731 codec

Altera_Forum
Honored Contributor II
2,272 Views

Hi, I just got a cyclone ii dev kit and I'm having some problem with the audio codec on it. 

I'm trying to make a dsp module which gets input from the line in, so I set up the codec for appropriate sampling frequencies and interface settings and all, and I just configured fpga to send the signal from the ADC right back to the DAC to see if it works, and connected my mp3 player to the line in terminal. But I got a lot of noise, although I can hear the music coming out. What do you think is the problem here?  

 

regards, 

Dongsu Lee
0 Kudos
6 Replies
Altera_Forum
Honored Contributor II
526 Views

You can use a scope or Signaltap probes to check the signals. It could be something as simple as a sign problem or a bit shift due to synchronization problems.

0 Kudos
Altera_Forum
Honored Contributor II
526 Views

but when I simulate it on quartus it works so perfectly.. I configured the codec for DSP mode with MSB available at the first negedge of the bclk.

0 Kudos
Altera_Forum
Honored Contributor II
526 Views

Isn't the MSB supposed to be 1 cylce after the pulse on LRCK?

0 Kudos
Altera_Forum
Honored Contributor II
526 Views

You can configure the codec that way, too.

0 Kudos
Altera_Forum
Honored Contributor II
526 Views

hello. I have to generate various tones (sounds) with the de2 carte. 

Can you help me please because it's for my studies and i don't know how to do. 

I have done the i2c communication. then i send a signal of 1khz frequency at the dacdat output but it doesnt function. 

I don't know really which adress and register to programm to function like i want (send a frequency to the input codec and have a sound at the speakers), which clock to programm and what value. 

thank you for your help
0 Kudos
Altera_Forum
Honored Contributor II
526 Views

 

--- Quote Start ---  

but when I simulate it on quartus it works so perfectly.. I configured the codec for DSP mode with MSB available at the first negedge of the bclk. 

--- Quote End ---  

 

 

i have experience too when using DSP module then i got noise on DAC . My problem is resolved by synchronizing DACLRCK (i'm using slave mode) , but in my case, i'm using i2s format bit . 

 

I think you should check again on Quartus, Do ADCLRCK clock have same phase with DACLRCK?  

I think you should synchronize it so DACLRCK have delay as many as latency clock on your DSP module
0 Kudos
Reply