K10 I2S playback togerther with record via DMA 'click' noise

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

K10 I2S playback togerther with record via DMA 'click' noise

ソリューションへジャンプ
1,045件の閲覧回数
yangzeyong
Contributor III

Hello!

       I use K10 to playback wav file togerther with record micphone via dma to carry sound data. there is periodic ‘click’ noise,and playback speed is faster.

     K10 is i2s master, 48KHz/16bit, MCLK is 12.288MHz,BCLK=1.536MHz

      I debug the code ,and when i remove micphone record function code,only playback running,then there is not 'click' noise,and playback speed is normal.

     Playback and record  use dma channel0 and channel1, channel0 can preempt channel1, the interrupt priority of channel0 is higher than channel1.

         I use PE and the API I2S0_SendBlock & I2S0_ReceiveBlock to playback & record sound data.

    Thank you!

////////////////////////////////////////////////////////////////////////////////

p1.png

p0.png

ラベル(1)
0 件の賞賛
返信
1 解決策
925件の閲覧回数
yangzeyong
Contributor III

I have resolved this question.

The key reason is : when i use API I2S0_ReceiveBlock to record sound data,in the interrupt routine I2S0_OnBlockReceived ,i copy playback data FIFO repeatedly,so playback speed is faster twice than normal

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
926件の閲覧回数
yangzeyong
Contributor III

I have resolved this question.

The key reason is : when i use API I2S0_ReceiveBlock to record sound data,in the interrupt routine I2S0_OnBlockReceived ,i copy playback data FIFO repeatedly,so playback speed is faster twice than normal

0 件の賞賛
返信