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.

8 Bit Serial Digital to Analog (5v range) Converter for microcontrollers (when TTL and Resistors is all you've got)

8 Bit Serial Digital to Analog (5v range) Converter for microcontrollers (when TTL and Resistors is all you\
So I needed a DAC (digital to analog converter) to use with my pic12F675 , and for those of you who have never heard of this little fella, it's an 8 pin microcontroller from Microchip that has only 6 I/O pins...

This is a very simple circuit that converts Digital data (serial input) to Analog values ranging from 0v to 5v (I used it to generate audio (adding an output capacitor to filter DC) with the 12f675 (requires amplification) )
It can also be used as a serial->parallel output multiplexer (see digital outputs)

Materials:

+(1) 74164 8bit Shift Register
+(1) 74373 8bit Latch
+(9) 10K resistors
+(7) 4.7K resistors
+'Generic' perfboard (the pcb...)
 
Remove these adsRemove these ads by Signing Up
 

Step 1The Schematics

The Schematics
I was thinking of using this as a generic DAC ( "plug and play" at any breadboard(plugboard) ) for most applications you won't need to use all inputs (but DON'T let them float)

Inputs :

tri_state :
'1' will put the digital outputs to tri-state (while in tri-state the digital "outputs" can be used as parallel input to the DAC)
'0' Normal Usage

Latch_Enable :
'0' Maintains the current Register state (Maintains the current analog output)
'1' Copies the inputs from the shift register and stores it

Not_Shift_clear:
'0' Clears the Shift register
'1' Normal Usage

Shift_Clock:'
   __/    clocks the result of the expression (Serial_In and Serial_In2) into the shift register
Outputs:

Analog_Out: after all It is a digital to ANALOG converter...

Parallel_Out 0-7: but it's also a output multiplexer =D
« Previous StepDownload PDFView All StepsNext Step »
9 comments
Dec 11, 2011. 6:50 AMemihackr97 says:
you should add an opAmp to buffer it all.
Apr 15, 2008. 5:02 PMA good name says:
So it's a usb memory stick??? lol...
Dec 26, 2006. 11:14 AMspinach_dip says:
nice one. u said its an digital-analog converter right.so can i use it for parallel port too? my batch is working on a machine which shld get analog voltage output from the PC with respect to the pulses given. in one word circuit shld be able to convert parallel port signal in to relative analog voltage. so is this possible with ur circuit?
Dec 28, 2006. 10:19 AMMyself says:
In the days after the original Sound Blaster came out, most of us couldn't afford them. Some of us bought the cheap Media Vision clone for home but wanted audio output on the school's computers. Enter the Covox Speech Thing.

The Covox was just a resistor DAC like this, driven straight from the parallel port. Search on "covox parallel resistor" to find schematics. We used a capacitor on the output to block DC, but it sounds like you'll need an op-amp or something if you're looking for a voltage output.

The serial-to-parallel-to-Covox thing has been done before, to add audio output to a WRT54G. Is there anything that poor little box hasn't been hacked up to do? Check here: http://www.duff.dk/wrt54gs/
Dec 25, 2006. 10:44 AMeur says:
Hi Depending on the output impedance of your D/A converter, you could have used only a resistor and a capacitor. For lower output impedance, you could add an emitter follower.

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!
4
Followers
4
Author:Proteus
Engineer graduated @ poli.usp.br , Embedded Software Engineer @ v2com.mobi , and all around nice guy =]