1
\$\begingroup\$

I am building an audio application using STM32H7 to communicate with two 32 bits SRC (Sample Rate Converters), two 24 bits CODECs, one 32 bits ADC and two 24 bits DAC.

I want to receive audio data from the ADC and CODECs, apply DSP algorithms and send the audio data to the DAC and CODECs. The STM32 should receive data from one SRC-1 and send data to SRC-2.

Given that STM32 has only 3 I2S interfaces, how can I connect these 6 devices to the STM32H7?

In this document, it says that TDM protocol supports multiple channels.

How can I configure the STM32 in CubeMX to support multiple devices in TDM mode?

If i use the following connection diagram below: CODECS then how do i connect the SDIN and SDOUT pins of the 3rd, 4th and Nth devices?

\$\endgroup\$
5
  • \$\begingroup\$ The problem is 3 I2S peripherals will never be enough for 9 I2S chips. Does your chips support TDM mode? Why does the data need to pass through STM32 anyway? \$\endgroup\$ Commented Jan 5, 2024 at 0:04
  • \$\begingroup\$ I made a mistake in the diagram. \$\endgroup\$ Commented Jan 5, 2024 at 1:33
  • \$\begingroup\$ Which STM32 exactly? The 'H7 has SAI peripheral(s) which is I2S-capable. \$\endgroup\$ Commented Jan 5, 2024 at 9:28
  • \$\begingroup\$ @wek it's the STM32H757XIH6. I noticed SAI peripherals as well. So I guess I can use the 3 I2S peripherals and SAI peripherals in I2S mode simultaneously right? \$\endgroup\$ Commented Jan 5, 2024 at 11:45
  • \$\begingroup\$ I can use the 3 I2S peripherals and SAI peripherals in I2S mode simultaneously Yes. \$\endgroup\$ Commented Jan 5, 2024 at 13:35

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.