Claims
- 1. A method for controlling the amplitude of the input to an analog to digital converter, the method comprising:
receiving a digital signal from the analog to digital converter; periodically measuring an average level of the digital signal; calculating a preliminary gain value according to the average signal level; generating gain control signals according to the preliminary gain value during a first and second time period; and controlling the amplitude of the input to the analog to digital converter with the gain control signals during the first and second time period; wherein the first time period starts after the preliminary gain value is below a threshold, and the second time period starts right after the first time period.
- 2. The method of claim 1, wherein the preliminary gain value is initially set to a maximalavailable value.
- 3. The method of claim 1, wherein the average signal level is measured periodically over a block of digital signal, wherein the period is the duration of the digital signal block, the block size is initially set to be a first number, the block size is set to the first number during the first time period, and the block size is set to a second number after the first time period.
- 4. The method of claim 3, wherein the second number is larger than the first number.
- 5. The method of claim 3, wherein the average signal level is obtained by measuring the average power over a block of digital signal.
- 6. The method of claim 3, wherein the average signal level is obtained by measuring the average envelop over a block of digital signal.
- 7. The method of claim 1, wherein calculating the preliminary gain value further comprises:
using the average signal level to lookup a gain adjustment value from a table; wherein the table is a table of signal level range versus the gain adjustment value; and adjusting thepreliminary gain value with the gain adjustment value.
- 8. The method of claim 1, wherein generating gain control signals further comprises:
calculating a first gain value as a first gain control signal according to the preliminary gain value; and calculating a second gain value as a second gain control signal according to the preliminary gain value and the first gain value.
- 9. The method of claim 1, wherein controlling the amplitude of the input to the analog to digital converter further comprises:
controlling the gain of a low noise amplifier with the first gain control signal, wherein the low noise amplifier is connected in the signal flow to the analog to digital converter; and controlling the gain of a variable gain amplifier with the second gain control signal, wherein the variable gain amplifier is connected in the signal flow to the analog to digital converter.
- 10. The method of claim 1, further comprising locking the amplitude of the input to the analog to digital converter after the second time period.
- 11. An apparatus for controlling the amplitude of the input to an analog to digital converter, the apparatus comprising:
a storage device, which stores a table of signal level range versus the gain adjustment value; a control unit, coupled to the storage device and the analog to digital converter, to generate a first and second gain control signal; a first gain control line, connected to the control unit and a low noise amplifier, carries the first gain control signal; and a second gain control line, connected to the control unit and a variable gain amplifier, carries the second gain control signal; wherein the low noise amplifier and variable gain amplifier are connected in the signal flow to the analog to digital converter.
- 12. The apparatus of claim 11, wherein the control unit comprises:
an average signal level measurer, coupled to the output of the analog to digital converter, for periodically measuring an average level of the output digital signal of the analog to digital converter; a preliminary gain value calculator, coupled to the average signal level measurer and the storage device, for calculating a preliminary gain value; a gain control signal generator coupled to the preliminary gain value calculator, wherein the gain control signal generator generates gain control signals according to the preliminary gain value during a first and second time period.
- 13. The apparatus of claim 12, wherein the average signal level measurer measures the average signal lever over a block of digital signal, wherein the period is the duration of the digital signal block, the block size is initially set to be a first number, the block size is set to the first number during the first time period, and the block size is set to a second number after the first time period.
- 14. The method of claim 13, wherein the second number is larger than the first number.
- 15. The method of claim 13, wherein the average signal level measurer obtains the average signal level by measuring the average power over a block of digital signal.
- 16. The method of claim 13, wherein the average signal level measurer obtains the average signal level by measuring the average envelope over a block of digital signal.
- 17. The method of claim 12, wherein the preliminary gain value calculator uses the average signal level to lookup a gain adjustment value from a table stored in the storage device, and adjusts thepreliminary gain value with the gain adjustment value.
- 18. The method of claim 12, wherein the gain control signal generator calculates a first gain value as a first gain control signal according to the preliminary gain value, and calculates a second gain value as a second gain control signal according to the preliminary gain value and the first gain value.
- 19. The method of claim 18, wherein the gain control signal generator locks the first and second gain value after the second time period.
CROSS REFERENCE TO RELATED APPLICATIONS
[0001] This application claims the priority benefits of U.S. provisional application titled “ADAPTIVE AUTOMATIC GAIN CONTROL FOR INPUT TO ANALOG-TO-DIGITAL CONVERTER” serial No. 60/349,041, filed on Jan. 15, 2002. All disclosures of these applicationsare incorporated herein by reference.
Provisional Applications (1)
|
Number |
Date |
Country |
|
60349041 |
Jan 2002 |
US |