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.

TAS5717 Register programming

Other Parts Discussed in Thread: TAS5717, TAS5713

Hi,

I am using Ti's TAS5717 audio amplifier in our board.We are using a PIC controller for programming the audio amplifier through I2C. For initial validation,we have used the eval kit for programming it with the help of the GUI.I have downloaded the following register configuration from the GUI after changing all the required fields.In our current software we are programming the registers in assenting order(starting from register x00 and updating each register in order).

but in the GUI generated file it is in a particular order and some registers updated more than one time.Do we need to follow the same order?

! I2C Configuration file for TAS5713
X1B 00
X1B 00
X03 80
X11 80
X12 7C
X13 80
X14 7C
X1C 07
X0A 30
X0E F1
X00 6C
X50 0F 70 80 10
X25 01 02 13 45
X70 00 80 00 00
X71 00 00 00 00
X74 00 80 00 00
X75 00 00 00 00
X46 00 02 06 23
X11 80
X12 7C
X13 80
X14 7C
X20 00 89 77 72
X05 40
X56 00 40 00 00
X57 00 02 00 00
X07 03 FF
X40 0D 48 00 00 09 09 FF FF
X07 03 FF
X07 03 FF
X3B 00 01 00 00 00 7F 00 00
X07 03 FF
X07 03 FF
X3C 00 00 01 00 FF FF FF F0
X07 03 FF
X07 03 FF
X43 0D 48 00 00 04 38 87 4E
X07 03 FF
X07 03 FF
X3E 00 00 01 00 00 7F FF 00
X07 03 FF
X07 03 FF
X3F 00 08 00 00 FF F8 00 00
X07 03 FF
X51 00 80 00 00 00 00 00 00
X52 00 80 00 00 00 00 00 00
X58 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
X59 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
X5A 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
X5B 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
X26 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
X30 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
X73 00 80 00 00
X72 00 00 00 00
X76 00 00 00 00
X77 00 80 00 00
X4F 00 00 00 06
X6A 00 0C CC CC 00 73 33 34
X27 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
X28 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
X29 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
X2A 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
X2B 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
X2C 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
X2D 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
X2E 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
X2F 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
X31 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
X32 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
X33 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
X34 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
X35 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
X36 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
X37 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
X38 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
X39 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
X07 03 FF
! I2C Diagnostics
X04 03
X04 03
X05 08
X07 01 28
X07 01 20
X07 01 11
X07 01 02
X07 00 EB
X07 00 E4
X07 00 DC
X07 00 D4
X07 00 CD
X07 00 BE
X07 00 B6
X07 00 98
X07 00 90
X07 00 6A
X07 00 4C
X07 00 44
X07 00 2E
X07 00 1E
X07 00 17
X07 00 0F
X07 00 08
X07 00 00
X07 00 00
X07 00 00

 

  • Hi, Safeer,

    There are a few considerations you need to take care regarding the order of the register configuration. Register 0x1B should be configured first to enable the oscillator trim of the amplifier. Then you can configure the DAP (Digital Audio Processing) features, like EQ, AGL or mixing. After the DAP settings are configured, you must exit shutdown with register 0x05, then un-mute the device and configure the desired volume levels. As you can notice, the GUI follows this programming order.

    In general, you can follow the next structure:

    0x1B - Enable oscillator trim
    .
    . (MAIN REGISTER CONFIG)
    .
    0x05 - Exit shutdown
    0x07 - Master volume configuration

    Best Regards,

      -Diego Meléndez López
       Audio Applications Engineer

  • Hi Diego,

    Is there a helpful process chart or a guide for this procedure as it seems critical for PA operation?
    I could not find anything in literature that suggests the procedure you described above?

    Many thanks,
    Dalibor
  • Hi, Dalibor,

    You can take a look to the Recommended command sequence from the TAS5731M Datasheet. This sequence is valid for the TAS5717 as well.

    Best Regards,

      -Diego Meléndez López
       Audio Applications Engineer

  • Hi Diego,
    Thank you for your prompt reply.
    In the GUI generated I2C file,After updating each DRC related registers (0x40,0x3B,0x3C etc...)  ,it also updates 0X07 with 0x03FF(Mute).Is it required always?

    Many Thanks,
    Safeer

  • Hi Diego,

    I had a really good look at the document you suggest and it does not help me I'm afraid.  It does not specify the sequence as such (unless I missed it in which case I would appreciate if you could point me to the page), but suggests that one uses the GUI to set up the amplifier.  What I have been able to conclude based on my tests so far is that there are some inconsistencies between the config specified in the datasheet and the one that is written by the GUI to the TAS5717.  Could you kindly confirm that the GUI (TAS57XX GDE) is reliable and we can trust what it is writing?  I will add some of my observations below in case you find them useful, and the details of the GDE output are posted in the conversation above by Safeer.  Many thanks in Advance.

    Dalibor

    No data for the following addresses in the config file, so I just used the default value in the datasheet. Please advise if changes required?

    0x01, 0x02, 0x04, 0x06, 0x10, 0x1A, 0x20, 0x21, 0x5C, 0x5D, 0x5E, 0x5F, 0x62, 0x6B, 0x6C, 0xF8, 0xF9

     Multiple entries in the config file for the following address. I ignored the repeats and used the following setting

    Address : 0x07  [Data : 0x03 0xFF]

    Address : 0x1B [Data : 0x00]

    The following entries were in the wrong format. I have used default values given in the datasheet. Please advise if changes required.

    Address : 0x0A  - Configure file specifies only 1 byte of data. The data length for this address is 2 bytes.

    Address : 0x40 - Configure file specifies only 8 byte of data. The data length for this address is 4 bytes.

    Address : 0x43 - Configure file specifies only 8 byte of data. The data length for this address is 4 bytes.

    Address : 0x6A – Configure file specifies data for this address, however this address is specified as ‘reserved’ in the datasheet.

  • Hi,
    I wonder if you have any feedback for me on the above?
    Dalibor
  • Hi, Dalibor and Safeer,

    Sorry for the delay, I was not in the office. Please refer to my comments:

    • About the question of register 0x07 writing after DRC coeffifients:
      • This is done by the GUI to avoid noise artifacts that can be heard while modifying DRC registers.
    • About the staring sequence section I pointed out before:
      • The page I mentioned showcases the general writing sequence:
      • Oscillator trim enable, 
      • Digital Audio Processing configuration
      • Mixing, modulation and other configurations
      • Exit Shutdown
      • Volume/mute configuration
      • Normal operation
      • Enter Shutdown before turning off.
    •  About the reliability of the GUI and Dalibor's comments on the registers:
      • Effectively, if there is no data about a register in the config file, the registers are set in Default. 
      • Register 0x07 is recommended to keep in mute until you exit shutdown mode. 
      • Register 0x1B should be set as 0x00 only at the beginning of the code.
    • It is OK to use the default values for registers 0x0A, 0x40, 0x43 and 0x6A. The GUI probably is writing only a part of the register or more than one register at the same time, that is why these registers shows a size mismatch.

    Best Regards,

      -Diego Meléndez López
       Audio Applications Engineer