RM0440
counterpart is that the software has to perform some operations to de-interleave the data of
each microphone.
In the other hand, when the slot width is set to 8 bits, each data available into the SAI_ADR
will contain 8 useful bits. This increases the amount of words stored into the memory.
However, it offers the advantage to avoid extra processing since each word contains
information from one microphone.
SAI_ADR data format example
•
32-bit slot width (DS = 0b111 and SLOTSZ = 0). Refer to
For an 8 microphone configuration, two consecutive words read from the SAI_ADR
register contain a data byte from each microphone.
For a 4 microphones configuration, each word read from the SAI_ADR register
contains a data byte from each microphone.
b31
word 2n
word 2n+1
b31
word n
•
16-bit slot width (DS = 0b100 and SLOTSZ = 0). Refer to
For an 8 microphone configuration, four consecutive words read from the SAI_ADR
register contain a data byte from each microphone. Note that the 16-bit data of
SAI_ADR are right aligned.
For 4 or 2 microphone configuration, the SAI behavior is similar to 8-microphone
configurations. Up to 2 words of 16 bits are required to acquire a byte from 4
microphones and a single word for 2 microphones.
Figure 617. SAI_ADR format in TDM, 32-bit slot width
8 Microphones configuration
4 Microphones configuration
LSBFIRST = 0
LSBFIRST = 0
RM0440 Rev 1
Serial audio interface (SAI)
Figure
617.
MSv35470V1
Figure
618.
1769/2083
b0
b0
1815
Need help?
Do you have a question about the STM32G4 Series and is the answer not in the manual?