Mario Mendes Jr. wrote: > Anyone here has a link or details about how this is implemented? I would > be specially helpfull if you had a diagram WITH the resitor values in it > =) but I can try to come up with those values on my own if you have a > schematic (or a good explanation of how everthing is connected). Do a search for an R2R Ladder -- an inexpensive way of crudely generating analog voltages from a bunch of port pins. Here's a Microchip App Note that shows a DAC. The same ladder network with your switches instead of port pins should do the trick. Tim -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist