ERROR ANALYSIS IN DATA BLOCKS

Abstract: An arrangement and technique for decoding Manchester Encoded Gray Coded serial binary signals is disclosed wherein the Manchester Encoded, Gray Coded data word is first tested for missing data bits. Two copies of the data word are then generated which differ from one another only in the single bit positions where missing data bit was discovered during the testing step. One reconstructed word will have a ONE in the missing data bit position and the other have a ZERO in the missing data bit position. The two copies of the data word are then converted from Gray Code into corresonding coded binary words and one is subtracted from the other. Then, either coded binary word is treated as valid information representing the received data word if the absolute value of the difference computed in the step of subtracting is one and that no more than one bit was detected as missing.

Description: EΓΓOΓ Analysis in Data Blocks SUMMΆRY OF THE INVENTION The present invention relates to fiber optic transmission and reception of information from optical position sensors, and more particularly to a process for decoding such information. In the present invention, a Gray Code is employed wherein any two successive (decimal) numbers differ from one another in only one bit position. Moreover, data words in that Gray Code are transmitted by so-called Manchester Encoding where a transition from one level to another represents a ZERO while a transition from the other level back represents a ONE. The present invention represents improvements for the process and structure disclosed in copending U.S. patent application Serial No. 693,744 for detecting and decoding Manchester Encoded data of a type where each incoming data word is preceded by a multi-bit synchronization pattern. The technique of this copending application includes confirming the reception of a valid synchronization pattern and from that pattern determining the time duration of a received bit within that valid synchronization pattern. As an alternative, the bit duration may be predetermined at the receiving end. A permissible time window is then established from the determined time duration and data transitions occurring within that permissible window are sensed. Upon sensing a transition within the window, the time of that transition is reestablished to occur at the time at which it should have occurred according to the previously determined bit width. One bit may be indeterminate and the algorithm is structured to allow any one bit anywhere in the data stream to be missing. The missing bit may be set to either a ONE or a ZERO, but if, for example, two or more bits are missing, fault indication occurs. The steps of sensing and reestablishing are repeated for each data bit in a data word to thereby form a reconstructed data word. When the missing bit detected m accordance with this prior technique is the least significant bit, little error is introduced by setting that bit to either a ZERO or to a ONE, but if it is, for example, the most significant digit, substantial error is introduced by accepting the data word as being valid. In a Gray Code, the least significant bit position associated with an increase in magnitude differs from the least significant bit position associated with a decrease as in the following three bit example where the least significant bit position is indicated by "x" . Least Significant Bit Position -ode Increasing Decreasing OOx xOO oxO OOx OOx 0x0 xOO OOx OOx xOO 0x0 OOx OOx 0x0 xOO OOx It is accordingly a primary object of the present invention to determine whether or not a digit, detected as missing in a serial stream is a least or most significant digit. In the above mentioned copending application, several synchronization bits (typically three) precede each data ' word generally providing high quality results. However, should the receiving circuitry fail to detect the first such synchronization bit, it then recognizes the first data bit as being the third of the synchronization bits. In the present invention, only a single synchronization pulse precedes each data word and another pulse follows the data word to provide both the timing information and location where the data word begins. Accordingly, it is another object of the present invention to method of determining the significance of bit in a received data word by analyzing an error signal and rejecting the data word whenever the received data is not of the form of n data bits preceded and followed by single synchronization bits. In general the presence invention discloses a method for determining the significance of a bit missing from a received data word includes the testing of the received data word to insure that no more than one bit is missing and the formation of two replicas of the received data word, one with a ONE in any missing bit position and the other with a ZERO in any missing bit position. One replica is then subtracted from the other to form a difference in the form 2 k . The kth bit position is then identified as the missing bit position. Further, one form of the invention discloses, a process of detecting, decoding and retiming optically transmitted wave division multiplexed Manchester Encoded data signals. In this process, all data words received are utilized even when an error is detected in the reception thereof. Usable data words are identified by sensing for errors in the form of missing bits and determining the position within a data word the location at which a detected error occurs. The data word will be accepted as a valid the data word if, and only if, the only missing bit is the least significant bit. The sensing includes testing the received data to make sure not more than one bit is missing while the step of determining includes forming two replicas of the received data word, one with a ONE in any missing bit position and the other with a ZERO in any missing bit position and subtracting one replica from the other to form a difference of the form 2 , the data word being accepted as valid only if k=0 indicating that the bit position was the least significant. The process of the present invention and advantages it offers should become evident from reading this specification while viewing the drawings. BRIEF DESCRIPTION OF THE DRAWING Figure 1 is a generalized schematic block diagram of a system for encoding, transmitting and decoding information such as position information with emphasis on function; Figure 2 is a more detailed schematic block diagram emphasizing the structure of a portion of the error detector circuit of Figure 1; Figure 3 is a more detailed schematic block diagram emphasizing the structure of the Gray to binary converter along with another portion of the error detector circuit of Figure 1; and Figure 4 is an illustrative waveform of a Manchester Encoded data word with synchronization bits preceding and following. Corresponding reference characters indicate corresponding parts throughout the several views of the drawings. DESCRIPTION OF THE PREFERRED EMBODIMENT Referring first to Figure l, the encoder 13 may be of the type disclosed in U.S. Patent 5,004,910 wherein light is modified by an encoder disk on a rotating shaft to generate and transmit position information along a fiber optic path 11. The position information may be wave division multiplexed (individually modulated spectral elements) and the demultiplexing may be accomplished by the optics and array section 15, for example, as disclosed in the inney et al U.S. Patent No. 4,852,079 entitled OPTICAL SPECTRUM ANALYZER. The signal conditioning circuit 17 may be a series of analog circuits as more completely described in the above mentioned copending U.S. Patent application Serial No. 693,744. The conditioned signal is then decoded at 19 and converted to a binary code at 21 and forwarded to the MPU interface 23. If a received signal is not perceived as a data word, an error signal will appear on line 43 in the following way. Considering Figures 2 and 4, the process of identifying a received signal as a data word will be clear. A search is made for a single leading synchronization pulse (sync 1) . If a single leading synchronization pulse is not found, a signal appears on line 45, conversely if such pulse is found, a signal appears on line 47. The next n transitions (low to high or high to low) are then sensed as data indicative transitions. Thereafter, a search is made for a trailing synchronizing transition (sync 2) . IF a trailing synchronizing transition appears, a signal occurs on line 49 while the absence of such transition appears as a signal on line 51. Finally, a blank region, equal in length to one data bit, is sensed to insure the lack of any transitions (no edge) . Should an edge occur in the blank region, a signal will appear on line 53. In summary, an error signal appears on line 43 from OR gate 35 if either both a first synchronization bit is found and a second is not (from AND gate 31) , or both the first and second synchronization bits are found, but there is a transition in the blanking region (from AND gate 33) . An error signal may also occur if OR gate 37 indicates either that there is more than one missing bit as signalled on line 81 from missing bit detector 25 or that the missing bit is not least significant, as indicated by line. The details of the Gray to binary converters 21 and 27 as well as the origin of the least significant bit error on line 41 is most easily understood by comparing Figures 1 and 3. A received Manchester decoded (but still Gray coded) n bit word is passed from decoder 19 to the two Gray to binary converters 21 and 27. Each of the converters 21 and 27 have an n bit exclusive OR shift register 57 or 59 of conventional construction. The inputs to register 57 are from a series of n OR gates such as 61, 63 and 65. These gates receive the n bit word on the upper input lines. The register 59 receives its inputs from a series of n AND gates such as 67, 69 and 71. Again, the n gates receive the n bit decoded word on the upper lines. The n lower inputs to the OR gates are all ZERO except for any position where a missing bit has been detected by detector 25. Any missing bit position is set to a ONE. The same inputs are supplied to the lower lines to gates 67, 69 and 71, but are inverted at the inputs to those gates. The effect of this is to set the missing bit position to ONE for register 57 and to set the missing bit position to ZERO for register 59. These two values are subtracted from one another in subtractor 73 and the absolute value of the difference is supplied from circuit 75 to the comparator 77 where the absolute value of the difference is compared to ONE. If that comparison indicates a value of more than ONE and only one bit is missing as indicated by a signal on line 79 from detector 25, an error signal is supplied on line 41 to the circuit of Figure 2. In summary, the n transitions of a waveform such as in Figure 4 are tested by circuit 25 for errors in the form of missing bits. These n transitions are converted into an n- bit data word by decoder 19. Circuit 25 also determines the position within a data word at which a detected error occurs. Actually, the received n transitions are tested to make sure not more than one bit is missing. Two replicas of the n-bit data word are formed, one with a ONE in any missing bit position and the other with a ZERO in any missing bit position. Subtracting one replica from the other forms a difference of the form 2 k and the received signal being accepted as representing a valid data word only if k=0, that is, if, and only if, the only missing bit is the least significant bit. The absolute value of the difference at the output of 75 indicates the position of a single missing bit. If this output is 2 k , the kth bit position (counting up from the least significant) is the missing one.

