Patent ID: 8441320

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 an amplified signal to the power amplifier; a first temperature sensor configured to sense the temperature of the power amplifier, and generate a first signal in accordance with the temperature of the power amplifier, wherein the first temperature sensor is located at a first distance from the power amplifier; a second temperature sensor configured to sense an ambient temperature, and generate a second signal in accordance with the ambient temperature, wherein the second temperature sensor is located at a second distance from the power amplifier, and wherein the second distance is greater than the first distance; and a bias generator configured to generate a first biasing signal to bias the power amplifier, wherein the first gain of the power amplifier is based on the first biasing signal, generate a second biasing signal to bias the preamplifier, wherein the second gain of the preamplifier is based on the second biasing signal, and adjust the second gain of the preamplifier by adjusting the second biasing signal based on (i) the first signal generated by the first temperature sensor in response to sensing a change in the temperature of the power amplifier and (ii) the second signal generated by the second temperature sensor in response to sensing a change in the ambient temperature, wherein the adjusted second gain of the preamplifier compensates a change in the first gain of the power amplifier due to the change in the temperature of the power amplifier.