Patent ID: 7683702

Claim:
A compensated electrical circuit comprising: a first module that generates a first output signal based on a first transfer function; a second module that generates a second output signal based on a current control signal and a second transfer function; and a compensation module that generates the current control signal based on the first output signal and a mapping function, wherein the mapping function is based on the first transfer function and the second transfer function to reduce an effect of an independent variable on an overall transfer function that relates the first output signal to the second output signal, wherein: the first module is a first current source, the first output signal is a first current, the independent variable is temperature, and the second module is a voltage amplifier; the compensation module comprises: an opamp that generates a gate drive signal based on the first current; and a transistor that conducts control current of the current control signal based on the gate drive signal; the compensation module implements a linear transfer function of the form y−mx+p, where y is the control current, x is the first current, m is a slope and p is an intercept point; the compensation module further comprises a second current source that generates an offset current that passes through the transistor; and p is based on the offset current.