Patent ID: 8233859

Claim:
A method comprising: determining input values to a digital-to-analog converter (DAC) for a plurality of transmit power levels for a gain control circuit at a selected transmit frequency and at a selected temperature, in which the input values compensate for power gains and losses in transmitter stages utilized for transmitting a signal, wherein the DAC is used to control gain of the gain control circuit; storing the input values and respective power levels; identifying a variation in a level of the transmit power level at frequencies other than the selected transmit frequency as a ripple across a frequency band; determining a ripple offset value at each of a plurality of frequencies across the frequency band to substantially smooth the ripple; storing the ripple offset values; identifying a shift in the ripple across the frequency band at temperatures other than the selected temperature of operation; determining a correlation between the ripple shift and a change in temperature; storing the correlation between the ripple shift and the change in temperature; identifying a difference in the transmit power levels at temperatures other than the selected temperature; determining a correlation of the transmit power level between the other temperatures and the selected temperature; storing the correlation of the transmit power level between the other temperatures and the selected temperature; and providing a routine to run on a processor to select one of the input values corresponding to an expected transmit power output for transmitting the signal in response to a received transmit power control instruction to control a power output level for transmitting the signal, modifying the input value by offsets provided by a ripple offset value, correlation between the ripple shift and the change in temperature, and correlation between the transmit power level and temperature to adjust for variations within the transmitter stages for input to the DAC.