Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Using PWM as D\A converter

Status
Not open for further replies.

justusfrantz

Newbie level 5
Joined
Sep 3, 2008
Messages
10
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,350
Hi all, i have a question. Is it possible to use the PWM module of PIC16f877a as a D\A converter just by varying the duty cycle ?

for eg. 2.5v = 127 duty cycle

and the output is connected to a simple two pole RC filter.

What are the values of R and C do i have to use ?

How fast is the conversion speed?

Your help is much appreciated.
 

Hi

The R & C preform a low pass filter with a corner frequency of about 5 ~ 7 times lower then the PWM frequency

There is is a nice artical from Boni Beaker in EDN site regarding PWM design

All the Best


Bobi
 

thanks bobcat. i tried to search for the article by boni beaker but i couldnt find it in the EDN website. could u please send me the direct link ?
 

Hi,

don't know whether this is the right article but if you use the name "Bonnie Baker", your changes of finding the right one are much higher.
**broken link removed**

Hope this helps, Bob
**broken link removed**
 

thanks bob.by the way, im using mikroC for the PWM. but the problem is mikroC only allows duty cycle from 0-255 thats 8 bit accuracy. i noticed that pic16f877a can perform PWM up to 10-bit accuracy.

anyone can help?
 

chk this microchip application note

Nishal
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top