In
digital communications, differential coding is a technique used to provide ''unambiguous'' signal reception when using some types of
modulation
In electronics and telecommunications, modulation is the process of varying one or more properties of a periodic waveform, called the ''carrier signal'', with a separate signal called the ''modulation signal'' that typically contains informatio ...
. It makes data to be transmitted to depend not only on the current signal state (or symbol), but also on the previous one.
The common types of modulation that require differential coding include
phase-shift keying
Phase-shift keying (PSK) is a digital modulation process which conveys data by changing (modulating) the phase of a constant frequency reference signal (the carrier wave). The modulation is accomplished by varying the sine and cosine inputs at a ...
and
quadrature amplitude modulation.
Purposes of differential coding
When data is transmitted over twisted-pair wires, it is easy to accidentally insert an extra half-twist in the cable between the transmitter and the receiver. When this happens, the received signal is inverted.
Similarly for
BPSK. To demodulate BPSK, one needs to make a local oscillator ''synchronous'' with the remote one. This is accomplished by a
carrier recovery circuit. However, the integer part of the recovered carrier is ambiguous. There are ''n'' valid but not equivalent phase shifts between the two oscillators. For BPSK, ''n'' = 2; the symbols appear inverted or not.
Differential encoding prevents inversion of the signal and symbols, respectively, from affecting the data.
Assuming that
is a bit intended for transmission and
was the symbol just transmitted, then the symbol to be transmitted for
is
where
indicates
binary or
modulo-2 addition. On the decoding side,
is recovered as
That is,
depends only on a difference between the symbols
and
and not on their values (inverted or not).
There are several different
line codes designed to be polarity insensitive
"Spread spectrum direct sequence"
by Daniel Kraus -- whether the data stream is inverted or not, the decoded data will always be correct.
The line codes with this property include differential Manchester encoding, bipolar encoding, NRZI, biphase mark code, coded mark inversion, and MLT-3 encoding. coding ''
Conventional differential coding
A method illustrated above can deal with a data stream inversion (it is called ''180° ambiguity''). Sometimes it is enough (e.g. if BPSK is used or if other ambiguities are detected by other circuits, such as a Viterbi decoder
A Viterbi decoder uses the Viterbi algorithm for decoding a bitstream that has been
encoded using a convolutional code or trellis code.
There are other algorithms for decoding a convolutionally encoded stream (for example, the Fano algorithm). Th ...
or a frame synchronizer) and sometimes it isn't.
Generally speaking, a ''differential coding'' applies to ''symbols'' (these are not necessary the same symbols as used in the modulator). To resolve ''180° ambiguity'' only, bits are used as these symbols. When dealing with ''90° ambiguity'', pairs of bits are used, and triplets of bits are used to resolve ''45° ambiguity'' (e.g. in 8PSK).
A ''differential encoder'' provides the () operation, a ''differential decoder'' - the () operation.
Both differential encoder and differential decoder are discrete linear time-invariant systems. The former is recursive and IIR, the latter is non-recursive and thus FIR
Firs (''Abies'') are a genus of 48–56 species of evergreen coniferous trees in the family (biology), family Pinaceae. They are found on mountains throughout much of North America, North and Central America, Europe, Asia, and North Africa. The ...
. They can be analyzed as digital filters.
A ''differential encoder'' is similar to an analog integrator
An integrator in measurement and control applications is an element whose output signal is the time integral of its input signal. It accumulates the input quantity over a defined time to produce a representative output.
Integration is an importan ...
. It has an impulse response
In signal processing and control theory, the impulse response, or impulse response function (IRF), of a dynamic system is its output when presented with a brief input signal, called an Dirac delta function, impulse (). More generally, an impulse ...
:
and a transfer function
:
A ''differential decoder'' is thus similar to an analog differentiator
In electronics, a differentiator is a circuit that is designed such that the output of the circuit is approximately directly proportional to the rate of change (the time derivative) of the input. A true differentiator cannot be physically realized, ...
, its impulse response being
:
and its transfer function
:
Note that in binary (modulo-2) arithmetic, addition and subtraction (and positive and negative numbers) are equivalent.
Generalized differential coding
Using the relation is not the only way of carrying out differential encoding. More generally, it can be any function provided that an equation has one and only one solution for any and .
Applications
Differential coding is widely used in satellite and radio relay communications together with PSK and QAM modulations.
Drawbacks
Differential coding has one significant drawback: it leads to error multiplication. That is, if one symbol such as was received incorrectly, two incorrect symbols and would be at the differential decoder's output, see:
and . This approximately doubles the BER
''Ziziphus mauritiana'', also known as Indian jujube, Indian plum, Chinese date, Chinese apple, ber, and dunks is a tropical fruit tree species belonging to the family Rhamnaceae. It is often confused with the closely related Chinese jujube (' ...
at signal-to-noise ratios for which errors rarely occur in consecutive symbols.
Other techniques to resolve a phase ambiguity
Differential coding is not the only way to deal with a phase ambiguity. The other popular technique is to use '' syncwords'' for this purpose. That is, if a ''frame synchronizer'' detects repeated inverted sync-words, it inverts the whole stream. This method is used in DVB-S
Digital Video Broadcasting – Satellite (DVB-S) is the original DVB standard for Satellite Television and dates from 1995, in its first release, while development lasted from 1993 to 1997. The first commercial applications was by Star TV in Asia ...
.
See also
* Phase-shift keying
Phase-shift keying (PSK) is a digital modulation process which conveys data by changing (modulating) the phase of a constant frequency reference signal (the carrier wave). The modulation is accomplished by varying the sine and cosine inputs at a ...
* Satellite modem
External links and references
{{Reflist
* INTELSAT
Intelsat S.A. (formerly INTEL-SAT, INTELSAT, Intelsat) is a multinational satellite services provider with corporate headquarters in Luxembourg and administrative headquarters in Tysons Corner, Virginia, United States. Originally formed as In ...
Earth Station Standard IESS-308
* DVB framing structure, channel coding and modulation for 11/12 GHz satellite services (EN 300 421)
Data transmission