This invention pertains to wireless receivers and wireless receiver technology, and more particularly to short range wireless systems that utilize phase modulation.
Conventional methods and devices to build a wireless receiver are generally known.
The received data packets may be preceded by the reception of noise. Referring to
Conventional automatic frequency control suffers from several difficulties. The noise received before a packet may sometimes falsely trigger the automatic frequency correction component 24, which often results in a greater degree of inaccuracy of frequency correction. This can, in turn, result in more error packets. Conventional automatic frequency correction suffers from slow merge times, resulting in more lost packets when the merge is not accomplished before the payload arrives. The wireless receiver must merge its clock with clocking information present in the received data packet quickly, ideally before the end of the reception of the preamble. It must not falsely trigger based on a noise input. A need exists for an improved method and apparatus for automatic frequency correction that addresses these issues.
An embodiment of an automatic frequency correction component, in accordance with one aspect of the present invention, includes a clock generator circuit to convert a received clock signal into a plurality of internal clock signals that operate at a fraction of the rate of the clock signal and are skewed uniformly in time, where each of the internal clock signals are separated by a fixed clock time interval and a sum of the fixed clock time intervals equals the cycle time interval of the clock generator. A plurality of sample and hold elements, each receiving one of the plurality of internal clock signals and the phase signal, samples the phase signal responsive to each internal clock signal to obtain a corresponding plurality of sampled phase signals. Each of a plurality of delay elements stores one of the plurality of sampled phase signals responsive to a corresponding one of the internal clock signals in order to output a corresponding one of a plurality of delayed phase signals. Each of a plurality of accumulators receives one of the delayed phase signals and a corresponding one of the sampled phase signals and computes a difference responsive thereto in order to output a corresponding one of a plurality of phase difference signals. An intermediate averaging component receives the plurality of phase difference signals and generates an intermediate average of the phase difference signals responsive to the received clock signal. A threshold detector receives the phase difference signals, generates a difference between multiple phase difference signals responsive to the clock signal, and compares the difference between multiple phase difference signals to a first threshold in order to detect a series of substantially equal consecutive phase differences and activate a detect signal responsive thereto. An output filter receives the intermediate average of the phase difference signals and filters the intermediate average responsive to the detect signal in order to generate the frequency correction signal.
An embodiment of a method for automatic frequency correction according to the present invention, wherein a phase signal input is converted to a frequency correction signal, involves converting a received clock signal into a plurality of internal clock signals that operate at a fraction of the rate of the clock signal and are skewed uniformly in time, each of the internal clock signals being separated by a fixed clock time interval, and where a sum of the fixed clock time intervals equals twice a period of the received clock signal. The method calls for sampling and holding a phase signal responsive to each of the internal clock signals to obtain a corresponding plurality of sampled phase signals. The method also calls for delaying each of the sampled phase signals, where each sampled phase signal is clocked by a corresponding one of the internal clock signals, to produce a corresponding plurality of delayed phase signals. The method further involves subtracting each of the delayed phase signals from a corresponding one of the sampled phase signals to produce a corresponding plurality of phase difference signals and generating an intermediate average of the phase difference signals responsive to the received clock signal. The method also sets forth comparing a magnitude of a difference between multiple phase difference signals to a first threshold responsive to the received clock signal in order to detect a series of substantially equal consecutive phase differences and activate a detect signal responsive thereto. Finally, the method recites filtering the intermediate average of the phase difference signals responsive to the detect signal to generate the frequency correction signal.
The wireless receiver and methods described below, generally merge the frequency correction process more quickly and accurately than conventional systems. It is generally able to complete the merge during reception of the preamble 42. It is less likely to trigger on noise and less likely to drop packets. It has a lower packet error rate than conventional systems.
An embodiment of the present invention is illustrated in the block diagram of
In this embodiment, the phase detector component 52 is comprised of several elements: Mixer 70 includes the function of combining the amplified received signal from the low noise amplifier (LNA) 72. The programmable gain amplifier (PGA) 64 amplifies the output of the mixer 70 under the control of the automatic gain control (AGC) 66. The PGA output 64 is filtered using anti aliasing analog filter 54, and then converted to a digital signal using analog to digital converter (ADC) 56. The ADC 56 output is filtered using decimation digital filters 58 and then fed to the phase estimator 60 which produces the phase output signal 102. This is just one embodiment of the design of the phase detector component 52, and does not preclude other approaches. For example, in another embodiment, the phase detector may output an analog phase signal 102 rather than a digital signal.
The demodulator 62, bit clock recovery (BCR) 68, and preamble synch detector 76 play a supporting role in the frequency correction process and in this embodiment, they generate additional signals used by the automatic frequency correction component (AFC) 100. These signals are clock signal 106, and the preamble end signal also referred to as PMend 108. A controller 78 guides the overall operation of the wireless receiver 50. It supervises the start up procedure and can reset the automatic frequency correction component 100 using reset signal 112. It generates enable signal 110, which enables operation of the automatic frequency correction component 100. Controller 78 also incorporates registers that can be used to configure various parameter values that are made available and can be used by other components of the wireless receiver 50 such as the automatic frequency correction component 100.
The essence of the present invention lies in the operation of the automatic frequency correction component 100.
Input signal clk 106 is the primary clock used control registers in the automatic frequency correction component 100. Input signal PMend 108 indicates when the end of the preamble is detected. Input signal reset 112 is used to reset the automatic frequency correction component 100, and input signal enable 110 is used to enable operation of the automatic frequency correction component 100. In the preferred embodiment, signals clk 106, PMend 108, reset 112, and enable 110 are binary signals. In other embodiments they may be of different types such as analog.
In this way, the four sample and hold elements 141, 147, 143, and 145, and four delay element 140, 146, 142, and 144 are clocked by internal clocks that activate at phase angles θ(i), θ(i+1), θ(i+2), and θ(i+3) respectively.
Referring back to
α(i)=θ(i+4)−θ(i)
α(i+1)=θ(i+5)−θ(i+1)
α(i+2)=θ(i+6)−θ(i+2)
α(i+3)=θ(i+7)−θ(i+3)
α(i+4)=θ(i+8)−θ(i+4)
Phase difference signal a(i) 151 is produced by accumulator 150 subtracting phase signal 105 value at θ(i+4), held in sample and hold element 141, minus the value stored in delay element 140 which was clocked into the sample and hold element 141 at θ(i) and transferred to the delay element 140 at θ(i+4). In a similar way, all the phase differences are computed: α(i+1) 157 from accumulator 156 using delay element 146 and sample and hold element 147, α(i+2) 153 from accumulator 152 using delay element 142 and sample and hold element 143, and α(i+3)155 from accumulator 154 using delay element 144 and sample and hold element 145. Note that θ(i+4) is the same as θ(i), but it occurs one clock generator cycle later. In this specification, θ(i) is used alternatively to refer to any instance of θ(i+4), where n is an integer.
The four phase difference signals are inputs to the intermediate averaging component 122 where they are averaged by adding all four values together using accumulators 160, 162, and 164 producing signal 165 which is divided by four using shifter 166 to perform a right shift by two binary digits to produce intermediate averaging component 122 output signal 168.
Using four phase difference signals in the intermediate averaging component 122 is beneficial because it produces a more reliable output value than if fewer no samples were averaged together. This more stable value results in a more accurate frequency correction output FreqCorr 104 and consequently results in fewer lost or erred packets. The more accurate result means that the frequency merge process will proceed more quickly.
The four phase difference signals also are inputs to the threshold detection component 124 and are used to obtain residual differences as follows:
β(i)=α(i+2)−α(i)
β(i+1)=α(i+3)−α(i+1)
Residual difference signal β(i) is produced by accumulator 170 subtracting phase difference signal α(i+2) 153 minus phase difference signal α(i) 151. In a similar way, residual difference signal β(i+1) is produced by accumulator 172 subtracting phase difference signal α(i+3) 155 minus phase difference signal α(i+1) 157.
The absolute value of each residual difference is computed by ABS elements 171 and 173, and compared to threshold Thresh 1 using comparator elements 174 and 176. If the absolute value of each residual difference is less than the threshold, the subsequent counters 178 and 180 connected to each comparator respectively are incremented. The counters can only increment if enable signal 110 is active. If comparator 174 or 176 detect that Thresh 1 is equaled or exceeded, then corresponding reset signal 192 or 194 is activated and counter 178 or 180 is reset to zero. The counters 178 and 180 outputs are respectively compared using comparators 182 and 184 with a second threshold Thresh 2. And gate 186 determines if both counter outputs are greater than Thresh 2 and if so it activates signal 196.
Thresholds Thresh 1 and Thresh 2 are configurable. They can be programmed as values stored in registers 80.
Threshold detection component 124 waiting period element 188 receives signal 196 and outputs detect signal 200, which goes active when signal 196 goes active, but remains active for a minimum time interval that is configurable in a register 80. This duration is enforced unless signal PMend 108 goes active in which case the detect signal 200 is immediately deactivated. The minimum time interval will give the phase detector 52 sufficient time to utilize the new FreqCorr signal value 104 that will be generated due to the detect signal 200 going active. The PMend 108 signal serves as an abort signal so that the frequency correction process can be contained to the initial bits in a data stream such as the preamble 42 bits in a received data packet. This improves the accuracy of data reception by preventing the automatic frequency correction process from running during data reception where adjustments to the clocking could lead to higher bit error rates.
In the threshold detection component 124, the comparison of the phase difference signals against threshold 1 detects whether the phase signal 102 is changing steadily over time, i.e. residual differences in phase change are less than Thresh 1. The comparison against threshold 2 check to see if this steady change is consistent. The longer the steady phase change continues, the less likely that the input signal is noise and the more likely that the input is a data preamble. Noise is relatively random and typically causes the phase difference to alternately increase and decrease. The phase would not typically consistently change by equal or nearly equal increments for a noise signal, as is the case when the frequency correction process has real data to merge on. In simulations, the present invention was given only noise as an input signal and the result was no false triggers. When data packets were supplied after the noise, the automatic frequency correction component 100 merged on the signal and received the packet without error in each simulation.
The output filter component 126 serves as a low pass filter that receives the output signal 168 from the intermediate averaging component 122, receives detect signal 200 which it uses as a clock and produces the frequency correction signal FreqCorr 104, which is the ultimate output of the automatic frequency correction component 100. The low pass filter shown in the preferred embodiment of
The following examples further illustrate the invention but, of course, should not be construed as in any way limiting its scope.
Example 1 is an illustration of an embodiment of the present invention in operation using a specified set of operating parameters. The example is included for educational purposes and selection of a specific embodiment of the invention and specific operating parameters should in no way be construed as limiting the scope of the invention.
In example 1, noise is received followed by one packet. The packet data rate is 100 Kbps and it is signaled at 100 KHz. The automatic frequency correction component 100 begins with frequency correction signal 104 equal to zero. Since the packet to be received is signaled at 100 KHz, the frequency offset is 100 KHz. The objective of the automatic frequency correction component 100 is to estimate the frequency offset so that the wireless receiver system 50 can correct its reception in time for data payload reception.
All references, including publications, patent applications, and patents, cited herein are hereby incorporated by reference to the same extent as if each reference were individually and specifically indicated to be incorporated by reference and were set forth in its entirety herein.
The use of the terms “a” and “an” and “the” and similar referents in the context of describing the invention (especially in the context of the following claims) are to be construed to cover both the singular and the plural, unless otherwise indicated herein or clearly contradicted by context. Recitation of ranges of values herein are merely intended to serve as a shorthand method of referring individually to each separate value falling within the range, unless otherwise indicated herein, and each separate value is incorporated into the specification as if it were individually recited herein. All methods described herein can be performed in any suitable order unless otherwise indicated herein or otherwise clearly contradicted by context. The use of any and all examples, or exemplary language (e.g., “such as”) provided herein, is intended merely to better illuminate the invention and does not pose a limitation on the scope of the invention unless otherwise claimed. No language in the specification should be construed as indicating any non-claimed element as essential to the practice of the invention.
Preferred embodiments of this invention are described herein, including the best mode known to the inventors for carrying out the invention. It should be understood that the illustrated embodiments are exemplary only, and should not be taken as limiting the scope of the invention.
Number | Name | Date | Kind |
---|---|---|---|
5900751 | Kuwabara | May 1999 | A |
6362668 | Lutley et al. | Mar 2002 | B1 |
6710635 | Wilson | Mar 2004 | B1 |