The present invention relates to an automatic gain control (AGC) circuit and, in particular, to an automatic gain control circuit that provides feedback to a demodulator and receives feedback from the demodulator.
Most, if not all, of the IEEE 802 wireless systems are pulse-based transmit/receive systems. While the frequency of the next transmission is known in most cases, the time, length of packet, and signal strength are all unknown until a transmission occurs. Once a transmission occurs, a receiver must tune the radio frequency (RF) and intermediate frequency (IF) sections to recover the transmitted signal and to stabilize the amplifiers before the actual data in the payload is received.
This very short time needs to have all of the demodulations operating as quickly as possible. If the feedback of the recovered signal is too soon or too late, the AGC can become unstable due to incorrect feedback timing. By sending the states from an AGC state machine controller, the backend system demodulators will know exactly where the front end is with respect to the gain changes, the time constants used for the system delays, and the periods when the backend can sample the signal and report the condition of the signal (too high or too low) back to the AGC.
The systems that exist have an AGC that attempts to converge on a training signal and provides feedback but not in a robust or predictable manner since the received signal is questionable until the AGC stops making changes. The prior art
AGC circuits receive inputs from and provide inputs to the IF and RF amplifiers. There is, however, no input to or feedback from the demodulator in prior art AGC circuits.
Wireless systems based on IEEE 802.11 are pulse-based systems that send and received packets without having a constant carrier. The automatic gain control (AGC) circuit of these systems must react very quickly to lock in on the frequency and amplitude of the incoming signal very quickly. The present invention feeds the AGC state machine controller states to the baseband demodulators to help optimize the filter and timing during the demodulation process. The demodulations can predict the delays and conditions of the RF and IF sections based on the state machine controller states and provide feedback to the gain control.
An automatic gain control circuit is described including a state machine controller for adjusting intermediate frequency gain and radio frequency gain and a baseband demodulator, wherein the baseband demodulator receives information from the state machine controller regarding status of the state machine controller and further wherein the state machine controller receives correlation information from the baseband demodulator. Also described is a method including detecting a signal, providing state machine controller information to a baseband demodulator,
reducing a radio frequency gain, reducing an intermediate frequency gain and receiving correlation information from the baseband demodulator.
The present invention is best understood from the following detailed description when read in conjunction with the accompanying drawings. The drawings include the following figures briefly described below:
Specifically, an analog received signal strength indication (RSSI) 405 is received by the analog-to-digital converter (ADC) 410 of the AGC circuit. The AGC circuit of the present invention has a state machine controller 415. The state machine controller 415 provides input to the baseband demodulators 420 and, of course, controls the operation of the AGC of the present invention. At the initial state S1 of the state machine controller, the gain is set to the maximum. State S1 is in a closed loop with itself waiting to receive a signal. Once a signal is received, which is detected by a large change in the RSSI value, the timer is reset and a delay is invoked as shown in S2. The delay in S2 allows the system to settle in time before any action is taken to control the AGC. This delay is necessary to make a meaningful measurement of the signal strength. If the delay of S2 was not included, positive feedback could be provided and the system would oscillate. It is assumed that the signal present during the S2 interval is the preamble and the short (first) training signal. At this point the AGC circuit proceeds to state S3 where it receives feedback from the baseband demodulators 420 and RSSI 405 (via ADC 410) and determines if the RF gain should be reduced. Note that the baseband demodulators will know from the state when a valid measurement can be made to avoid sampling during the gain changes and during the wait periods. The value of the feedback of the RSSI signal and the correlation signal feedback from the baseband demodulators indicate if the RF gain or IF gain needs to be reduced. The first iteration through this loop, the coarse level of the RF gain can be made based only on the RSSI value. The additional iterations through this loop can be used to finely adjust the IF gain to help optimize the S/N ratio assuming that the timer shows that another increment of adjustment is possible before the long training signal starts. If the RF gain should be reduced then the state machine controller reduces the RF gain and then proceeds to state S4 to wait for a time interval, such as 0.2 μs, to allow the RF and IF amplifiers and baseband demodulators to settle or stabilize before trying to sample the signal. After the time interval passes, such as 0.2 seconds, the state machine controller proceeds to state S5 to determine if the IF gain should be reduced.
If at state S3 a determination is made that the RF gain should not be reduced then the state machine controller bypasses state S4 and proceeds directly to state S5. It is usually desirable to reduce the IF gain when possible rather than reduce the RF gain to help optimize the S/N ratio. If the IF gain should be reduced then the state machine controller reduces the IF gain and then proceeds to state S6 to wait for a time interval, such as 0.2 μs, to allow the RF and IF amplifiers and baseband demodulators to settle or stabilize before trying to sample the signal again. At state S7, the state machine controller either proceeds back to state S3 or to state S8 If at state S5 a determination is made that the IF gain should not be reduced then the state machine controller bypasses state S6 and proceeds directly to state S7. At state S7, the baseband demodulators can make another correlation measurement and feed the value to the state machine controller. The correlation value along with the RSSI signal can be used to see if the RF or IF AGC gain needs to be adjusted again. If there is enough time for another adjustment, the state controller will go back to S3. If no more time is left before the long training signal starts, the AGC values are held and the controller moves to S8. At state S8, a determination is made if the signal has changed such as large drop in voltage of the RSSI signal which would imply that the transmission has ended. If the signal has changed then the state machine controller proceeds back to state S1 to wait for the next transmission. If the signal has not changed then the state machine controller proceeds back to state S8. At all times the state machine controller is aware of which state the AGC of the present invention is in and provides that input to the baseband demodulators 420.
An example of how the controller works is given in
It is to be understood that the present invention may be implemented in various forms of hardware, software, firmware, special purpose processors, or a combination thereof. Preferably, the present invention is implemented as a combination of hardware and software. Moreover, the software is preferably implemented as an application program tangibly embodied on a program storage device. The application program may be uploaded to, and executed by, a machine comprising any suitable architecture. Preferably, the machine is implemented on a computer platform having hardware such as one or more central processing units (CPU), a random access memory (RAM), and input/output (I/O) interface(s). The computer platform also includes an operating system and microinstruction code. The various processes and functions described herein may either be part of the microinstruction code or part of the application program (or a combination thereof), which is executed via the operating system. In addition, various other peripheral devices may be connected to the computer platform such as an additional data storage device and a printing device.
It is to be further understood that, because some of the constituent system components and method steps depicted in the accompanying figures are preferably implemented in software, the actual connections between the system components (or the process steps) may differ depending upon the manner in which the present invention is programmed. Given the teachings herein, one of ordinary skill in the related art will be able to contemplate these and similar implementations or configurations of the present invention.
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/US08/00552 | 1/16/2008 | WO | 00 | 7/15/2010 |