How to Configure Clock for 24 bit 48 Khz I2s transfer in lpc55s69-evk

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

How to Configure Clock for 24 bit 48 Khz I2s transfer in lpc55s69-evk

跳至解决方案
1,088 次查看
dawnpaul100
Contributor II

As per the calculation the BCLK frequency  required is 2304000Hz. I seem to be getting the FXCOMCLK7 clkin(23.04Mhz) as a multiple of BCLK required. But MCLK also has to be multiple of BCLK. But MCLK seem to be not using the fractional clock divider output. Please share some inputs to configure the clock correctly

dawnpaul100_0-1733122438837.png

 

标记 (2)
0 项奖励
回复
1 解答
1,033 次查看
dawnpaul100
Contributor II
The noise sound issue is resolved after updating the Dma input buffer to the I2S. I was using same address as DMA source address. Updated it to a ring buffer as in SDK example to resolve the issue. Thanks

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,056 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @dawnpaul100 

Please tell me how many channels does your I2S have?

 

BR

Alice

0 项奖励
回复
1,051 次查看
dawnpaul100
Contributor II

 

2 channels. I think I am able to generate the clocks properly. MCLK is 46.08 Mhz, Bclk is 2.304 Mhz(Verified with DSO). Audio is playing with small noise in the output sound. Could you share some inputs to debug. Do we need to update any setting for the codec when we update the the sampling rate to 48 khz in 24 bit mode. I have used sdk example lpcxpresso55s69_dev_audio_speaker_freertos as reference

dawnpaul100_0-1733304380033.png

 

0 项奖励
回复
1,034 次查看
dawnpaul100
Contributor II
The noise sound issue is resolved after updating the Dma input buffer to the I2S. I was using same address as DMA source address. Updated it to a ring buffer as in SDK example to resolve the issue. Thanks
0 项奖励
回复