On the second page of the LM317 datasheet they have a circuit with bipolar transistors switching different resistors in order to digitally control the output voltage. I think this would do what you want. Bruce Douglas -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads