This project http://elm-chan.org/works/sd8p/r... uses the petit fatfs library to read wav files off of SD cards and play them flawlessly without any problems, but in my project (project zip in attachments) the sound is pulsing, most likely because pf_read() takes a lot of time to do its stuff and when it is ready it uses disk_readp(), which calls playsample() that sets the pwm duty cycle of the sound output, which results a sound like this (output.wav in zip), it is supposed to be a 500Hz square wave. Does anybody know how to fix that?
Joined: Mon. Dec 4, 2017
Posts: 35 View posts
Last Edited: Fri. Mar 30, 2018 - 09:01 AM