The present invention relates to automatic gain controllers, and more particularly to automatic gain controllers for use with RF transceivers of the type utilized with the IEEE 802.15.4 standard.
Portable RF transceivers such as those utilizing the IEEE 802.15.4 standard require the ability to easily detect signals of interest while minimizing the effects of noise and interferer signals within the wireless network. Interferer signals comprise other transmitted signals which may be received by an RF transceiver that are not of interest to the receiving RF transceiver but introduce energy within the desired operating band of the radio, and thus constitute an additional energy source, which the RF transceiver must take into account. In order to overcome this problem, RF transceivers may have associated therewith automatic gain controllers enabling the gain of various amplifiers associated with the RF transceiver to control the gain levels applied to the receive signals to maximize the receipt potential of signals of interest while minimizing the interference caused by both noise and interferer signals. These automatic gain controllers typically adjust the received signal strength of the in band signal to a desired analog level to primarily insure that there is no saturation of the radio front end. However, they adjust the gain of the front end based on the entire received signal comprised of the signal of interest, the possible interferer and the noise. If the gain is set too high, the interferer signal may be amplified to too large a value, potentially causing problems with the signal of interest. Likewise, if the gain level is set to low, unexpected spikes within the noise level at the RF transceiver may cause the signal of interest to be lost. Thus, there is a need for an effective method and apparatus for providing an automatic gain controller with an RF transceiver.
The present invention, as disclosed and described herein, comprises an automatic gain controller for an RF transceiver. The automatic gain controller consists of a dedicated digital engine configured to select a gain level responsive to a selected signal to noise ratio of a signal received by the RF transceiver. The signal that is the subject of the signal to noise ration is the expected received signal—the “signal of interest.” Any other received signals are treated as if it were noise. The digital engine is configured to select the gain level from a plurality of possible gain levels as a function of both the ratio of the signal of interest to the combined other received signals and noise and the dynamic range of the receiver.
For a more complete understanding of the present invention and the advantages thereof, reference is now made to the following description taken in conjunction with the accompanying Drawings in which:
Referring now to the drawings, wherein like reference numbers are used herein to designate like elements throughout the various views, embodiments of the present invention are illustrated and described, and other possible embodiments of the present invention are described. The figures are not necessarily drawn to scale, and in some instances the drawings have been exaggerated and/or simplified in places for illustrative purposes only. One of ordinary skill in the art will appreciate the many possible applications and variations of the present invention based on the following examples of possible embodiments of the present invention.
Referring now to
To achieve low power operation, each of the transceivers is operable to operate in a sleep mode, periodically “waking up” and either listening for some communication directed to itself or transmitting information to another one of the transceivers. When transmitting, the data is only transmitted in short bursts. Although asynchronous in operation, the timing between transceivers in a network is such that they wake up generally at a common time. The signal they are trying to listen for is referred to herein as a “signal of interest.” A problem arises when there are other transmitting devices operating in the same frequency band that are not in the network. For example, IEEE 802.11 wireless devices and Bluetooth wireless devices all operate in the 2.45 GHz band associated with the transceivers of the present disclosure. If one of these devices is transmitting during the data burst associated with the signal of interest, i.e., an interferer is present, the transceiver must account for this. The result is an overall increase in the inband spectral energy content, which can cause saturation if not accounted for. Additionally, it is possible for the interferer to be present for only a short period of time during the data burst.
Referring now to
The analog circuitry 202 additionally includes a frequency synthesizer 218, external oscillator circuit 220, sleep mode oscillator 222, calibration and bias circuitry 224 and voltage regulators 226. The frequency synthesizer 218 generates the frequencies necessary for performing RF modulation and demodulation operations within the RF receiver 210 and the RF transmitter 212. The external oscillator circuitry 220 comprises the circuitry for generating the oscillator signals necessary for operation of the digital portion 204 and analog portion 202 responsive to an external oscillator crystal signal provided thereto. The sleep mode oscillator 222 provides oscillation signals to the digital portion 204 and analog portion 202 while the digital portion 204 is in a sleep mode of operation. This would be a mode between the receive and transmit operations of the RF transceiver chip. The sleep mode oscillator circuitry 222 minimizes power requirements of the RF receiver chip. The chip requires most power during transmitting and receiving periods of time, and the remainder of the time the chip is in a power down or sleep mode to conserve system power. The calibration and bias circuitry 224 provides the circuitry for controlling various calibration and biasing operations for the analog portion 202 of the RF transceiver chip. Voltage regulators 226 regulate an applied voltage of 1.8 volts to 3.6 volts to the levels necessary for operation within the analog and digital portions of the RF transceiver chip.
The digital portion 204 of the RF transceiver chip consists of the digital modem 228 and an embedded MCU 230. The digital modem 228 provides for the modulation and demodulation of digital signals provided between the MCU 230 and the analog-to-digital controller 214 and digital-to-analog controller 216 of the analog portion 202 of the RF transceiver chip. The digital modem 228 is realized with a DSP. The embedded MCU 230 is an 8051 based microprocessor that controls processing operations within the RF transceiver chip. The embedded MCU 230 includes interfaces to the external world via a SPI interface 232 connected to an associated SPI port, a host sync interface 234 which may communicate with external devices via handshaking routines, and a test interface 236 providing for test and debugging of the chip.
Referring now to
Signals for transmission are received through the level shifter 318 to the digital-to-analog converters 332 and 334 associated with the I and Q components respectively where the signals are converted to analog format. The outputs of the digital-to-analog converters 322 and 334 are filtered through low pass filters 336 and 338. The I and Q components of the composite signal are upconverted and combined within mixer circuits 340 and 342 responsive to the filtered signals from low pass filters 336 and 338 and mixing signals from the quadrature generator 312. The I and Q components upconverted by the mixers 340 and 342 are summed together at the summer circuit 344 and passed through a harmonic filter 346 to provide the composite RF signal at 2.45 GHz. The harmonic filter 346 provides an output to a programmable gain power amplifier 306 connected to the output antenna switch 208 and controlled by the antenna control circuitry 302. The programmable gain power amplifier 306 amplifies the signal to a desired level before being switched for output to the antenna.
The automatic gain control is implemented within the low noise amplifier 304 and/or the programmable gain amplifiers 320 and 322 via inputs provided to these amplifiers from a digital signal processor implemented within the digital portion 204 of the RF transceiver chip. By implementing the automatic gain control within one or both of these amplifiers to maximize desired signals while minimizing noise, the analog-to-digital converter 328 and 330 can avoid being placed in saturation conditions and provide for optimal reception of signals of interest being transmitted to the RF transceiver chip as will be described more fully herein below. This makes full use of the dynamic range of the overall RF front end. It is noted that the reason for the programmable gain amplifier 320 is to allow for a lower resolution analog-to-digital converter with a resulting lower power budget. However, it should be understood that a higher resolution data converter could be utilized with a much wider dynamic range, with the disadvantage of a much higher power budget.
Referring now to
A memory manager 410 manages the various RAM memories 412 associated with the DSP core 408. The memory manager 410 is also in communication with the embedded MCU 230 and a SPI port 232. The MCU 230 also has associated RAM 420, an MCU register file 422, a non-volatile RAM 424 and an analog control interface 426. Control signals may be provided to the MCU 230 via a control port 428. A prefetch buffer 430 obtains MCU program memory instructions from program memory 432 when needed by the MCU 230.
By implementing an automatic gain controller 502 within the digital signal processor 408 as illustrated generally at
Referring now also further to
The IEEE 802.15.4 signal is a constant envelope signal and thus very robust to saturation. Saturating the analog low pass filters 324 and 326 and the analog-to-digital converters 328 and 330 should be avoided as much as possible especially when an interferer signal 606 is present as this can potentially make the signal of interest and the interferer signal of similar strengths. The AGC 502 implemented within the DSP 408 provides gain control for the RF transceiver in a series of fixed steps. The DSP is always late by one buffer length when receiving and evaluating received RF signals. The AGC 502 always initially establishes the analog gain signal to a maximum gain value at wake up in order to reach the desired sensitivity level. If the analog gain is not at a maximum level when the DSP is trying to detect the presence of a signal, it is possible to miss some of the received signal, as this is a short burst of data. Therefore, it is important to wake up at maximum gain, as opposed to initiating the gain control from a medium level of gain.
The AGC algorithm relies upon the power levels of the signal of interest and the SNR of this signal. The following equation represents the model for the received signal z(k):
z(k)=GAGCx(k)exp(2iπΔfk)+GAGCi(k)+nRF(k) (1)
GAGC comprises the gain level of the automatic gain controller 502. This gain level will of course vary depending upon which gain level is ultimately chosen. x(k) comprises the signal of interest. The power of the signal of interest depends upon the propagation conditions within which the signal is being transmitted. Δf is the frequency offset in base-band used by the receiver and the transmitter of the transceiver. i(k) comprises the received interferer signal within any received signal z(k). nRF(k) comprises any received noise signals received by the RF stage. The digital signal processor 408 within which the AGC 502 is implemented will have a sampling frequency at its input of 2 MHz.
Equation 2 represents the power Px of the signal of interest x(k).
P
x
=G
2
AGC
E[x(k)x(k)*] (2)
In order to estimate Px the periodicity of the preamble of the signal of interest is utilized. Px comprises the power of the received signal of interest. E is the expectation. As before x(k) comprises the signal of interest and x(k)* comprises the complex conjugate of the symbol of interest x(k).
In order to estimate the power of the received signal of interest, the periodicity of its preamble is determined utilizing using the following equation:
C32=E[z(k)z*(k+32)] (3)
This is an estimator of the 32-order self correlation. 32 samples correspond to 16 microseconds at 2 MHz. The value of C32 measures the periodicity of the received signal. C32 is maximal when the signal z(k) is periodical with a period 32. In our case the received signal x(k) is periodical whereas the noise (RF and interferers) is a random signal which is not 32 periodical. As the noise is not 32-periodical the contribution of the noise in C32 defined in (3) becomes very small compared with the contribution of the signal of interest x(k). It can be demonstrated that the power of the preamble C32 calculated based upon samples belonging to the preamble are equal to the received signal power as soon as the interferer signal is non periodical or at least has a period greater than the 16 microsecond sampling period. This provides equation 4 as illustrated below:
C32=Px (4)
An estimation of the power of the preamble C32 and the power of the total received signal power Pz are used to estimate the signal to adjacent interferer ratio (SAIR) and signal to noise ration (SNR). Pz represents the power of the received signal and is defined by the following equation:
Pz=[z(k)z*(k)]=G2AGC(Px+Pi)+PNRF
Pi comprises the power of the interferer signal, Px comprises the power of the received signal of interest and PNRF comprises the power of the RF noise. PNRF depends upon the RF stage noise factor and to a small degree on the gain of the automatic gain controller that is selected so this value is fixed and known.
Referring now to
The signal to noise ratio is determined according to the equation:
The precision of the estimator of the SNR which depends on the choice of the estimator is taken into account by the choice of the SNR threshold which is utilized. The threshold is augmented by a factor which warrants that the targeted SNR will be reached after the gain setting is selected.
Inquiry step 712 determines the signal to noise ratio associate with the next gain is estimate by the DSP and if this “future” SNR is greater than a threshold SNR, the SNR associate with the next gain is determined at step 710. The gain is decreased because of the desire to filter a new incoming interferer during the demodulation of the signal of interest. When the determined SNR is smaller than the threshold SNR, the gain is set to the minimal gain that exceeded the threshold SNR at step 714. Thus, the gain is set to the minimal value in order to have a minimal SNR. This established gain level is used for controlling the LNA and/or PNA amplifiers using control signals provided by the automatic gain controller 502 within the DSP 508. The goal is to keep the RF gain as low as possible with respect to the received signal while providing some minimal SNR level with some predetermined margin provided for.
Referring now to
Referring now to
The bottom line 910 represents the noise level associated with the channel on which signals being received by the RF transceiver. Lines 912 and 914 and the area therebetween represent the potential signal strength levels associated with the signal of interest. The distance M between lines 910 and 912 represent the margin 908 which must be maintained between the signal level of the signal of interest and the noise level of the system. The gain of the automatic gain controller may not be lowered to such a level that the signal strength of the signal of interest received by the RF transceiver chip would drop below the level represented by line 912 or the detected signal level would drop below the permissible margin range. The space represented between lines 912 and 914 and indicated generally at 916 comprises the gain step delta G.
The gain step represents the amount that the signal strength of the signal of interest will decrease when gain is decreased from one gain level of the automatic gain controller to the next lower gain level. Thus, if the signal strength level of the signal of interest was approximately −24 dbvrms as indicated at point 918 for gain level 904a the gain level associated with the automatic gain controller may be decreased from gain level 904a to gain level 904b. This will cause the signal strength of the received signal of interest to decrease from the point indicated at 918 to the point indicated at 920 of approximately −35 dbvrms. Similar decreases can be seen when moving from points on the gain levels of the automatic gain controller along line 912. However, if the signal strength associated with gain level 904a were instead at −30 dbvrms (922), the gain level of the automatic gain controller could not be decreased to the next gain level 904b because this would take the signal strength of the detected signal of interest down to a point (924) below the desirable gain margin desired for operation of the transceiver. Thus, as can be seen, the gain step decrease caused by movement from a first gain level to a next lower gain level must maintain the signal strength of the received signal of interest above the margin level established for the system such that the signal to noise ratio will be maintained above a maximum desired level.
It will be appreciated by those skilled in the art having the benefit of this disclosure that this invention provides an automatic gain controller for use with an RF transceiver. It should be understood that the drawings and detailed description herein are to be regarded in an illustrative rather than a restrictive manner, and are not intended to limit the invention to the particular forms and examples disclosed. On the contrary, the invention includes any further modifications, changes, rearrangements, substitutions, alternatives, design choices, and embodiments apparent to those of ordinary skill in the art, without departing from the spirit and scope of this invention, as defined by the following claims. Thus, it is intended that the following claims be interpreted to embrace all such further modifications, changes, rearrangements, substitutions, alternatives, design choices, and embodiments.