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.

TPA5050 noise on I2C write

Other Parts Discussed in Thread: TPA5050

We are using a TPA5050 and are hearing a "chirp" in the audio as we adjust the delay.  To adjust the delay we basically read a voltage from a pot via an a/d in a PIC and write the delay value as shown in the PIC code below.  We only use the left channel and mute the right channel.  It seems the "chirp" may be a result of the I2C write.  Any ideas on alleviating the "chirp"?

data[0] = 0x01;  //starting register 0x1
data[1] = 0x80;  //1
data[2] = 0x00;  //2
data[3] = 0x00;  //3
data[4] = (UINT8) ((potValue & 0x1F00) >> 8);  //4
data[5] = (UINT8) (potValue & 0x00FF);         //5
data[6] = 0x00;  //6
data[7] = 0x00;  //7
data[8] = 0x01;  //8
I2C_Send(address, data, 9);
  • Jim,

    It sounds like you need to allow the previous samples to clear out before you change the delay. If you change it on the run, there will be some discontinuity.

    -d2

  • I was under the impression that, by using the Complete Update Register, which I am using, that the part took care of this.  From the data sheet...

    "Since the audio delay values are divided among several registers, it is likely that multiple writes would be necessary to configure the device. This may cause interruptions in the audio stream and unwanted pops and clicks might occur as register data is passed to delay functional block.

    To avoid this from happening, the Complete Update register is used to transfer the user settings from the register file to the delay functional block when a 1 is written to the LSB. For example, if the right delay is set to 35 samples, and the left delay is set to 300 samples, the device holds the right channel in MUTE until 35 samples of audio data have passed, and holds the left channel in MUTE until 300 samples of audio data have passed. "

    Am I misinterpreting this?

  • Hi, Jim,

    Sorry, I missed your reply...

    Did you get this sorted out?

    -d2