Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
12 years ago

DE1 Audio codec HELP !!!!! URGENT !!!!!

Hello,

I'm a beginner and currently working on Altera DE1 board for Audio effects project.

I want the audio codec to run in master mode for my project.The problem is that I am not able to configure the audio codec from Nios II properly.When the music is passed through line in,the output from line out is very noisy (Kindly see the project file attached.)Also I was able to play the audio on just left channel but with noise(see the commented section at the end in .vhd file).

I have used audio and video config from Altera UP IP core (Line in to ADC,Enable DAC output,Microphone bypass,left justified,16 bit,48 kHz) which configures I2C bus automatically .My observation from Signal Tap II anaylzer is that I2C_SCLK and I2C_SDAT are always in logic state 1.

I don't know how to access any registers of the codec.

Am I doing it correctly ? What am I missing and Where did I go wrong ???Please HELP ME !!!

If a code is readily available for configuring the codec in master mode it would be of GREAT help.

Thanks in Advance,

Anand

https://www.alteraforum.com/forum/attachment.php?attachmentid=6983 https://www.alteraforum.com/forum/attachment.php?attachmentid=6984

4 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Please use the Fast NiosII configuration. The E configuration cannot catch up with the audio at all.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hello ,

    The AUD_DACDAT seems to follow AUD_ADCDAT. I can make the audio play in single channel too ( assigned AUD_DACDAT to input data only during first half of sampling frequency ).

    Kindly have a look at snapshots.