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.

ANY IDEA ABOUT SIMPLE DAC

Status
Not open for further replies.

Fragrance

Advanced Member level 4
Joined
Jul 26, 2002
Messages
1,190
Helped
248
Reputation
496
Reaction score
202
Trophy points
1,343
Location
East Of Earth
Activity points
8,933
pic16f876 max518

HI ALL FRIENDS

I want to build a simple dac based on opamp vari the out put 0 to 5v
when input pulses vari any help full idea will be appreciated
 

try to see these pdfs

w*w.eeng.may.ie/~rlawlor/Courses/GE210/Lecture_Notes/ Lct_21_Digital_to_Analog_Conversion.pdf

w*w.technology.ewu.edu/Tech408/Chapters/Chapter13.pdf

w*w.phys.cmu.edu/physics_33228/labs/lab8.pdf

Regards,
 

Hi Fragrance, are using a PIC on this? Is pulse changing in frequency
or pulse width? Please explain more, attach some waveform.

Tornado
 

Tornado said:
Hi Fragrance, are using a PIC on this? Is pulse changing in frequency
or pulse width? Please explain more, attach some waveform.

Tornado

hi firend

i am using pic and pluse is pluse width type
 

Hi Fragrance, simple way is to LP filter your PWM singal in order to obtain an analog signal. The corner frequency of this LP filter should be at half (or less) of your PWM base freqency.
The analog resolution is approximately equivalent to your pulse width resolution.

the coding of your desired analog value into a pwm timer value will take some time or memory.

This DAC works if you don't need high performance and/or high speed.

could you tell us about your application???


aOxOmOx
 

Hi Fragrance here I have a Proteus design with hex file
for you to test, if you need my assembly code PM me.
I worked on PIC16F876. But easily can be changed to
other PIC types.
Also if you need faster response read the text in the
schematic.

Regards
Tornado
 

If you use 16F628 you can use the PWM output to generate your reference voltage (use a RC lowpass filter) and connect this generated voltage to one of the built in comperators and use the other comperator input for the signal you want to measure.

You could also use a R/2R resistor network on some free pins to generate a voltage with the resolution you need (might need an opamp as a buffer for the output signal).

If your application is not time critical you can generate a sawtooth voltage and measure your analogue value with it, other wise you could start with VCC/2 and if your voltage is lower continue with VCC/2 - VCC/4 (otherwise VCC/2 + VCC/4) until you find your voltage.

Should in theory be possible in 8 steps :)

best regards
 

Another idea is to use MAX517, MAX518 or MAX519
2-Wire, Serial, 8-Bit DACs with Rail-to-Rail Outputs. The MAX517/MAX518 are available in space-saving 8-pin DIP and SO packages.
 

Use a R2R net and a OP amp. It's not the best, but it works.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top