Sm.r.Tadayoni
Junior Member level 1

Hello my Friends... 
I wanna to create a MP3 Player with ARM - STM32F103RE and internal DAC. As you know this micro controller has 2 DAC that can produce sound in stereo mode in 72MHz core clock. So i choose it for my project.
As i said, i choosed this mcu and i wrote a program for decoding MP3 (base on Helix codec and LPC1768 example code). But there is a problem about the producing of sound. there are lots of wind noise and "kh" in my speaker. i checked all of hardware connection to remove noises but after more times i understood the problem is about AudioBuffer of MP3 decoder. In the LPC1768 example the audio data has stored in audiobuf array and with the DMA send data to the UDA1380 Codec IC. So i replaced the DAC instead of UDA1380 in my project and use DMA to send audiobuf data on DAC corresponding register.
So my question is, why i have not pure sound on speaker?
I wanna to create a MP3 Player with ARM - STM32F103RE and internal DAC. As you know this micro controller has 2 DAC that can produce sound in stereo mode in 72MHz core clock. So i choose it for my project.
As i said, i choosed this mcu and i wrote a program for decoding MP3 (base on Helix codec and LPC1768 example code). But there is a problem about the producing of sound. there are lots of wind noise and "kh" in my speaker. i checked all of hardware connection to remove noises but after more times i understood the problem is about AudioBuffer of MP3 decoder. In the LPC1768 example the audio data has stored in audiobuf array and with the DMA send data to the UDA1380 Codec IC. So i replaced the DAC instead of UDA1380 in my project and use DMA to send audiobuf data on DAC corresponding register.
So my question is, why i have not pure sound on speaker?