SAI - how to synchronize the data transmit between 2 blocks
Hi!
I am still playing with the SAI of my STM32F446RE. It has one SAI (SAI1) which has two blocks, A and B.
The idea is to use the two blocks synchronously in TDM mode to transmit in total 8 slots, 4 slots for each block.
I can get it to work fine, though I noticed the two blocks do not necessarily send the data at the same time - i.e. as soon as I put something in the DR registers it gets sent. I went through the datasheet and a few PDF presentations multiple times, but I still do not get how I can get the 2 blocks to send the data at the same time (for example I put 4 bytes in each block, then say "go" and the 8 bytes are sent together using the 8 slots - i.e. one frame).
I guess it is something to do with the FIFIO thresholds? I tried setting them to Full (in my case half full will be 4 bytes, so it will be perfect) but it does not change anything.
Could someone explain to me how I am supposed to configure the SAI blocks?
Thank you in advance!
Simon
PS: I am using CubeMX and the HAL lib.
