3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

How do I do digital signal processing and DAC with a 16F877 PIC chip?

I am thinking about replicating the Lo-Fi Arduino Guitar Pedal and I am unclear how exactly the incoming ADC data is being stored/processed by his code. I also don't fully understand what he is doing in using PWM to do DAC. Can anyone clarify this process and explain how it might work with a 16F877 chip that has built-in hardware 10-bit PWM functionality? Or, at least, can someone reference me to an equivalent project or article?

1 answer
Mar 8, 2009. 5:35 PMpurduecer says:
Hey randofo,

In regards to the use of PWM for DAC, that's one of the standard ways to do DAC on microcontrollers. PIC recently introduced a new line of MCU's that have onboard DACs, but for older ones, such as the 16F877, outputting via PWM and then filtering this output is the only way to do it. this appnote may help clarify how it works.

--Purduecer

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!