> I have tried 3 weeks already, I can't get a good solution > to control V and I. This doesn't make a lot of sense. If you are making a power supply or something, you get to control the voltage or the current but not both. You can regulate one but the load will decide the other. In what context are you trying to control both voltage and current? ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.com -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads