TM SYNCHRONIZATION AND CHANNEL CODING—SUMMARY OF CONCEPT AND RATIONALE4 CONVOLUTIONAL CODES4.1 INTRODUCTIONA rate r=1/n convolutional encoder is a linear finite-state machine with one binary input, noutputs and an m-stage shift register, where m is the memory of the encoder. Such a finitestateencoder has 2 m possible states. The constraint length K of the convolutional code isdefined as K=m+1, and the code is referred to as a (K,1/n) code. In comparison to blockcodes, convolutional codes encode the input data bits continuously rather than in blocks.In general, a rate r=l/n convolutional encoder is a linear finite-state machine with l binaryinputs and n binary outputs. A rate r=l/n code can also be produced by puncturing aconvolutional code of rate r=1/n.4.2 ENCODER FOR THE (7,1/2) RECOMMENDED CODEA (7,1/2) convolutional code selected for space applications in the 1970s was a standoutperformer for its time. Exhaustive search over all convolutional codes with r=1/2 and K≤7found that only this code (not counting a few symmetric equivalents) was able to achieve afree distance d free =10. By comparison, the best (6,1/2) code can only achieve d free =8, and thebest (8,1/2) code can only match the recommended (7,1/2) code’s d free =10. Maximizing thefree distance was an important consideration because a convolutional code’s BER withmaximum likelihood decoding falls off exponentially with d free at low error rates. It was alsoimportant to achieve a good d free at a reasonably low value of constraint length K, becauseevery unit increase in K doubles the number of encoder states and therefore doubles thecomplexity of maximum likelihood decoding. Existing technology at the time this code wasselected allowed maximum likelihood decoding of convolutional codes with constraintlength K=7 but not much higher. Thus the recommended code was an obvious local optimumbased on its d free .Convolutional codes with longer constraint lengths than K=7 were also used in the early daysof space applications, but never standardized. Maximum likelihood decoding of these codeswas infeasible; instead they were decoded by sequential decoding at a significant penalty inperformance.The recommended (7,1/2) code has another feature that makes it useful for spaceapplications: it is transparent. Transparency means that at steady-state, if the input sequenceto the encoder is inverted the output will be inverted also. Similarly, if the input sequence tothe decoder is inverted, at steady-state the output sequence of the decoder will be invertedtoo. This feature is useful because with BPSK modulation there is often a 180-degree phaseambiguity, and the demodulator can produce the inverse of the transmitted symbols evenwhen it is in lock. With a transparent code, when the demodulator produces the inverse of thetransmitted symbols, the decoder produces the inverse of the encoded bits. Since packetizedtelemetry includes various known headers, it is easy to recognize if the decoded bits havebeen inverted and to invert them back if necessary.<strong>CCSDS</strong> 130.1-G-2 Page 4-1 November 2012
TM SYNCHRONIZATION AND CHANNEL CODING—SUMMARY OF CONCEPT AND RATIONALEA diagram of an encoder for the recommended convolutional code of rate 1/2 and K=7 isshown in figure 4-1. The particular encoder structure depends on the manner in which theadders are connected to the shift register. These connections are denoted by a set of vectorsg i = (g i,1 , g i,2 , … , g i,m ) i = 1, 2, … , n (1)where g il = 1 denotes a connection between the ith stage of the shift register and the lth adder,and g il = 0 denotes the absence of a connection. The complete set of the g i s defines the code.INPUTDDDDG 2G 1DDC 1C 212S1OUTPUTNOTES:1.D= SINGLE BIT DELAY.2.3.4.FOR EVERY INPUT BIT, TWOSYMBOLS ARE GENERATED BYCOMPLETION OF A CYCLE FORS1: POSITION 1, POSITION 2.S1 IS IN THE POSITIONSHOWN (1) FOR THE FIRSTSYMBOL ASSOCIATED WITH ANINCOMING BIT.= MODULO-2 ADDER.5.= INVERTER.Figure 4-1: Example of Convolutional Encoder: Constraint Length K=7, Rate 1/2,<strong>CCSDS</strong> Standard Convolutional CodeThe encoder for the <strong>CCSDS</strong> standard code is extremely simple, as shown in figure 4-1. Itconsists of a shift register and some exclusive OR gates that implement the two parity checks.The two checks are then multiplexed into one line. This means that the encoder can be madesmall and that it dissipates very little power. These are good attributes for spacecraft hardware.<strong>CCSDS</strong> 130.1-G-2 Page 4-2 November 2012