Patent ID: 8823456

Claim:
A system comprising: a power amplifier having a first gain, wherein the first gain of the power amplifier is a function of a temperature of the power amplifier; a preamplifier having a second gain, wherein the preamplifier is configured to receive an input signal, amplify the input signal according to the second gain of the preamplifier, and output the amplified input signal to the power amplifier; a first temperature sensor configured to (i) sense the temperature of the power amplifier and (ii) generate a first signal in accordance with the temperature of the power amplifier; a second temperature sensor configured to (i) sense an ambient temperature and (ii) generate a second signal in accordance with the ambient temperature; and a bias generator configured to generate a biasing signal to bias the preamplifier, and adjust the second gain of the preamplifier by (i) adding the first signal to the biasing signal, and (ii) subtracting the second signal from the biasing signal, wherein the adjusted second gain of the preamplifier compensates a change in the first gain of the power amplifier due to a change in the temperature of the power amplifier.