On Sat, 16 Jun 2001, Roman Black wrote: > Vasile Surducan wrote: > > > > You can do this very easy, using only one three pins regulator ( like 7805 > > > Clever idea using a 3-pin regulator Vasile. > Maybe go one step further and use a variable > 3-pin device like a LM317K, you could use a couple > of resistors and the one PIC pin could select > regulated 7v, reg 12v and off. I don't think it > would be hard, there would be almost zero parts > count and full voltage regulation with short > circuit protection built-in, all driven from > one PIC pin. Absolutely ! But here, 317 for large currents ( 3 A package ) is hard to find and using an external power transistor increase the cost of final project. I have use many times lm317/lm337 and the romanian clones, and I also like them. Cheers, Vasile P.S. one second error free, when ? -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.