Data communication code
BACKGROUND OF THE INVENTION 
     (1) Field of the Invention 
     The present invention relates to the encoding means of a digital data communication transmitter. 
     (2) Prior Art 
     With respect to the prior art, encoding is the process by which digital data bits or analog signal information is transmitted over a communication channel. The use of code redundancy will increase the information certainty of the receiving system. Codes have most often been employed to satisfy the demands of the communication system. Codes are used to a great advantage in spread spectrum systems. A spread spectrum system is one that employs a great deal more bandwidth in transmitting its information than would normally be required. Error detecting and correcting codes for instance are often employed in spread spectrum systems on the data channel to protect the information from interference induced errors. Performing a correlation process in a spread spectrum receiver acts to overcome interference and thus to improve the decoder performance. Spread spectrum systems of the direct sequence type are very similar to pulse code modulation (PCM) systems except the usual PCM codes are replaced by very long code sequences. There are various PCM codes which are described for example in &#34;Digital Computer Technology and Design&#34; Vol. II, Pages 12.26-12.27 by W. H. Ware, John Wiley and Sons, 1963. 
     A number of encoding schemes can be used for transmission. The desirable features of the code employed are as follows: 
     1. It should be possible to derive timing information from the encoded waveform. 
     2. The process of decoding or demodulation should result in a carrier detect signal. 
     3. The signal element should have state changes to prevent repetitions of the same code and information states (i.e., strings) from producing low frequency signal spectrum components. 
     4. The average value of the signal should be zero to facilitate A.C. coupling. 
     5. The total power transmitted for an encoded &#34;zero&#34; and &#34;one&#34; should be equal so that the transmitted energy is independent of string sequence form. 
     6. If the encoded signal is waveform integrated to reduce high frequency spectral components then conditions 4 and 5 must be satisfied. 
     The above conditions place strict constraits on the encoder design. If a wideband data channel is available on the communication medium, then spread spectrum techniques can be employed. The use of longer code sequences, than the usual pulse code modulation (PCM) codes, can be used effectively to produce an encoded signal to meet the above constraits. If a plurality of transmitters are to share a common communication channel, then the detection of multiple transmission of similar spectrum signals is important. This places another constrait on the encoder. The out-of-phase correlation properties of the encoded signal are important. The correlation of &#34;zero&#34; and &#34;one&#34; canonical code sequences should produce a collision detectable signal. Also the correlation of multiple signals formed by any combination of &#34;zero&#34; and &#34;one&#34; canonical code sequences should be detectable. Nevertheless, the code sequences generated by the encoder should be able to protect the information from noise interference induced errors. These are some of the problems this invention overcomes. 
     SUMMARY OF THE INVENTION 
     In accordance with an embodiment of this invention, the encoder apparatus of the transmitter encodes binary digital information. The input to the encoder is either one of two possible states called a &#34;zero&#34; or &#34;one&#34;. The encoder generates a ternary output signal which is one of three possible states represented by &#34;+1&#34;, &#34;0&#34; and &#34;-1&#34;. As a function of time, the encoder processes the input state and generates a ternary code sequence as an output. The output code sequence for one binary input state is represented by the sequence +1, +1, 0, 0, -1, -1 and the other binary input state with the representative sequence +1, 0, +1,-1, 0, -1. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     FIG. 1 is a signal waveform which illustrates the encoding of binary information using the disclosed ternary code sequences. 
     FIG. 2 is a diagram using conventional integrated circuits to illustrate one possible implementation of the ternary code sequence encoder. 
    
    
     DESCRIPTION OF THE SPECIFIC EMBODIMENTS 
     FIG. 1 illustrates the signal waveforms for encoding of binary information by two ternary code sequences. The illustrated encoded signal has been waveform integrated to reduce the high frequency spectral components. FIG. 2 shows one selected implementation of an encoder for generating the ternary code sequences based on conventional integrated circuit devices. This implementation is concerned with a binary information encoder whose input format is either a &#34;zero&#34; or &#34;one&#34; state. The encoded output signal of a canonical &#34;zero&#34; form is represented by the sequence +1,0,+1,-1,0,-1 and a &#34;one&#34; is represented by the sequence +1,+1,0,0,-1,-1. 
     The use of such a code can (1) be used to provide timing by using the transition between the plus to minus of the ternary code, (2) provides a carrier detect signal by integrating the energy content within the code signal, (3) avoids repetition of the same code element so that the lowest frequency is dependent on the rate of transmission of the code and not the length of an information &#34;string&#34;, (e.g., all binary elements of one type), (4) summing over the period of either a canonical &#34;one&#34; or &#34;zero&#34; is zero, (5) the energy content within the canonical &#34;zero&#34; and &#34;one&#34; is equal because the number of &#34;1&#39;s&#34; and &#34;0&#39;s&#34; in the canonical &#34;one&#34; and &#34;zero&#34; are equal, and (6) conditions (4) and (5) are substantially satisfied when the encoded signal is waveform integrated to reduce high frequency spectral components. 
     Referring to FIG. 2, a clock oscillator section 11 of the transmitter generates all the timing for the encoder. The clock section 11 consists of a crystal 12, buffer amplifier 13 and a &#34;RC&#34; network 14, 15, 16. The output 41 from the oscillator 11 is buffered by a TTL logic inverter 17 for use as a circuit timing signal clock (on line 18). Data encoding is accomplished by performing a logic OR function on information contained on a digital delay line. This delay line consists of two serial 4-bit shift registers 19, 20 which are preset by the output signal (on line 21) from gate 22. The shift registers 19, 20 are held in a preset mode until the request-to-send signal 23 and the output signal 24 of the sixth bit of the delay line from register 20 are both high. Upon release of the preset signal (on line 12) a &#34;zero&#34; bit is shifted sequentially through registers 19, 20. The positive portion (+1,0) of the ternary sequence is generated by gate 25 which performs the logic &#34;OR&#34; function of the tap delay lines from registers 19, 20. Likewise, the negative portion (-1,0) of the ternary sequence is generated by gate 26. The serial input signal (on line 27) is used to select the correct group of gates with inputs from the delay line taps to generate the input signals to NAND gate 25, 26. If the serial input (on line 27) is a &#34;zero&#34; then NOR gates 30, 31, which are selected by output signal (on line 34) from inverter 35 are used to generate the sequence when the serial input (on line 27) is a &#34;one&#34;. The outputs (on line 42, 43) from NOR gates 28, 30 are &#34;OR&#34; together by gate 32 to trigger the encoding of the positive sequence. Likewise, output signals (on line 44, 45) from NOR gates 29, 31 are &#34;OR&#34; by gate 33 to trigger the negative encoding of the sequence. The positive output sequence (on line 37) as well as the negative output sequence (on line 36) from gates 25, 26 are coupled to a transformer 38 which generates the ternary output (on line 40). This coupling is through a &#34;RC&#34; integrator circuit 39 which waveform shapes the ternary output signal (on line 40). 
     A data communication system suitable for use with this invention is further described in a copending application entitled &#34;Communication Broadcast Channel Interface&#34;, (Ser. No. 46,578,) filed on even date herewith, assigned to the assignee of this application, the disclosure of which is hereby incorporated by reference. 
     Various modifications and variations will no doubt occur to those skilled in the various art to which this invention pertains. For example, the particular implementation of the concepts discussed above may be varied from that disclosed herein. The notations +1,0,-1 are used to denote three unique states and need not necessarily correspond to positive, zero and negative voltages. These and all other variations which basically rely on the teachings through which this disclosure has advanced the art are properly considered with the scope of this invention as defined by the appended claims.