Abstract:
A bit of a data signal is encoded with a value of a transmission clock signal if the bit corresponds to a zero. If the bit corresponds to a one, then the bit is encoded with an inverse of the value of the transmission clock signal. After transmission, the encoded signal is decoded by a counter and a comparator. The counter samples the encoded bit of the data signal into a plurality of sampled signals and inverts a portion of the sampled signals. The counter counts the number of sampled signals corresponding to a particular value such as a one or zero. When most of the sampled signals correspond to the particular value, a comparator outputs a decoded signal having a value corresponding to the particular value. When most of the sampled signals do not correspond to the particular value, the comparator outputs a decoded signal having a value corresponding to an inverse of the particular value. The number of sampled signals counted indicates the probability that the decoded signal matches the encoded signal and can be used to determine the integrity of the decoding system.

Description:
CROSS-REFERENCE TO RELATED APPLICATION 
     This application claims priority under 35 U.S.C. § 119 to U.S. Provisional Patent Application Ser. No. 60/073,466, filed Feb. 2, 1998. 
    
    
     BACKGROUND OF THE INVENTION 
     The present invention relates generally to the field of wireless communications, and more specifically, to the field of noise and error removal from signals which are transmitted in an analog form and processed in digital form. 
     In wireless communications, data signals are typically transmitted through the air in an analog format, even if the signals were originally in a digital format. When a signal is transmitted, the signal can suffer interference from other signals being broadcast through the air, it can be blocked and/or reflected by large buildings and large natural objects, it can be subject to fading caused by moving objects temporarily blocking the transmission path between the source and the destination, etc. As a result from the above listed and other possible sources of interference, the analog signal as it arrives at the destination often includes noise and phase angle errors. 
     A typical method for removing injected noise and error from an analog signal and to convert it from analog mode back to digital mode is to simply pass the analog signal as it is received through a comparator, which will compare the analog signal against at least one decision threshold and, depending on the result of the comparison, will produce one of at least two output values. In typical applications where the analog signal is a simple representation of a binary signal, the comparator will have only one decision threshold. If the analog signal exceeds the threshold or thresholds, then the comparator will output a certain voltage value and if the analog signal is below the threshold or thresholds, then the comparator will output a different voltage value. While this method provides a quick and easy method for removing noise and error from the analog signal in addition to providing the conversion from analog to digital, it provides no information as to the probability that the received signal actually matches the original analog signal. Additionally, if the analog signal undergoes severe fading which results in the received signal dropping below the threshold level of the comparator, the output voltage of the comparator may be different from the transmitted analog signal. 
     There is, therefore, a need in the industry for a system addressing these and other related and unrelated problems. 
     SUMMARY OF THE INVENTION 
     A system for removing injected noise and error from an analog signal includes a comparator for converting a received analog signal into its digital representation, a digital signal sampler for converting the digital signal into discrete signal values, an inverter for inverting the values of the first half of the sampled digital signal, a counter for counting the values of the sampled digital signal, and a second comparator for comparing the value of the counter with a predetermined quality value. 
     According to the first preferred embodiment of the present invention, the analog signal as it is received at a wireless station is transmitted to the first comparator where it is compared against a voltage threshold and converted to a digital signal. After conversion into the digital domain, the digital data is sampled at a rate sufficient to ensure the recovery of the sampled signal. 
     According to the first preferred embodiment of the present invention, after sampling, the first half of the sampled data representing a single data period is inverted. 
     According to the first preferred embodiment of the present invention, the sampled data, after inversion, is added together in the counter with the result of the summation being transmitted to the second comparator. 
     According to the first preferred embodiment of the present invention, the second comparator compares the result of the addition with a predetermined threshold and makes a decision on the value of the analog signal as it was originally transmitted. 
     According to the first preferred embodiment of the present invention, the result of the summation is also used to generate a metric of the confidence that the noise and error removal circuit has in the output value. 
     The present invention thus provides a system for rapid removal of noise and errors from an analog signal and provides a confidence value for the accuracy of a regenerated signal. 
     Objects, features, and advantages of the present invention will become apparent upon reading and understanding the present invention, when taken in conjunction with accompanying drawings. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     FIG. 1 is a block diagram representation of a CDMA wireless telephone, in accordance with a first preferred embodiment of the present invention. 
     FIG. 2 is a block diagram representation of an analog front end (AFE) circuit of FIG. 1, in accordance with the first preferred embodiment of the present invention. 
     FIG. 3 is a block diagram representation of a noise and error removal (NER) circuit of FIG. 2, in accordance with the first preferred embodiment of the present invention. 
     FIG. 4 is a diagram displaying the data stream as it is transmitted by the source and reconstructed at the destination by the wireless telephone of FIG. 1 and more specifically the NER circuit of FIG. 3, according to the first preferred embodiment of the present invention. 
     FIG. 5 is a diagram displaying the data stream that is incorrectly aligned with the data period at the receiving side of the transmission, according to the first preferred embodiment of the present invention. 
    
    
     DESCRIPTION OF THE PREFERRED EMBODIMENTS 
     Refer now to greater detail to the drawings in which like numerals represent like components throughout several views, FIG. 1 shows a block diagram of a dual mode wireless telephone (capable of operating in both digital and analog modes) 10 in accordance with a first preferred embodiment of the present invention. The diagram additionally applies to a variety of wireless telephones of alternate embodiments of the present invention, including dual mode cellular and PCS telephones. While the wireless telephone 10 is capable of operating in both digital and analog modes, the following description will describe the wireless telephone 10 as it operates in analog mode. According to the first preferred embodiment of the present invention, radio signals are received through an antenna 12 and then filtered, mixed to lower frequencies, automatic gain controlled, frequency modulation (FM) demodulated in a radio frequency transmit/receive (RF TX/RX) circuit 14 before being converted, in an analog front end (AFE) circuit 18, from analog to digital and supplied to a CDMA modem circuit (CMC) 22. As controlled by a central processing unit (CPU) 23, the CMC 22 demodulates the incoming digital data stream and transmits the data to a digital signal processor (DSP) 26 where the digital data is filtered. After filtering, the digital data is sent to a coder/decoder (CODEC) 30 where the digital data is decoded into an audio signal which is controllably amplified by an interface controller 34 and output through a telephone speaker 36. Likewise, a reverse path is followed through the wireless telephone 10 as a telephone microphone 38 detects user speech. A keypad 39 and a display 40 provide conventional user input and output. 
     Refer now to FIG. 2 which shows a block diagram of the analog front end (AFE) circuit 18 of FIG. 1. The organization of the AFE 18 is divided into three sections: a transmit section 190, a receive section 195, and a auxiliary section (not shown). The auxiliary section provides basic housekeeping functionality, generates error and control flags based on the data being processed by the AFE 18 (FIG. 1), possesses power supply and control circuits, and controls the functions of the AFE 18 (FIG. 1). The transmit section 190 is responsible for performing the transformations required to prepare the output signals for transmission. 
     The transmit section 190 can work with both analog and digital signals, depending on the operating mode of the wireless telephone 10 (FIG. 1). The transmit section includes several low pass filters (LPF) (not shown), a data latch (not shown), several buffers (not shown), and several digital to analog converters (DAC) (not shown) in a transmitter 200. Inputs to the transmitter 200 include a transmit data stream (TX DATA) and a transmit strobe (TX IQ/FM STROBE). The TX IQ/FM STROBE is used to provide a clock for the DACs (not shown) and the data latch (not shown) in the transmitter 200. After analog TX DATA has been converted to digital TX DATA by the DACs (not shown) in the transmitter 200, the digital TX DATA is passed through a LPF (not shown) and then to the RF TX/RX 14 (FIG. 1) and the antenna 12 (FIG. 1). 
     The receive section 195 of the AFE 18 is divided into a digital section 196 and an analog section 197. The digital section 196 is responsible for converting the received digital signals into a form that is suitable for processing by the CMC 22 (FIG. 1) and is not discussed in this specification. The analog section 197 takes demodulated analog signals (FM DEM) from the RF TX/RX 14 (FIG. 1) and decodes the voice data signal and the wideband data signal. Inputs to the analog section 197 include FM DEM from the RF TX/RX 14 (FIG. 1) and RX FM SYNC and RX FM CLK, both from the CMC 22 (FIG. 1). The FM DEM is the demodulated FM signal, coming from the RF TX/RX circuit 14 (FIG. 1), as received from the antenna 12 (FIG. 1) of the wireless telephone 10 (FIG. 1). The RX FM SYNC is used as an input strobe signal to initiate a serial analog to digital converter (ADC) 270 conversion cycle. The RX FM CLK is used as an input clock signal to clock FM receive data out of the serial ADC 270. 
     As the FM DEM signal enters the analog section 197, the signal is separated into two different signal streams, the voice data signal and the wideband data signal streams. The voice data signal goes to the voice signal section 271 and the wideband data signal goes to the wideband data demodulator section 272. The voice data signal going to the voice signal section is simply filtered by a low pass filter 260 and then converted to a digital signal by the serial ADC 270. As controlled by the RX FM SYNC signal, the output of the serial ADC 270 is transmitted to the CMC 22 (FIG. 1) for further processing of the voice data signal. 
     The wideband data signal as it enters the wideband data demodulator section 272 is converted into digital format. In the digital conversion process, noise or errors injected into the wideband data signal during the transmission and reception process is removed. Noise and other errors introduced into the wideband data signal are removed by the noise and error removal circuit (NER) 250. After any noise and errors are removed, the digital wideband data signal enters a wideband data demodulator 240. The wideband data demodulator 240 processes the digital wideband data signal and produces as output processed wideband data (WB DATA), a flag (WB DATA FLAG) concerning the validity of the WB DATA, and a clock (WB DATA CLK). The WB DATA is the actual wideband data that was transmitted along with the voice data signal. The WB DATA FLAG is a flag that specifies if the WB DATA is valid and the WB DATA CLK provides timing information regarding the data boundaries of the WB DATA. 
     Refer now to FIG. 3 for a detailed block diagram of the noise and error removal (NER) circuit 250 (FIG. 2). As the wideband data signal portion from the FM DEM signal enters a counter 300. In the preferred embodiment, counter 300 is a 5 bit counter although counters having other bit lengths are also possible. The value of the data is sampled in counter 300 at a rate that is controlled by a CLK input to the counter 300. The data sampling rate is at a rate sufficient to properly allow the proper reconstruction of the wideband data signal. Additionally, the first half of the data samples from every data period is inverted. The inversion preferably takes place in the counter 300. In the preferred embodiment of the present invention, each data period is sampled 24 times, with the first 12 data samples being inverted. Each data samples has a particular value of either a binary one (1) or a binary zero (0). The values of the data samples are added up by the counter 300, and after one complete data period (or the 24th data sample), the counter 300 outputs its value to a comparator 310. It should be noted that the same output value can be reached by counting the number of samples having a value of a binary one (1). 
     The comparator 310 compares the output of the counter 300 with a predetermined threshold value. In the first preferred embodiment of the present invention, the predetermined value is 12. If the output of the counter 300 is greater than or equal to 12, the comparator 310 produces a binary one (1) as output, and if the output of the counter 300 is less than 12, the comparator 310 produces a binary zero (0) as output. The output of the comparator 310 is stored in a flip flop 320 which is controlled by a data clock with the output of the flip flop 320 being transmitted to the wideband data demodulator 240 (FIG. 2). 
     Additionally, the output of the counter 300 is also used as a quality indicator of the data being stored in the flip flop 320. If the value from the counter 300 is close to 0 or 24, then the confidence in the accuracy of the value stored in the flip flop 320 is very high. While the closer the value in the counter 300 is to 12, the confidence in the value in the flip flop 320 is correspondingly lower. The state of the WB DATA FLAG is dependent on the values being counted in the counter 300. 
     Refer now to FIG. 4 for a diagram of a data stream in the various stages of encoding, transmission, reception, and processing, according to the first preferred embodiment of the present invention. A trace 400 displays the original data stream before it is encoded or transmitted by the source. A trace 410 displays the transmission clock, which is typically operating at twice the frequency of the data stream. A trace 420 displays the encoded data stream. The data stream 400 is encoded in the following manner. If the data value is zero (0), then the encoded data value is the same as the transmission clock. If the data value is one (1), then the encoded data value is the inverse of the transmission clock. A trace 430 displays the encoded data stream after it is converted to an analog format before it is transmitted. A similar trace may be used to display the data stream as it is received at the wireless telephone 10 (FIG. 1). After being received at the wireless telephone 10 (FIG. 1), the analog data stream 430 is converted into its digital representation with a typical trace is shown in trace 440. Trace 450 displays the digital data stream 440 after it has been sampled at a rate of 24 samples per data period while trace 460 displays the digital data stream 440 after the first half of the data period has been inverted. With the data period clock of the wireless telephone 10 (FIG. 1) matching the data period clock of the transmitter, the sampled data stream with the first half of the data samples within a data period being inverted matches the original data stream before any processing. 
     Refer now to FIG. 5 for a diagram showing the decoding of a wideband data signal when the data period clock of the wireless telephone 10 (FIG. 1) is not aligned with the data period clock of the transmitter. A trace 500 displays a data stream as it is received at the wireless telephone 10 (FIG. 1). A trace 510 displays the data stream 500 after it has been converted to digital format and a trace 520 displays the same digital signal after it has been sampled at a rate of twenty four (24) samples per data period. A trace 530 displays the same sampled data trace 520 after the first twelve (12) samples per data period is inverted, according to the preferred embodiment of the present invention. Due to the misalignment of the actual data period at the transmitter and the data period of the wireless telephone 10 (FIG. 1), the count of the data samples for the first complete data period is 4 and 20 for the second. Since the count is not exactly zero (0) or twenty four (24), the certainty produced by the NER 250 (FIG. 3) is not as high as if the actual data period and the data period of the wireless telephone 10 (FIG. 1) were aligned. As a result data period clock misalignment, data which was properly transmitted becomes data which is less than certain value. 
     The value output by the NER is used by WBD DEMOD 240 to generate the WB DATA FLAG. This data flag may then be used by other circuitry or system components in various intelligent or logical decisions, with regard to how the data is treated. 
     While the embodiments of the present invention which have been disclosed herein are the preferred forms, other embodiments of the method and apparatus of the present invention will suggest themselves to persons skilled in the art in view of this disclosure. Therefore, it will be understood that variations and modifications can be effected within the spirit and scope of the invention and that the scope of the present invention should only be limited by the claims below. Furthermore, the corresponding structures, materials, acts, and equivalents of any means- or step-plus-function elements in the claims below are hereby described to include any structure, material, or acts for performing the claimed functions in combination with other claimed elements as specifically claimed.