I am doing a project to sample voice using PIC ADC at 8khz and then play it out using PIC's PWM as close to real time as possible.. I do not need to store the voice data so I do not need external memory.
The ADC part i think is pretty straight forward, but the playing of audio using PWM part is the one that I am not so sure about..
To start with the basics, lets say I sample a fixed 3KHz frequency signal output from function generator using ADC, i will get a bunch of 8bit data, how do I play these datas out using PWM to generate 3KHz tone using speaker..? I have experience of generating sine wave to drive stepper motor in microstepping mode. Is the principle the same..?
What kind of circuit do I need to play the audio out..? I know I need a low pass filter but apart from that, what else do I need..?
Any pointers or schematics..?
Thanks..
The ADC part i think is pretty straight forward, but the playing of audio using PWM part is the one that I am not so sure about..
To start with the basics, lets say I sample a fixed 3KHz frequency signal output from function generator using ADC, i will get a bunch of 8bit data, how do I play these datas out using PWM to generate 3KHz tone using speaker..? I have experience of generating sine wave to drive stepper motor in microstepping mode. Is the principle the same..?
What kind of circuit do I need to play the audio out..? I know I need a low pass filter but apart from that, what else do I need..?
Any pointers or schematics..?
Thanks..