ArticleslgStudy

science

Bipolar encoding

Bipolar encoding 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 Bipolar encoding rather than just read about it. In short: In telecommunication, bipolar encoding is a type of return-to-zero (RZ) line code, where two nonzero values are used, so that the three values are +, −, and zero. Such a signal is called a duobinary signal.

Bipolar encoding — main illustration
Bipolar encoding — illustration

Key takeaways

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

Reference excerpt

In telecommunication, bipolar encoding is a type of return-to-zero (RZ) line code, where two nonzero values are used, so that the three values are +, −, and zero. Such a signal is called a duobinary signal. Standard bipolar encodings are designed to be DC-balanced, spending equal amounts of time in the + and − states. The reason why bipolar encoding is classified as a return to zero (RZ) is that when a bipolar encoded channel is idle the line is held at a constant "zero" level, and when it is transmitting bits the line is either in a +V or -V state corresponding to the binary bit being transmitted. Thus, the line always returns to the "zero" level to denote optionally a separation of bits or to denote idleness of the line.

Alternate mark inversion One kind of bipolar encoding is a paired disparity code, of which the simplest example is alternate mark inversion. In this code, a binary 0 is encoded as zero volts, as in unipolar encoding, whereas a binary 1 is encoded alternately as a positive voltage or a negative voltage. The name arose because, in the context of a T-carrier, a binary '1' is referred to as a "mark", while a binary '0' is called a "space".

Voltage build-up The use of a bipolar code prevents a significant build-up of DC, as the positive and negative pulses average to zero volts. Little or no DC-component is considered an advantage because the cable may then be used for longer distances and to carry power for intermediate equipment such as line repeaters. The DC-component can be easily and cheaply removed before the signal reaches the decoding circuitry.

Synchronization and zeroes Bipolar encoding is preferable to non-return-to-zero whenever signal transitions are required to maintain synchronization between the transmitter and receiver. Other systems must synchronize using some form of out-of-band communication, or add frame synchronization sequences that don't carry data to the signal. These alternative approaches require either an additional transmission medium for the clock signal or a loss of performance due to overhead, respectively. A bipolar encoding is an often good compromise: runs of ones will not cause a lack of transitions. However, long sequences of zeroes remain an issue. Long sequences of zero bits result in no transitions and a loss of synchronization. Where frequent transitions are a requirement, a self-clocking encoding such as return-to-zero or some other more complicated line code may be more appropriate, though they introduce significant overhead. The coding was used extensively in first-generation PCM networks, and is still commonly seen on older multiplexing equipment today, but successful transmission relies on no long runs of zeroes being present. No more than 15 consecutive zeros should ever be sent to ensure synchronization. There are two popular ways to ensure that no more than 15 consecutive zeros are ever sent: robbed-bit signaling and bit stuffing. T-carrier uses robbed-bit signaling: the least-significant bit of the byte is simply forced to a "1" when necessary. The modification of bit 7 causes a change to voice that is undetectable by the human ear, but it is an unacceptable corruption of a data stream. Data channels are required to use some other form of pulse-stuffing, such as always setting bit 8 to '1', in order to maintain a sufficient density of ones. Of course, this lowers the effective data throughput to 56 kbit/s per channel. If the characteristics of the input data do not follow the pattern that every eighth bit is '1', the coder using alternate mark inversion adds a '1' after seven consecutive zeros to maintain synchronisation. On the decoder side, this extra '1' added by the coder is removed, recreating the correct data. Using this method the data sent between the coder and the decoder is longer than the original data by less than 1% on average.

Error detection Another benefit of bipolar encoding compared to unipolar is error detection. In the T-carrier example, the bipolar signals are regenerated at regular intervals so that signals diminished by distance are not just amplified, but detected and recreated anew. Weakened signals corrupted by noise could cause errors, a mark interpreted as zero, or zero as positive or negative mark. Every single-bit error results in a violation of the bipolar rule. Each such bipolar violation (BPV) is an indication of a transmission error. (The location of BPV is not necessarily the location of the original error).

Other T1 encoding schemes

For data channels, in order to avoid the need of always setting bit 8 to 1, as described above, other T1 encoding schemes (Modified AMI codes) ensure regular transitions regardless of the data being carried. In this way, data throughput of 64 kbit/s per channel is achieved. B8ZS is a newer format for North America, where HDB3 is the original line coding type used in Europe and Japan. A very similar encoding scheme, with the logical positions reversed, is also used and is often referred to as pseudoternary encoding. This encoding is otherwise identical.

Historical uses B-MAC, and essentially all family members of the Multiplexed Analogue Components Television Transmission family used Duobinary to encode the digital audio, teletext, closed captioning and selective access for distribution. Because of the way Duobinary was coupled to the NICAM like digital audio subsystems for the MAC family, up to 50% of data reduction was possible in both Stereo and Mono transmission modes. At least with some data transmission systems, duobinary can perform lossless data reduction though this has seldom been utilized in practice.

See also

MLT-3 encoding Polar encoding

References

Illustrations

Bipolar encoding: The number 1337, as represented in bipolar encoding, known as AMI (Alternate mark inversion), where : .mw-parser-output .texhtml{font-family:"Nimbus Roman No9 L","Times New Roman",Times,serif;font-size:118%;line-height:1;font-variant-numeric:lining-nums tabular-nums;font-kerning:none}.mw-parser-output .texhtml .texhtml{font-size:100%}.mw-parser-output .texhtml-big{font-size:165%}.mw-parser-output .mvar{font-style:italic}@media(min-width:420px){.mw-parser-output .texhtml{white-space:nowrap}}133710 = 101001110012
The number 1337, as represented in bipolar encoding, known as AMI (Alternate mark inversion), where : .mw-parser-output .texhtml{font-family:"Nimbus Roman No9 L","Times New Roman",Times,serif;font-size:118%;line-height:1;font-variant-numeric:lining-nums tabular-nums;font-kerning:none}.mw-parser-output .texhtml .texhtml{font-size:100%}.mw-parser-output .texhtml-big{font-size:165%}.mw-parser-output .mvar{font-style:italic}@media(min-width:420px){.mw-parser-output .texhtml{white-space:nowrap}}133710 = 101001110012

Worked examples

Example 1 — a first encounter with Bipolar encoding

Start with the simplest possible case. Write down what Bipolar encoding 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 Bipolar encoding 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 Bipolar encoding 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 Bipolar encoding

In research
Bipolar encoding 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 Bipolar encoding 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
Bipolar encoding is common in secondary-school and first-year university syllabi. It links to neighbouring topics Encodings, Line codes, so understanding it makes those chapters shorter.
In everyday life
Look for Bipolar encoding 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 “Bipolar encoding” →

How to study Bipolar encoding in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Bipolar encoding 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 Bipolar encoding out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Bipolar encoding in simple terms?

In telecommunication, bipolar encoding is a type of return-to-zero (RZ) line code, where two nonzero values are used, so that the three values are +, −, and zero. Such a signal is called a duobinary signal.

Why does Bipolar encoding 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 Bipolar encoding?

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 Bipolar encoding.

Tags

  • Encodings
  • Line codes

Keep exploring