Patent ID: 7460623

Claim:
A system for providing automatic gain control, comprising: a selector configured to receive an input signal having a first component and a second component, the first component and the second component being in digital form, the selector further configured to select respective bit portions from the first and second components based on a control signal to generate a first selected output and a second selected output; a scaler configured to receive the first and second selected outputs, to multiply the first and second selected outputs against a gain value, and to generate a first scaled output and a second scaled output respectively; a gain adjustor configured to provide the gain value and to adjust the gain value based on a signal derived from the first and second scaled outputs, wherein, the gain adjustor includes first and second cascaded up/down counters, the gain value is provided at the output of the first counter, and in a first state, the signal representing the first and second scaled outputs is communicated to the first counter, and in a second state, the signal representing the first and second scaled outputs is communicated to the second counter; and a controller configured to adjust the control signal based on the gain value.