The control precision of one or more parameters of an integrated circuit
(IC), for example the output voltage of a voltage regulator comprised in
the IC, may be improved even when using inaccurate components external to
the IC. Control of the output voltage, or any parameter, using components
external to the IC may include coupling a resistor to the IC and
measuring the actual resistance value of the resistor, and based on the
measured value, selecting a nominal resistance value from a set of
resistance values previously specified by the user. The output voltage,
or parameter, may be generated according to the nominal resistance value
instead of the actual resistance value, thereby reducing the error that
may be incurred due the actual resistance value of the resistor not
matching the expected nominal value of the resistor. The difference
between each adjacent resistance value in the set of resistance values
may be selected to be greater than the greatest measurement error that
may be incurred during measuring the actual resistance value.