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.

TAS5766MRMTEVM I2C commands from SDA/SCL lines

Other Parts Discussed in Thread: TAS5766MRMTEVM, TAS5766M, PCM1803A

Hi,

I am using TAS5766M in my project and have been getting  myself familiarized with the register settings on TAS5766MRMTEVM demo board. Using the PurePath Console 3, I have been able to get the board to work and play an audio stream from the USB port.

I also connected a Total Phase Aardvark  I2C/SPI  dongle to SDA/SCL lines on the console and was able to directly write to I2C registers of TAS5766M chip to mute and control the volume.

However, when I tried to send the following  commands over  Aadrvark I2C to get the amp to start in default mode , I did not hear any sound.

 

#-------------------------------------------------

# Reset

#-------------------------------------------------

# Select Page 0

w 98 00 00

# Set the device into Powerdown

w 98 02 11

# Reset Device

w 98 01 11

#-------------------------------------------------

# Sleep

#-------------------------------------------------

# Select Page 0

w 98 00 00

# Set the device into Standby

w 98 02 10

#-------------------------------------------------

# Select DSP Mode 1

#-------------------------------------------------

# Select Page 0

w 98 00 00

# DSP Program = Mode 1

w 98 2B 01

#-------------------------------------------------

# Wake

#-------------------------------------------------

# Select Page 0

w 98 00 00

# Wake from Standby

w 98 02 00

 

Am I missing anything?

  • Hi Rajeev,

    What's your audio input? The USB port? If you don't run the PPC3 GUI, the I2S signals from the USB audio device on the PPCMB will not be routed to the TAS5766M device.

    Andy
  • Andy,
    Yes, the input is from USB. Any other inputs on the PPCMB that is routed without the GUI? Also please confirm if the I2C commands posted above will get the TAS5766M in project up and running.

    --Rajeev
  • Andy,
    I tried the I2C values mentioned in my first post over I2C but did not see any output. Please review and let me know if I am missing anything.

    Regards

    --Rajeev
  • Zed rřdennis,medal @%ýahoo.com woo
  • Andy,
    Any suggestions? I am looking to play a stream in default mode on TAS5766M on the board we built. The series of I2C commands sent on Aardvark I2C dongle are as follows:

    00 00 02 11 01 11 00 00 02 10 00 00 2B 01 00 00 02 00

    The commands correspond to page select 00, reset the device, put it in standby mode, select DSP 1 (default) and wake up from standby. The I2C response was a successful write. But I did not see anything at the output.
    Please let me know ASAP.

    Regards

    --Rajeev
  • Hi Rajeev,

    See my comments below:
    a) After powered on, the TAS5766M will run in the DSP Mode 1 automatically and therefore you don't need to send any i2c command to force it into the DSP mode 1.
    Refer to this wiki below for more details.
    e2e.ti.com/.../3215.tas5766m-how-to-boot-into-a-basic-non-smart-amp-mode

    b) The easiest input is the external I2S if you don't want to run the PPC3 GUI.
    Execute the following script in the I2C Master to enable the external i2s port (PSIA)
    # Change to GPIO mode
    i gpio
    # Set bank 0
    w 99 04 01
    # Clear bits (command 01) with mask 20 - clears P1.5 of Bank 0
    w 99 01 20

    # Go back to I2C mode
    i i2cfast
    # Set pins 21-24 as outputs
    w 44 0E 0F
    # Set pin 23 high (MCLK-MUX = PSIA)
    w 44 06 7F

    Andy
  • Hi Andy. This is Marty with Rajeev. Thanks for all your help so far. We are using the eval board and console with all 4 I2S input coming from an external ADC(your PCM1803A). The format is left-justified, 48kHz, 24-bits. We can see all 4 signals on the eval board at vias rear the TAS5766M chip. They all have sufficient level and low noise, but we don't get a steady output at the speaker terminals, just some intermittent "chirps" every now and then. We tried the resets you suggested and set the I2S format to left-justified in register 40. The only things we've noticed is that the I2S signal levels sometimes drop while making changes to the I2C registeres, and those drops correspond directly with the "chirps". It behaves as if the console is sinking the I2S signals, although that may not actually be what is happening. We are doing all of this because the amp board we designed is behaving the same way, and we want to find register settings that work on the eval board and console first, and then use them on our own board. Your assistance would be much appreciated.
  • Hi Marty and Rajeev,

    TAS5766 can definitely support the Left-Justified, 48kHz, 24-bits even in the DSP Mode 1. What you did is correct. You just need to set I2S data format to Left-Justified in the P0-R40 (Page 0, Register 40).

    Here is the i2c command I have just tried in the I2C Master.
    #set data format to Left-Justified
    w 98 28 32

    I think you may need to check whether there is anything wrong with the I2S output from the PCM1803A.

    Andy





    Andy