PWM driver audio DAC
Posted: Tue Jun 09, 2015 10:02 am
Hi,
I really want to make an cheap MP3 player from an st32f401re (no lcd needed ).
Because the DAC cost almost the price of the nucleo board, I was thinking of the possibility to use the pwm and an LP Filter in order to get sound from it.
Elm Chan proved that with an attiny85 it could obtain an good quality wav player http://elm-chan.org/works/sd8p/report.html .
with an 84MHz (maybe with an little overclock) it could be possible to decode MP3 files and also output sound from the same chip?
For the moment I get the PWM working on an led !!!, but got some little questions...
pwm driver offer 3 mains characteristics:
-frequency -in my case want something like ~ 200kHz for the carryer
-period - witch will encode the actual audio data;
-fill factor - volume
the first problem where I'm stuck is how to change the period on the fly ?
Does anyone got an example generating sound using chibios on an stm32?
Regards,
I really want to make an cheap MP3 player from an st32f401re (no lcd needed ).
Because the DAC cost almost the price of the nucleo board, I was thinking of the possibility to use the pwm and an LP Filter in order to get sound from it.
Elm Chan proved that with an attiny85 it could obtain an good quality wav player http://elm-chan.org/works/sd8p/report.html .
with an 84MHz (maybe with an little overclock) it could be possible to decode MP3 files and also output sound from the same chip?
For the moment I get the PWM working on an led !!!, but got some little questions...
pwm driver offer 3 mains characteristics:
-frequency -in my case want something like ~ 200kHz for the carryer
-period - witch will encode the actual audio data;
-fill factor - volume
the first problem where I'm stuck is how to change the period on the fly ?
Does anyone got an example generating sound using chibios on an stm32?
Regards,