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.

How to use TAS5717 to drive the speaker

Other Parts Discussed in Thread: TAS5717, TAS5717EVM

Hi,

Now my work is to write sw to drive the speaker, we use the TAS5717 driven by iMX6(freescale ARM CPU) to drive the speaker.

I'm new to the digital audio stuff, and I've already read the datasheet of TAS5717  and some basic knowledge of digital audio(including I2S protocol), but I still have little idea how to drive TAS5717 to make the speaker generate the sound.

Does anyone can guide me on this? Thank a lot!

  • Hi, Bob,

    This amplifier has several features and basically all of them are I2C configurable. In order to make the amplifier to stream audio, basically what you need is a valid I2S digital input and configure the amplifier via I2C to trim the internal oscillator (reg 0x1B), exit shutdown (reg 0x05) and unmute the outputs (reg 0x07). This is the most basic operating mode of the amplifier, without processing (like EQ or AGL) and using default modulation and mixing settings.

    I will recommend you to use our TAS5717 GUI and configure the device as you like, then you can export a script ready to be used to configure the device via I2C.  the GUI can be found in the TAS5717EVM product folder in ti.com. Please let me know if you have more questions. 

    Best Regards,

      -Diego Meléndez López
       Audio Applications Engineer

  • Hi Diego,

    Greatly appreciate your quick response! : )
    Here's my understanding regarding the approach of basic operation(simply make the speaker sounds), pls correct me if I'm wrong:
    First,configure some important registers(clock control register, system control register1,Serial data interface register,System control register 2, Soft mute register, Master volume, channel 1 volume registers) via I2C. After that, as long as the stream data transferred from source to TAS5717 by the I2S protocol, the speaker can be "speak", am I right?

    Another question is, you mentioned that"use our TAS5717 GUI and configure the device as you like, then you can export a script ready to be used to configure the device via I2C", so (1)this generated script is a file in what kind of format? (2)How exactly to configure the TAS5717 by this script?
    (P.S. In PCB, we use iMX6 as the source connected to TAS5717 )
  • Hi, Bob,

    Your approach is fine, after the correct configuration of the device (as long as the power supplies are stable and the clock signals are correct), the amplifier will start streaming Audio signal through the outputs. 

    The script generated by the GUI specifies only the register address and the value you want to write in the next format:

    You can save the GUI configuration into a script text file via Write I2C Init File Command in Target section of the GUI. Then, you can load the previously saved fle via I2C Memory tool under Tools menu. You may also use the I2C Logging function that can be found in Tools menu. This feature will track all the I2C register updates made with the controls in the GUI and save them in a .cfg file located in the Software install directory, typically C:\Program Files\Texas Instruments Inc\TAS57XX GDE\ ProcessFlows\TAS57XX\diagnostics.cfg.

    You can use the I2C script generated by the GUI as the base to create a file that matches the format of your host controller.

    Best Regards,

      -Diego Meléndez López
       Audio Applications Engineer