ArticleslgStudy

science

Differential coding

Differential coding is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Differential coding rather than just read about it. In short: In digital communications, differential coding is a technique used to provide unambiguous signal reception when using some types of modulation. It makes transmissible data dependent on both the current and previous signal (or symbol) states.

Differential coding — main illustration
Differential coding — illustration

Key takeaways

  • Differential coding belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Differential coding to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Differential coding from memory before moving on to harder problems.

Reference excerpt

In digital communications, differential coding is a technique used to provide unambiguous signal reception when using some types of modulation. It makes transmissible data dependent on both the current and previous signal (or symbol) states. The common types of modulation that may be used with differential coding include phase-shift keying and quadrature amplitude modulation.

Purposes of differential coding When data is transmitted over balanced lines, it is easy to accidentally invert polarity in the cable between the transmitter and the receiver. 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 xi is a bit intended for transmission and yi−1 was the symbol just transmitted, then the symbol to be transmitted for xi is

where ⊕ indicates binary or modulo-2 addition. On the decoding side, xi is recovered as

That is, xi depends only on a difference between the symbols yi and yi−1 and not on their values (inverted or not). There are several different line codes designed to be polarity insensitive - 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.

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 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 (1) operation, a differential decoder - the (2) 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. They can be analyzed as digital filters. A differential encoder is similar to an analog integrator. It has an impulse response

h(k)={1,if k≥00,if k<0 and a transfer function

H(z)=11−z−1. A differential decoder is thus similar to an analog differentiator, its impulse response being

h(k)={1,if k=0−1,if k=10,otherwise and its transfer function

H(z)=1−z−1. Note that in binary (modulo-2) arithmetic, addition and subtraction (and positive and negative numbers) are equivalent.

Generalized differential coding Using the relation yi−1⊕xi=yi is not the only way of carrying out differential encoding. More generally, it can be any function u=F(y,x) provided that an equation u0=F(y0,x) has one and only one solution for any y0 and u0.

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 yi was received incorrectly, two incorrect symbols xi and xi+1 would be at the differential decoder's output, see: xi=yi⊕yi−1 and xi+1=yi+1⊕yi. This approximately doubles the BER 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.

See also Phase-shift keying Satellite modem

External links and references Intelsat Earth Station Standard IESS-308 DVB framing structure, channel coding and modulation for 11/12 GHz satellite services (EN 300 421)

Illustrations

Differential coding: Another type of differential decoder.
Another type of differential decoder.

Worked examples

Example 1 — a first encounter with Differential coding

Start with the simplest possible case. Write down what Differential coding claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Differential coding before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Differential coding ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Differential coding

In research
Differential coding appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Differential coding in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Differential coding is common in secondary-school and first-year university syllabi. It links to neighbouring topics Data communication, so understanding it makes those chapters shorter.
In everyday life
Look for Differential coding outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Differential coding” →

How to study Differential coding in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Differential coding means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Differential coding out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Differential coding in simple terms?

In digital communications, differential coding is a technique used to provide unambiguous signal reception when using some types of modulation. It makes transmissible data dependent on both the current and previous signal (or symbol) states.

Why does Differential coding matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Differential coding?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Differential coding.

Tags

  • Data communication

Keep exploring