Hi to all, I am working on a schematic that needs some calculation. I have a resistor divider like this that Vref should be 2,57v 14.4v | / \ R1 / |___ Vref | / \ R2 / \ | | Gnd this is what I used to calculate resistor values Vref = 14.4*(R2/(R1+R2)) so after changing resister values I got R1 = 8,2 k R2 = 1,782 k before I got above values I tried several times until I got the right values but I know there is better way of calculating it by using Vref value. Does any body know another formula ?. Andre -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.