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

454件の閲覧回数
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 返信

440件の閲覧回数
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 件の賞賛
返信