Hi community,
I am trying to play audio using I2s communication below are the details:-
I am using Lpc55s69 microcontroller .I am playing 24kHz, 16-bit PCM audio stored in external flash using I2S. Currently, I read the entire data into an array before sending it to the audio codec. This works but consumes too much memory.
I need a way to play audio in smaller chunks without gaps, reducing memory usage. How can I achieve this efficiently?
Any suggestions or guidance would be helpful. Thank you!
Hello @Tharun123,
Yo can read a minor size memory sections from your FLASH and send via I2S to reproduce sounds.
If this is the case, you can take by reference the SDK (version 24.12) example called "i2s_dma_transfer", where in this example takes a defined sine wave and send via DMA to TX FIFO.
Also, I highly recommend see this app note where I2S is better explicated.
BR
Habib.