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.

[TAS5754M] Strange 3-wires behavior

Hi,

We have successfully configured our amplifier to use with a 4-wires configuration, however we are having some difficulties with 3-wires (no MCLK). The clocks we have now are LRCLK = 48 kHz and SCLK=3.072 MHz and we are using this script:

#!/bin/bash

#Go to Page 0
i2cset -f -y 1 0x4E 0 0

#Reset registers
i2cset -f -y 1  0x4E 1 1

#Standby request
i2cset -f -y 1  0x4E 2 0x10

#Ignore MCLK detection, Ignore MCLK halt detection
i2cset -f -y 1 0x4E 37 0x18

#PLL clock source => BCLK
i2cset -f -y 1 0x4E 13 0x10

#Standby release
i2cset -f -y 1 0x4E 2 0

We have noticed that if we execute the scipt, connect a MCLK and then remove it, the sound comes out. If we don't connect it, we never get to hear any sound. We thought that this may be related to Power-on-Reset, since the datasheet says that "the device holds sets all of the internal registers to their default values and holds them there until it receives valid MCLK, SCLK, and LRCK/FS toggling for a period of approximately 4 ms" (i.e. all the clocks are needed during 4 ms). Could anyone help us?

Best regards,

Xabi.



  • Hi, Xabier,

    The script you are using is correct. Are you configuring the amplifier with the script before sending the I²S signals?, if not, please do not send the I²S signals until the amplifier gets configured. A possible cause is that the amplifier expects a MCLK signal by default, if the amplifier is not configured to ignore MCLK before receiving I²S, then the amplifier may require MCLK to start normal operation.

    Best Regards,

      -Diego Meléndez López
       Audio Applications Engineer

  • Hi Diego,

    We run the script and then we play music, so we don't have I2S signals before. Another thing we've noticed is that R91 indicates "Ratio error (MCLK ratio not allowed)" even when we connect an external oscillator. Does MCLK need to be aligned with the other clocks?

    Best regards,
    Xabi.
  • Hi, Xabier,

    Thanks for the information. The Ratio error is probably indicating that the MCLK is not being properly generated by the internal PLL. This may be a result of not running BCLK at the moment of programming the amplifier. Can you please try sending BCLK and LRCLK before programming the amplifier?. It seems the amplifier needs the external BCLK and LRCK, as well as the internal generated MCLK to operate normally. I performed some tests in the EVM and found that the amplifier requires BCLK and LRCLK (while MCLK is internally generated) during the configuration to start operating correctly.

    Best Regards,

      -Diego Meléndez López
       Audio Applications Engineer