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
HelloThanks for the reply. I have used Nios Fast (/f) configuration in this project ( Please see the project file attached earlier ). I am thinking the noise exist because I2C_SCLK and I2C_SDAT are always in logic state 1 . Is it because the audio codec registers not being used ?? https://www.alteraforum.com/forum/attachment.php?attachmentid=6988
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.