Audio broken after changing Audio bitwidth from 16 to 24 in LPCXpresso55S69 EVK.

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

Audio broken after changing Audio bitwidth from 16 to 24 in LPCXpresso55S69 EVK.

103 次查看
delphin
Contributor I

I have tried to change the Bit width of USB dev_audio_speaker_bm code in SDK version 2.15. I have changed the bitwidth from 16 bit to 24 bit and changed the related macros. But the audio output is not ok, its outputting noises and breaking sounds only. Are there any support document or sites about which changes are required to change the bit width. I have referred application note AN13447.

 

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

32 次查看
Pablo_Ramos
NXP Employee
NXP Employee

Hi @delphin,

You can find the code of the Application Note AN13447 in NXP Application Code Hub, you just need to select the device family and search for audio

Link: Application Code Hub (nxp.com)

Pablo_Ramos_0-1720729414282.png

In there you will find a GitHub link where you can find the code with all the changes that AN13447 mention.

I tested the code, and it works fine, just make sure to delete the file "startup_LPC55S69_cm33_core0.S" that will be added in the startup folder, I don't know why but this file generates some errors in my project.

In order to change how many bits you are using you just need to modify the format of the speaker directly on windows.

Pablo_Ramos_1-1720729429592.png

This code was made to have 2 modes 16 bits and 32 bits, if you want to use 24 bits you will need to make the pertinent changes in order to do so since there is no other Application Note with that specific requirement.

Also, when I test it with the USB port of my computer, I was only able to use the 16 bits format, I needed to use a USB type C with an adapter in order to be able to use the 32 bits format, this may not be your case but is important make sure that the USBs are not a limitation as it was in my case.

Hope it helps you!

 

0 项奖励
回复