Skip to main content
HungKai.Chien
Associate II
September 29, 2021
Question

Could STM32L433's SAI achieve features similar to full duplex?

  • September 29, 2021
  • 2 replies
  • 734 views

We need to transmit and receive I2S data at the same time.

​But we can’t transmit and receive at the same time now.

Then we want to know whether the SAI of STM32L433 can achieve features similar to full-duplex?

If yes, is this setting correct?

​​

This topic has been closed for replies.

2 replies

waclawek.jan
Super User
September 29, 2021

In SAI_xCR1.MODE, set one sub-block as Master (e.g. Master Transmitter) and the other as Slave (e.g. Slave Receiver). Then for Slave, in SAI_xCR1.SYNCEN, set it to "synchronous with the other sub-block" (i.e. 0b01) - that sub-block then will be controlled by the clock pins of the master sub-block.

See https://www.st.com/content/ccc/resource/training/technical/product_training/0c/16/3b/b4/76/8a/47/51/STM32L4_Peripheral_SAI.pdf/files/STM32L4_Peripheral_SAI.pdf/jcr:content/translations/en.STM32L4_Peripheral_SAI.pdf page 26.

JW

Piranha
Principal III
September 29, 2021

The same problems everywhere... SAI can do full-duplex, the HAL broken bloatware cannot. The HAL/Cube code and API shows it clearly that the developers are blatantly incompetent.