Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Need help with dsPIC ADC in/ PWM out

Status
Not open for further replies.

ag

New Member
I've got a dsPIC (33FJ256GP506) with a microphone input circuitry connected to pin AN0. Also there is audio output circuitry connected to pin OC2/RD1 - thes audio will be output via PWM.

I'm a total beginner at setting the config bits and flags for the ADC and PWM.
What C code would take a sample from the input and send it straight to the output, with particular reference to the config bits? :)
 
Did you check the 33F family reference manual on ADCs and the ADC section of the datasheet ? It contains everything about the ADC with some example code too.

Also if you are using 33Fs its better to use one with a integrated audio DAC.It can provide much better quality audio than a PWM. Those DAC provide 16bit 100Khz with 256x oversampling and it has a small buffer to keep it going smooth
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top