Altera_Forum
Honored Contributor
16 years agoAudio CODEC help
Hi,
I am a newbie and am trying to get the ADC working on the DE2 board. So far, I am using the MICIN input and I used the ADCDAT to get out the bits serially. I have been reading up on the WM8731 Audio CODEC and had a few questions: 1) How do I change the sample rate, word length etc? It says I can use "software control" but I really am not sure what this means. can someone please provide some sort of an example. 2) How do i output the bits from the ADCDAT to a text file? I need to convert the serial output of the bits to parallel and then I would like to output these bits to a text file and use a small plotting code to ensure that the ADC module is working correctly. Or is there an easier way to do this? 3) The datasheet for the WM8731 says that ADCDAT contains the left and right channels multiplexed? I would like to disable the LINEIN input and just use the MICIN. would there still be two channels? I am very confused about this part. Any help is greatly appreciated. I am doing a project where I am building a digital controller for a DC/DC converter on the FPGA but am having problems with the ADC part. Thanks Sagar