- 2064 Poush (old course) · 10 marks
Short note: Line coding principles in PCM
Short answer
Line coding transforms PCM bits into a waveform suitable for transmission. Requirements include zero DC, sufficient transitions for clock recovery, narrow bandwidth, and error detection via violations. Unipolar NRZ and RZ have DC, AMI fails on long zeros. HDB3 and B8ZS substitute zero runs with violation patterns to guarantee pulse density while retaining AMI's advantages.
Write a short note on line coding principles in PCM system.
Line coding is the conversion of the binary PCM bit stream into an electrical waveform (pulse pattern) suitable for transmission over the cable and through regenerative repeaters. A plain on–off signal has DC, loses timing on long runs and gives no error check, so a line code is always used.
Requirements of a good line code
- No DC component: lines are coupled through transformers and capacitors (and carry DC power for repeaters), so the signal must have no DC and little low-frequency energy.
- Timing (clock) content: regenerative repeaters extract the clock from the transitions of the received signal; there must be enough transitions whatever the data.
- Small bandwidth: the spectrum should be narrow to reduce attenuation and crosstalk on the cable.
- Error monitoring: the code should have redundancy so that errors can be detected in service (e.g. bipolar violations).
- Transparency: any data pattern, including long runs of 0s or 1s, must pass without loss of timing.
- Simple, low-cost coding and decoding.
Common line codes
data: 1 0 1 1 0 0 0 0
+---+ +-------+
NRZ-L | | | |
(unipol) + +---+ +--------------- 0
+-+ +-+ +-+
RZ | | | | | |
(unipol) + +-----+ +-+ +----------------- 0
+---+ +---+
AMI | | | |
---+ +---+ + +---+------------ 0
| | (no pulses
+---+ for 0s)
- Unipolar NRZ: 1 = +V, 0 = 0 for the full bit. Simple, but has large DC and no timing in long runs. Not used on lines.
- Polar NRZ: 1 = +V, 0 = −V. DC is zero only for balanced data; poor timing.
- Unipolar RZ: pulse for half a bit for 1s. Has DC, double bandwidth, timing lost on 0-runs.
- Manchester (biphase): a transition in the middle of every bit. Excellent timing and no DC, but needs twice the bandwidth; used in Ethernet, not on PCM trunks.
- Bipolar AMI: 0 = no pulse, 1s alternately + and −. No DC, energy concentrated around , and bipolar violations reveal errors. Its weakness: long runs of zeros give no pulses, so repeaters lose timing.
- HDB3: AMI in which each string of four zeros is replaced by 000V or B00V (chosen so violations alternate). At most three zeros in a row. Standard for E1/E2/E3.
- B8ZS: AMI in which eight zeros are replaced by 000VB0VB. Standard for T1; B3ZS/B6ZS for higher T levels.
- CMI, 4B3T, 2B1Q: used on some interfaces and ISDN lines.
Example HDB3 coding (first pulse +):
| Data | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| AMI | + | 0 | − | + | 0 | 0 | 0 | 0 | − | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | + |
| HDB3 | + | 0 | − | + | 0 | 0 | 0 | +V | − | 0 | 0 | 0 | −V | +B | 0 | 0 | +V | − |
Choice
| Code | DC free | Timing | Bandwidth | Error check | Use |
|---|---|---|---|---|---|
| NRZ | No | Poor | Low | No | Inside equipment |
| Manchester | Yes | Excellent | High | Partly | LAN |
| AMI | Yes | Fails on 0-runs | Low | Yes | Early T1 |
| HDB3 | Yes | Good | Low | Yes | E1–E3 |
| B8ZS | Yes | Good | Low | Yes | T1 |
Thus PCM lines use bipolar codes with zero substitution (HDB3, B8ZS), which keep AMI's low bandwidth and zero DC while guaranteeing clock content.
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- Line coding in PCM and the right technique · Telecommunications, chapter 3
- Line coding and NRZ, RZ, AMI · Telecommunications, chapter 3
- Pulse stuffing and complete TDM PCM system · Telecommunications, chapter 3
- PCM switching and three-stage crosspoints · Telecommunications, chapter 4
- B8ZS line coding · Data Communication, chapter 5 · asked 2×
- HDB3 (HD3S) line coding · Data Communication, chapter 5 · asked 2×
- Line coding waveforms for 1101110111 · Data Communication, chapter 5
- Line coding: polar RZ and bipolar AMI · Data Communication, chapter 5