Question about frame format of sai
Hi,
I'm implementing signal processing code.(cs42l51 audio in --> stm32 --> cs42l51 audio out)
And i'm using STM32H7B3-discovery kit.
I have some question about frame format of sai and cs42l51.
When i send sine wave data from stm32 to cs42l51, the waveform is not sine wave.(like noise)
First question is about frame format.
I'm implementing to send AIN1A to AOUTA and AIN1B to AOUTB.
I set sai setting like below.
- frame length : 32bit
- active length : 16bit
- active slot : 0, 1
- mode : stereo mode
I think I set sai frame like this. Is it right?
Second question is about sai callback.
In audio example, output callbacks are divided into two.(half callback, callback complete)
Does half callback mean that the LRCK is in a low state?
Last question is about slot.
I'm wondering about below part.(STM32H7B3 reference manual P.2172 FS roll)
I set the slot size to 2 and i'm using one left(AOUTA) / one right(AOUTB).
The right and left channel are each 1, so i can't set it to 0.5.
What does this mean?
Regards,
Youngjun
