This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TLV320AIC3100 Audio CodeC

Hi ALL,

Finally we are able to do some improvement in our codec , Now we are able to generate beep (exactly 2khz by programming beep registers with values from this link http://www.ti.com/lit/an/slaa446/slaa446.pdfexample-3.4 ) . but still we  are not able to get any audio in HPL and HPR line (but getting some noise).

In my case codec is slave and cpu is master. here is my clock configuration

MCLK=5.6448MHZ

BCLK=1.411MHZ(for 16 bit word size)

WCLK=44.1KHZ.

we programmed the dosr,p,r,j and d value accordingly  as mentioned in the data sheet.

I tested the data in from cpu to codec by playing the wav file which contains only 'A5' data. Here i am attaching logic analyser output, feels DataIN is ok  and also attaching register dump of codec chip set while playing the audio.

I Posted in TI forum but not get any reply, Kindly look at my codec register dump and tell me what will be the issue.Your help will be greatly appreciable.

Thanks&Regards
Punith
ti3100_registers.zip
  • Please follow the example script from the EVM software (it is available in the codecs folder). It shows how to initialize the DAC.

    If you already get  a beep with the correct frequencies, you configured the DAC (the beep is generated in the digital domain so if it is produced correctly on the analog outputs, the DAC is working fine).

    I'd check the digital audio format. Make sure that it matches the DAC's interface configuration.

  • Hi D.Harti,

    Thanks for your reply. Here is some update :

    I did loop back from DIN to DOUT but not getting any signals in DOUT.
    and also i observed with loop back DIN amptitude is decreased and has some distortion.
    but without loop back DIN is ok.

    Did you say is it beacuse of pcb issue. but i am geeting beep with exactly 2KHZ and
    i programmed beep values for 2KHZ for fs=44.1k .


    and here is my cpu configuration for i2s. Kinldy chek my codec register and cpu configuration
    and if any differnce find out let me know.

    i2s_master            = 1   / cpu as master
    i2s_select              = 1
    audio_format            = 1   / i2s
    signal_inversion        = 1
    over_sample_rate        = 128
    sample_resolution   = 16
    word_select_size        = 16
    //pcm_sync_period         = 128
    msb_lsb_first       = 0     / msb is first
    sign_extend             = 0
    slot_index                  = 0
    slot_width                  = 16
    frame_width             = 1
    tx_data_mode            = 0
    rx_data_mode            = 0
    i2s_mclk            = port:PB05<2><1><default><default>
    i2s_bclk            = port:PB06<2><1><default><default>
    i2s_lrclk           = port:PB07<2><1><default><default>
    i2s_dout0           = port:PB08<2><1><default><default>
    i2s_dout1           =
    i2s_dout2           =
    i2s_dout3           =
    i2s_din             = port:PB12<2><1><default><default>


    Regards
    Punith

  • Please post a screenshot of the digital audio interface.

  •  Hi D.Harti,

    Sorry for late reply, Actually i am on holiday for 1 week.
    Here will be screen shot of digtial interface.
    If you have any doubt kindly update me, we are struck with this problem from so many months.
    Your help will be greatly appreciable.

    Regards
    Punith

    screen.zip
  • I cannot unzip screen.zip. Please re-attach the screenshot. I get the following error: