<table><tr><td valign=top>That thread shows how to calculate the voltage once you know the resistor values. But, as I read the question again, apparently you are looking for the resistor values themselves.

First, determine the Maximum voltage that you will need to read. If you want to read 7.2 volts, then you should be prepared to read higher than that. Let's say 7.5 is the max (up to you though).

Vin = 7.5 <-- max Input to voltage divider
Vout = 5 <-- max Output voltage to pic

Using your best educated guess, choose a value for R1. Say, 2700 ohms.

R2 = R1/(1-(Vout/Vin))-R1
R2 = 2700/(1-(5/7.5))-2700
R2 = 5400 ohms

Use the closest Standard Value 5.6K

Then to do the reverse, just plug those resistor values into the formulas in the other thread.
http://www.picbasic.co.uk/forum/showthread.php?t=541</td><td valign=middle></td></tr></table>
HTH,
&nbsp; Darrel