Forum Discussion
Altera_Forum
Honored Contributor
15 years ago --- Quote Start --- first thank you for your replies. i tried both a ported version and the original verilog i2c controller (as your audio_codec_controller requests ans i2c_controller component). during lunch break i made a new project and i was not able to reproduce "varying static". but static is still present when sw1&9 are up (adc dac loopback), as moou pointed out, with or without input signal on line in - i've tried different i/o audio sources and the problem persists. initialization works fine as expected (5 on hex0) and sine/square wave generation works well too. maybe i'm missing some macroscopic point. anyways thank you for your help. best regards cb --- Quote End --- Hey cb, Two things I would recommend are: 1. Check the initialization commands to the registers for the audio codec. Make sure they are correct. 2. A very useful check would be to use SignalTap (or an external logic analyzer) and make sure the timing on the i2c bus lines and the left-channel/right-channel lines are correct. In my original design, I had a the dreaded "off by one clock cycle" bug. Again, I can only finish debugging the audio codec in a couple of weeks. In the meantime, do 1. and 2. above and repost if you find the bug. Bart