HOME

TheInfoList



OR:

In
telecommunications Telecommunication, often used in its plural form or abbreviated as telecom, is the transmission of information over a distance using electronic means, typically through cables, radio waves, or other communication technologies. These means of ...
and
data storage Data storage is the recording (storing) of information (data) in a storage medium. Handwriting, phonographic recording, magnetic tape, and optical discs are all examples of storage media. Biological molecules such as RNA and DNA are con ...
, Manchester code (also known as phase encoding, or PE) is a
line code In telecommunications, a line code is a pattern of voltage, current, or photons used to represent digital data transmission (telecommunications), transmitted down a communication channel or written to a storage medium. This repertoire of signal ...
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 In signal processing, when describing a periodic function in the time domain, the DC bias, DC component, DC offset, or DC coefficient is the mean value of the waveform. A waveform with zero mean or no DC bias is known as a ''DC balanced'' or ''DC ...
. Consequently, electrical connections using a Manchester code are easily galvanically isolated. Manchester code derives its name from its development at the
University of Manchester The University of Manchester is a public university, public research university in Manchester, England. The main campus is south of Manchester city centre, Manchester City Centre on Wilmslow Road, Oxford Road. The University of Manchester is c ...
, where the coding was used for storing data on the magnetic drums of the Manchester Mark 1 computer. Manchester code was widely used for
magnetic recording Magnetic storage or magnetic recording is the storage of data on a magnetized medium. Magnetic storage uses different patterns of magnetisation in a magnetizable material to store data and is a form of non-volatile memory. The information is ...
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 The physical-layer specifications of the Ethernet family of computer network standards are published by the Institute of Electrical and Electronics Engineers (IEEE), which defines the electrical or optical properties and the transfer speed of ...
standards and is still used in
consumer IR Consumer IR, consumer infrared, or CIR is a class of devices employing the infrared portion of the electromagnetic spectrum for wireless communications. CIR ports are commonly found in consumer electronics devices such as television remote cont ...
protocols,
RFID Radio-frequency identification (RFID) uses electromagnetic fields to automatically identify and track tags attached to objects. An RFID system consists of a tiny radio transponder called a tag, a radio receiver, and a transmitter. When tri ...
and
near-field communication Near-field communication (NFC) is a set of communication protocols that enables communication between two electronic devices over a distance of or less. NFC offers a low-speed connection through a simple setup that can be used for the boots ...
. It was and still is used for uploading commands to the Voyager spacecraft.


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 In signal processing, when describing a periodic function in the time domain, the DC bias, DC component, DC offset, or DC coefficient is the mean value of the waveform. A waveform with zero mean or no DC bias is known as a ''DC balanced'' or ''DC ...
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 electronics and telecommunications, jitter is the deviation from true periodicity of a presumably periodic signal, often in relation to a reference clock signal. In clock recovery applications it is called timing jitter. Jitter is a signifi ...
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 representations 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 Differential Manchester encoding (DM) is a line code in digital frequency modulation in which data and clock signals are combined to form a single two-level self- synchronizing data stream. Each data bit is encoded by a presence or absence of ...
.


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 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 file:Cmi.gif, frame, CMI line coding In telecommunication, coded mark inversion (CMI) is a non-return-to-zero (NRZ) line code. It encodes ''zero'' bits as a half bit time of zero followed by a half bit time of one, and while ''one'' bits are encod ...
*
Differential Manchester encoding Differential Manchester encoding (DM) is a line code in digital frequency modulation in which data and clock signals are combined to form a single two-level self- synchronizing data stream. Each data bit is encoded by a presence or absence of ...
* Binary offset carrier modulation


References

{{Bit-encoding Line codes Department of Computer Science, University of Manchester