anuragmash
Junior Member level 1
I have the .wav samples (unsigned 8-bit PCM) of a music file that I want to play using the AVR microcontroller. I have enough flash to store these samples and would like to know if it would be easier to play it directly from the flash or should I store them on the RAM and then play the samples using PWM.
Also I would like to know how PWM works in such cases i.e. in playback of an audio signal. These samples are all 8-bit unsigned samples and the sampling frequency is 16kHz. How do these samples decide the duty cycle of the waveform i.e the pulse train of the PWM.
Also I would like to know how PWM works in such cases i.e. in playback of an audio signal. These samples are all 8-bit unsigned samples and the sampling frequency is 16kHz. How do these samples decide the duty cycle of the waveform i.e the pulse train of the PWM.