how to play audio by sending audio data chunks wise through I2S DMA

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

how to play audio by sending audio data chunks wise through I2S DMA

457 次查看
Tharun123
Contributor I

Hi community,

I am trying to play audio using I2s communication below are the details:-

Issue:

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.

Required Solution:

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!

标签 (1)
标记 (3)
0 项奖励
回复
1 回复

443 次查看
Habib_MS
NXP Employee
NXP Employee

Hello @Tharun123,
Yo can read a minor size memory sections from your FLASH and send via I2S to reproduce sounds. 

Habib_MS_0-1742603863214.png

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.

0 项奖励
回复