Claims: WHAT IS CLAIMED IS: 1. A method of detecting and decoding a received Manchester Encoded, Gray Coded data word signal comprising the steps of: testing the Manchester Encoded, Gray Coded data word for missing data bits; reconstructing two copies of said data word which differ from one another only in the bit positions where a missing data bit was discovered during said testing step, one reconstructed data word having a ONE in the missing data bit position and the other having a ZERO in the missing data bit position; converting said two copies of said data word from Gray Code into corresponding coded binary words; subtracting one of said coded binary words from the other word; and utilizing either of said coded binary words as valid information representing the received data word if the absolute value of the difference computed in the step of subtracting is one otherwise rejecting the received data word as invalid as being invalid. 2. The method of determining the significance of a bit missing from a received data word comprising the steps of; testing the received data word to insure that no more than one bit is missing; forming two replicas of the received data word, one with a ONE in the missing bit position and the other with a ZERO in the missing bit position; subtracting one replica from the other to form a difference of the form 2 ; and identifying the kth bit position as the missing bit position. 3. The process of receiving and utilizing data words despite a detected error in the reception thereof comprising: sensing for errors in the form of missing bits; determining the position within a data word at which a detected error occurs; and accepting as valid the data word if, and only if, the only missing bit is the least significant bit. 4. The process of Claim 3 wherein the step of sensing includes testing the received data to make sure not more than one bit is missing; and the step of determining includes forming two replicas of the received data word, one with a ONE in the missing bit position and the other with a ZERO in the missing bit position and subtracting one replica from the other to form a difference of the form 2 , the data word being accepted as valid only if k=0. 5. The process of identifying a received signal as a data word comprising the steps of; sensing for a single leading synchronizing pulse; sensing for the next n transitions as data indicative transitions; sensing for a trailing synchronizing pulse; and sensing to insure the lack of any transitions within one bit time period until receipt of the trailing synchronizing pulse. 6. The process of Claim 5 including the additional steps of testing the n transitions for errors in the form of missing bits, converting the n transitions into an n-bit data word, determining the position within a data word at which a detected error occurs, and accepting as valid the data word if, and only if, the only missing bit is the least significant bit. 7. The process as recited in Claim 6 wherein the step of testing includes testing the received n transitions to make sure not more than one bit is missing; and the step of determining includes forming two replicas of the n-bit data word, one with a ONE in any missing bit position and the other with a ZERO in any missing bit position and subtracting one replica from the other to form a difference of the form 2 , the received signal being accepted as representing a valid data word only if k=0.

Inventors: HALLIDAY DANIEL LEE, HALLIDAY, DANIEL, LEE
Applicants: ALLIED SIGNAL INC, ALLIED-SIGNAL INC.
Application year: 1993
Main classification: H04L1
IPC codes: H04L1