2021-10-19 12:30 AM
How to calculate the time taken for the data to be transmitted out to the audio amplifier using the SAI I2S protocol? Is there an inbuilt register or any other way I can calculate this?
2021-10-19 03:04 AM
"the data"? Which data from which source to I2S?
2021-10-19 03:32 AM
Hello,
Thank you for your response.
I'm using the STM32L452RET-P.
Also, I'm using the SAI_Transmit_DMA.
Audio Data from the memory(DMA) to the audio amplifier using the I2S Protocol of the SAI Peripheral.
2021-10-19 03:43 AM
Do you mean something like that?
When the SAI FIFOs are not used it's simple as that:
audio sampling rate * (bytes/sample) * number of channels
example:
48 kHz, 24bit ( = 3 bytes), stereo
=> 96 kSamples/s = 288 kByte/s = 2.304 Mbit/s
2021-10-19 03:47 AM
Stupid me, that was the data rate...
But from there you should get where you want. ;)