NRZ, Manchester and PAM4 waveforms

Line coding

NRZ, Manchester and PAM4

Two bit patterns, 1 1 0 1 0 0 and 1 0 1 0 1 0 1 0, each drawn three ways on one time axis with the clock above, to show what each scheme puts on the wire.

Bit patterns1 1 0 1 0 0, then 1 0 1 0 1 0 1 0
NRZThe bit is the level
ManchesterThe bit is the direction of the mid-bit edge
PAM4Two bits are one of four levels
110100bitClockone cycle per bitHLNRZlevel = bit101 1: no edge between them0 1 → fastest: 1 cycle per 2 bits = ½ bit rateManchesterIEEE 802.3HL↑ 1↑ 1↓ 0↑ 1↓ 0↓ 0mid-bit edge = the data (one in every bit: self-clocking)boundary edge = set-up only, no informationPAM42 bits per symbol+3 = 10+1 = 11−1 = 01−3 = 00symbol: 11 → +1symbol: 01 → -1symbol: 00 → -3each symbol lasts 2 bit-times · Gray order: 00, 01, 11, 10 from bottom to top
One time axis for all four rows. Dots mark where the receiver samples: the middle of each bit for NRZ, the mid-bit edge for Manchester, the middle of each two-bit symbol for PAM4.

NRZ

The line holds high for a 1 and low for a 0 for the whole bit. Two equal bits in a row produce a flat line with no edge, so long runs give the receiver nothing to lock its clock to. The fastest pattern, alternating 1 and 0, completes one cycle every two bits: its frequency is half the bit rate (the Nyquist frequency).

Manchester

Every bit has an edge in its middle: rising for 1, falling for 0. That edge is the data. When two equal bits follow each other, the line must also flip at the boundary between them to be ready for the next middle edge; those boundary edges (amber) carry no information. Because there is an edge in every bit, the receiver can recover the clock from the data, and every bit is half high and half low, so the average stays at zero. The cost: a run of equal bits toggles every half-bit, a full cycle per bit, so it needs twice NRZ's bandwidth.

PAM4

The bits are taken in pairs: 11, 01, 00. Each pair picks one of four levels, held for two bit-times. This is the scheme that genuinely carries two bits per symbol. NRZ and Manchester both carry one bit per bit-time; Manchester just switches more often.

The alternating pattern: 1 0 1 0 1 0 1 0

The same three schemes behave very differently on 10101010, which is why this pattern is used to test links.

10101010bitClockone cycle per bitHLNRZlevel = bit101 0 = one full cycleedge every bit: the fastest NRZ pattern, ½ bit rateManchesterIEEE 802.3HLno boundary edges: mid-bit edges only, also ½ bit rate↑ 1↓ 0↑ 1↓ 0↑ 1↓ 0↑ 1↓ 0mid-bit edge = the data (one in every bit: self-clocking)boundary edge = set-up only, no informationPAM42 bits per symbol+3 = 10+1 = 11−1 = 01−3 = 00symbol: 10 → +3symbol: 10 → +3symbol: 10 → +3symbol: 10 → +3every pair is 10 → +3: a flat line, no edges at alleach symbol lasts 2 bit-times · Gray order: 00, 01, 11, 10 from bottom to top
The alternating pattern. NRZ toggles every bit; Manchester toggles once per bit (no boundary edges); PAM4 sees the pair 10 four times and sends one constant level.

Comparison

SchemeBits per symbolFastest edge rateHighest frequency
NRZ1one edge per bit (1010…)½ × bit rate
Manchester1one edge per half-bit (1111… or 0000…)1 × bit rate
PAM42one edge per symbol½ × symbol rate (¼ × bit rate)

More on each scheme, with spectra and block codes, in the Line Coding Primer.