ArticleslgStudy

computer science

Manchester code

Manchester code is a computer 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 Manchester code rather than just read about it. In short: In telecommunications and data storage, Manchester code (also known as phase encoding, or bi-phase code) is a line code in which the encoding of each data bit is either low then high, or high then low, for equal time. It is a self-clocking signal with no DC component.

Manchester code — main illustration
Manchester code — illustration

Key takeaways

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

Reference excerpt

In telecommunications and data storage, Manchester code (also known as phase encoding, or bi-phase code) is a line code in which the encoding of each data bit is either low then high, or high then low, for equal time. It is a self-clocking signal with no DC component. Consequently, electrical connections using a Manchester code are easily galvanically isolated. Manchester code was widely used for magnetic recording on 1600 bpi computer tapes before the introduction of 6250 bpi tapes, which used the more efficient group-coded recording. Manchester code was used in early Ethernet physical layer standards and is still used in consumer IR protocols, RFID and near-field communication. It was and still is used for uploading commands to the Voyager spacecraft.

History Manchester code derives its name from its development at the University of Manchester, where the coding was used for storing data on the magnetic drums of the Manchester Mark 1 computer. The code was invented by Professor F.C. Williams and first implemented by G.E. Thomas, Williams' research student. In April 2026 an IEEE Milestone was dedicated to the Manchester Code.

Features Manchester coding is a special case of binary phase-shift keying (BPSK), where the data controls the phase of a square wave carrier whose frequency is the data rate. Manchester code ensures frequent line voltage transitions, directly proportional to the clock rate; this helps clock recovery. The DC component of the encoded signal is not dependent on the data and therefore carries no information. Therefore, connections may be inductively or capacitively coupled, allowing the signal to be conveyed conveniently by galvanically isolated media (e.g., Ethernet) using a network isolator—a simple one-to-one pulse transformer which cannot convey a DC component.

Limitations Manchester coding's data rate is only half that of a non-coded signal, which limits its usefulness to systems where bandwidth is not an issue, such as a local area network (LAN). Manchester encoding introduces difficult frequency-related problems that make it unsuitable for use at higher data rates. There are more complex codes, such as 8B/10B encoding, that use less bandwidth to achieve the same data rate but may be less tolerant of frequency errors and jitter in the transmitter and receiver reference clocks.

Encoding and decoding

Manchester code always has a transition at the middle of each bit period and may (depending on the information to be transmitted) have a transition at the start of the period also. The direction of the mid-bit transition indicates the data. Transitions at the period boundaries do not carry information. They exist only to place the signal in the correct state to allow the mid-bit transition.

Conventions for representation of data There are two opposing conventions for the representation of data. The first of these was first published by G. E. Thomas in 1949 and is followed by numerous authors (e.g., Andy Tanenbaum). It specifies that for a 0 bit the signal levels will be low–high (assuming an amplitude physical encoding of the data) – with a low level in the first half of the bit period, and a high level in the second half. For a 1 bit, the signal levels will be high–low. This is also known as Manchester II or Biphase-L code. The second convention is also followed by numerous authors (e.g., William Stallings) as well as by IEEE 802.4 (token bus) and lower speed versions of IEEE 802.3 (Ethernet) standards. It states that a logic 0 is represented by a high–low signal sequence and a logic 1 is represented by a low–high signal sequence. If a Manchester encoded signal is inverted in communication, it is transformed from one convention to the other. This ambiguity can be overcome by using differential Manchester encoding.

Decoding The existence of guaranteed transitions allows the signal to be self-clocking, and also allows the receiver to align correctly; the receiver can identify if it is misaligned by half a bit period, as there will no longer always be a transition during each bit period. The price of these benefits is a doubling of the bandwidth requirement compared to simpler NRZ coding schemes.

Encoding

Encoding conventions are as follows:

Each bit is transmitted in a fixed time (the period). A 0 is expressed by a low-to-high transition, a 1 by a high-to-low transition (according to G. E. Thomas's convention – in the IEEE 802.3 convention, the reverse is true). The transitions which signify 0 or 1 occur at the midpoint of a period. Transitions at the start of a period are overhead and don't signify data.

See also Coded mark inversion Differential Manchester encoding Binary offset carrier modulation

References

Worked examples

Example 1 — a first encounter with Manchester code

Start with the simplest possible case. Write down what Manchester code claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer 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 Manchester code 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 Manchester code 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 Manchester code

In research
Manchester code appears in computer 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 Manchester code 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
Manchester code is common in secondary-school and first-year university syllabi. It links to neighbouring topics Department of Computer Science, University of Manchester, History of computing in the United Kingdom, History of telecommunications in the United Kingdom, so understanding it makes those chapters shorter.
In everyday life
Look for Manchester code 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 “Manchester code” →

How to study Manchester code in 20 minutes

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

Frequently asked questions

What is Manchester code in simple terms?

In telecommunications and data storage, Manchester code (also known as phase encoding, or bi-phase code) is a line code in which the encoding of each data bit is either low then high, or high then low, for equal time. It is a self-clocking signal with no DC component.

Why does Manchester code matter?

Because it connects several computer 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 Manchester code?

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 Manchester code.

Tags

  • Department of Computer Science, University of Manchester
  • History of computing in the United Kingdom
  • History of telecommunications in the United Kingdom
  • Line codes

Keep exploring