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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
1,141 Views
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

 

Tags (2)
0 Kudos
Reply
1 Solution
1,086 Views
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

View solution in original post

0 Kudos
Reply
3 Replies
1,109 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @dawnpaul100 

Please tell me how many channels does your I2S have?

 

BR

Alice

0 Kudos
Reply
1,104 Views
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 Kudos
Reply
1,087 Views
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 Kudos
Reply