anuragmash
Junior Member level 1
- Joined
- Jun 27, 2011
- Messages
- 16
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,426
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.