piclist 2001\08\30\093643a >
Thread: PIC UNUSUAL D/A APPLICATION
www.piclist.com/techref/microchip/ios.htm?key=d%2Fa
flavicon
face BY : Mr MCU email (remove spam text)



Hi Tim,

There are a bunch of methods to do want you want.  The first task is to be able to detect the 50 inputs.  You could use
a big micro (lots of I/O) or mux them with shift regs, muxes, etc.  I probably would use six (48 lines plus 2 for the
micro to read directly) or seven (56 inputs) CD4021, as they are cheap and only require 3 lines to the processor.

As far as making the voltage, you could then use the micro to drive a DAC (there are many), or for a cheap route out,
make a DAC in software via PWM.  There are lots of app notes on PWMs.

Since you need 50 steps of voltage, a 7 bit DAC (128 steps) should be plenty.  The PWM route; however, gives you about
the rail voltage of the micro as the top voltage, so you would need to scale the output by using a simple resistor
voltage divider.  So if the micro ran on a stable 5 volt line, the highest output would be 5 volts (you can adjust the
power supply voltage) then the voltage divider as 5:1 would give you a max 1 volt output.  Each of the 7 bit steps would
be approx 7.8 mv (1V / 128), so 3 steps would give you appx 23.4 mv.  By reworking the number of bits (leaving one bit
extra for easy stability) and the supply voltage, you should be able to get the voltage step size that you want.

As far as the micro goes, use whatever you have and can write code for, you could do it with just 4 lines to the micro!

- Mike



tim wrote:

{Quote hidden}

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads


<3B8E4071.D69B2E83@sgi.net> 7bit

See also: www.piclist.com/techref/microchip/ios.htm?key=d%2Fa
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) PIC UNUSUAL D/A APPLICATION

month overview.

new search...