Forum Discussion

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

Question about Audio Codec Usage in DE 2 Board

Hello Everyone,

I had a problem with ADC inside Audio Codec inside DE 2 board. I have power down every other components inside Audio Codec in Register R6 except ADC. But I get something like this in the signal tap. I have attached a screenshot in the attachment. Should I expect that ADCDAT should output "ZERO" if nothing is powered on? I am confused about the output from AUD_ADCDAT.

I attached some code for I2C controller for Audio Codec here:

always @(posedge END) begin
// ROM= 16'h1e00;
 ROM= 16'h0c0b;      //power down
 ROM= 16'h0ec2;      //master
 ROM= 16'h0814;      //sound select -- make it MIC -> ADC -> DAC -> LinOut
 
 ROM= 16'h1000;   //mclk
 
 ROM= 16'h0017;   //
 ROM= 16'h0217;   //
 ROM= {8'h04,1'b0,vol};   //
 ROM= {8'h06,1'b0,vol};      //sound vol
 
 //ROM= 16'h1e00;   //reset 
 ROM= 16'h1201;//active
 DATA_A=ROM;
end

There are just a few changes to Register compared to Altera Provided DE_I2sound sample. Can someone explain why I am having output from AUD_ADCDAT.

Any idea is welcome here.

Thanks

Chen Huang

2 Replies

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

    Hi Chinux,

    I wish I could help you but I can't. I had the similar problem like you. I needed some ADC for my design. There is ADCs on ADV7181B chip but they are for video signals especially. I also asked for advice on using ADC on Audio Codec usage but I did not get any real answer. So I gave up.

    Tell me why you need ADC, for some audio signal or for your particular design?

    Thank you very much,

    Bojan