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.

TAS2557EVM: Controlling TAS2557EVM by external I2C and I2S on STM32 MCU

Part Number: TAS2557EVM
Other Parts Discussed in Thread: TAS2557

Hi, TI.

I'm planing to control TAS2557EVM using external I2C and I2S on STM32 MCU like below.

Please check below questions.

1. Are there any specific configuration for using external I2C / I2S on STM32 MCU?

(I don't have any plan to use PPC3 for controlling TAS2557EVM.)

2. Could you please let me know Pad(Pin) numbers on tas2557evm for connect external I2C and I2S?

3. Refer to below link, FW and programming registers is basically same.

https://e2e.ti.com/support/audio-group/audio/f/audio-forum/898257/tas2557-tas2557-firmware-base-on-linux/3325244?tisearch=e2e-sitesearch&keymatch=TAS2557%20firmware#3325244

So I'll only use programming registers setting.

How could I get registers setting for below scenario?

a> Device power up and unmute sequence for RomMode2 and DSP Mode

b> Device power down and mute sequence for RomMode2 and DSP Mode

4. Are there any specific register settings for calibration scenario of measuring Speaker Impedance using VI feedback on RomMode2 and DSP Mode?

  • Hi SeungKyu,

    1. The TAS2557 itself cannot know if it is connected to EVM controller and PPC3, or an external controller. As long as you load the I2C commands correctly it should be the same for the device.

    2. You can refer to User's Guide section 6.1.2 for I2S connection details: https://www.ti.com/lit/ug/slou461/slou461.pdf#page=10 and for I2C you can use headers J19 and J20, disconnect the jumper and connect your external controller instead.

    3. Do you have a working set of commands already? If not I would suggest to use PPC3 to at least generate the configuration script.

    4. The general requirement is to have a good amount of current flowing through the speaker in order for the IV-sense feedback to be accurate. You can use either white noise or a pilot tone with an amplitude of at least 0.5V

    Best regards,
    -Ivan Salazar
    Applications Engineer

  • Hi, Ivan,

    Please check below inline answer.

    Thanks,

    SeungKyu Joo

    ====================================================================

    Hi SeungKyu,

    1. The TAS2557 itself cannot know if it is connected to EVM controller and PPC3, or an external controller. As long as you load the I2C commands correctly it should be the same for the device.


    => Thanks.


    2. You can refer to User's Guide section 6.1.2 for I2S connection details: www.ti.com/.../slou461.pdf and for I2C you can use headers J19 and J20, disconnect the jumper and connect your external controller instead.


    => I'll check the document. By the way, can I use headers J19/J20 and J36/J37 both for I2C if I use dual mono?

    3. Do you have a working set of commands already? If not I would suggest to use PPC3 to at least generate the configuration script.

    =>
    I have some scripts but I don't know they are correct or not.

    For get scripts, I use "End System Integration" menu on PPC3.

    "End System Integration" -> Dump the Binary file -> ROM Mode 2 / 48Khz / BCLK / 3.072 Mhz

    I can see some cfg files, but I don't know what I use.

    <Files List>

    combined_configuration_0_ROMMode2_48KHz.cfg

    combined_configuration_1_calibration_ROMMode2_Configuration_48KHz.cfg

    configuration_0_ROMMode2_48KHz_DEV_A_PRE.cfg

    ....


    4. The general requirement is to have a good amount of current flowing through the speaker in order for the IV-sense feedback to be accurate. You can use either white noise or a pilot tone with an amplitude of at least 0.5V

    =>
    Thanks. Then I understood that there aren't no register differences between playback mode (Rom Mode2) and calibration mode.


    Best regards,
    -Ivan Salazar
    Applications Engineer

    ====================================================================

  • Hi SeungKyu ,

    => I'll check the document. By the way, can I use headers J19/J20 and J36/J37 both for I2C if I use dual mono?

    • Yes, you can use both headers.

    =>
    I have some scripts but I don't know they are correct or not.

    For get scripts, I use "End System Integration" menu on PPC3.

    "End System Integration" -> Dump the Binary file -> ROM Mode 2 / 48Khz / BCLK / 3.072 Mhz

    I can see some cfg files, but I don't know what I use.

    <Files List>

    combined_configuration_0_ROMMode2_48KHz.cfg

    combined_configuration_1_calibration_ROMMode2_Configuration_48KHz.cfg

    configuration_0_ROMMode2_48KHz_DEV_A_PRE.cfg

    ....

    • The mentioned process is correct to get the configuration files. You should use the content from "combined_configuration_0_ROMMode2_48KHz.cfg"

    =>
    Thanks. Then I understood that there aren't no register differences between playback mode (Rom Mode2) and calibration mode.

    • If you're using the driver code to use calibration mode, then you should use "combined_configuration_1_calibration_ROMMode2_Configuration_48KHz.cfg", otherwise if you're just planning to use the IV-sense data feedback for speaker sense you can use the configuration from the previous question as well.

    Best regards,
    -Ivan Salazar
    Applications Engineer

  • Hi,Ivan,

    Thanks for your reply.

    I'll try on my board and create new question if I have more questions.

    Thanks,

    SeungKyu Joo

  • Hi SeungKyu,

    Sounds good. Thanks.

    Best regards,
    -Ivan Salazar
    Applications Engineer