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.

TLV320AIC3204: Beep Configuration

Part Number: TLV320AIC3204

Hello,

I have not any experience with CODEC.

Can anyone help me -how to configure that codec to get a Beep ( something like  100msec duration, 1KHz tone)? the MCLK is 12MHz.

Thanks,

  • Hello Shlomo,

    First, know that the beep generator  on the AIC3204 can only be used on processing block 25.  so be sure to select processing block 25 in pag 0 register 60.  

    Second,  the Beep generator registers are all shown in the datasheet with explanations on how to program them. you need to know what your DAC rate is,  and once you know what that is,  then you can use that in the formulas provided in the Sin(x) and Cos(x) registers to assign the frequency.  convert the decimal values to two's complement binary.  The duration of the beep also depends on the DAC rate as the length is programed in terms of samples.  so if your DAC rate is 48khz,  and you want 100ms thats 4800 samples. 

    For signal routing there are example configurations on pages 87-91 of the Application reference guide,  or you can use the typical configurations that are in the GUI. 

    You mentioned your MCLK is 12Mhz,  the Application reference guide also has a table of PLL coefficients for common MCLK frequencies. 

    best regards, 

    -Steve Wilson

  • Thank you very much.

    I'm working with Alexander Shapirshtein, who asked you on the same problem, So, he will send you the schematics for review.

    Shlomo

  • Shlomo,

    Ok, thank you! I wondered if the two threads were connected. As I responded to Alexander, I can load your configuration into the EVM and I get a beep. now I will say that it didn't sound like 1k, and it was longer than 100ms, but I had the DAC Fs set to 48khz, so it may be that you were creating coefficients for a different Fs. Can you comment on that?

    best regards,
    -Steve Wilson
  • Shlomo,

    We were able to resolve your issue in this parallel thread.  I'm glad we could resolve your problems. Please let me know if you have further questions. 

    best regards, 

    -Steve Wilson

  • Thanks again. We are appreciating yours prompt and efficient support.

    Shlomo