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.

TLV320DAC3100: How to generate a beep from MCU via i2c

Part Number: TLV320DAC3100

Hi 

I am trying to play a beep sound for this TI TLV320DAC3100 Audio DAC chip via i2c from my Nordic 5340 MCU. 

Followed the PC control software i2c initialization script sequence that I could play a beep (and output to the connected speak and hear the beep with desire frequency) 

Then I migrated this sequence plus the sine wave, cosine wave, play duration computation and transfer to i2c sequence and implement in the MCU side. 

The DUT chip TLV320DAC3100 on the ACEV-1B EVM board that I  provided 5V power from mini type B USB cable (so make sure has enough power to drive beep sound to output speaker or earphone) 

The MCU EVM board is powered by external 3.3V and connected with ACEV-1B EVM board's W8 connector to provide  IOVDD (3.3V).

Next I followed the initial sequence and generate beep sequence to play the beep and expect the beep come out from earphone or speaker. but it did not. come out. 

I must still miss something, do I need to program the MCLK, BCLK, or WCLK pin in order to simply play the beep sound on this AUDIO DAC chip ? I though only use i2s or PCM protocol need to use these clcok pins ? 

Any suggestion or pointer are welcome.

Thank you.

Jihming

  • HI Jihming,

    You need at least some BCLK toggles for the beep generator to properly work. You can try by providing I2S signals normally and test the beep, then test by only providing BCLK for a brief time and stop, then try the beep again.

    Best regards,
    -Ivan Salazar
    Applications Engineer

  • Hi Ivan 

    Thanks for your feedback. I don't understand the BCLK toggle meaning ? do you mean that I should send some BCLK signal from my MCU to TLV320DAC3100 chip ? What is its frequency ? how how MCLK ? do I also need to send MCLK to TLV320DAC3100 from my MCU ? our PCB board just have this TLV320DAC3100 on board, and use i2c directly talk from MCU via i2c bus. In this case, I mimics the i2c initialize sequence from PC control software that I caught rfom my i2c scope analyzer, then also, caught the beep i2c command sequence.... I still does not understand the whole sequence, could you specify the steps by steps how to generate a beep by using i2c command from MCU to drive this TCL320DAC3100 audio DAC chip ? 

    Thanks. 

    Jihming

  • Hi  Ivan 

    Don't bother, I resolved the issue by generating MCLK signal (as GPIO PWM 50% duty cycle pin) from my MCU and kick the TLV320DAC3100 to run, now the beeper generated and come out to earphone connector and I could change any tone frequency and duration I want. 

    Thanks a lot for your help. 

    Jihming 

  • Hi Jihming,

    Good to konw you got it working, quick reference on the BCLK toggles (cycles) I mentioned you can check in this previous thread: (+) TLV320DAC3100-Q1: how to enable bclk for beep generation - Audio forum - Audio - TI E2E support forums

    Let us know if you need any further help related to your original question.

    Best regards,
    -Ivan Salazar
    Applications Engineer