- 2072 Kartik (CS II) · 4 marks
Short note: Line codes
Short answer
Line coding converts binary data into electrical pulses for baseband transmission. Desired properties include no DC, small bandwidth, self-clocking, and noise immunity. Common codes: Unipolar NRZ (simple, has DC), Polar NRZ, RZ, AMI (alternating pulses, no DC), and Manchester (self-clocking, double bandwidth).
Write a short note on line codes.
Line coding is the conversion of a binary data sequence into a digital electrical waveform (pulse pattern) suitable for transmission over a baseband channel such as a wire or cable.
Desired properties of a line code:
- No DC component and little low-frequency content (for AC-coupled lines and transformers).
- Small bandwidth.
- Enough transitions for clock (timing) recovery, even in long runs of 0s or 1s.
- Some error detection ability.
- Good noise immunity (low error probability for the given power) and transparency to any data pattern.
Common line codes:
| Code | Rule | Notes |
|---|---|---|
| Unipolar NRZ | 1 → , 0 → 0 | Simple; has DC, poor timing |
| Polar NRZ | 1 → , 0 → | Better noise immunity; DC for unequal 1s and 0s |
| Unipolar/Polar RZ | Pulse for half bit only | Edges each bit; double bandwidth |
| AMI (bipolar) | 0 → 0, 1s alternate ± | No DC; detects single errors; long 0 runs lose timing |
| Manchester | 1 → +/−, 0 → −/+ | Self-clocking, no DC; double bandwidth (Ethernet) |
Example for data 101100:
bits 1 0 1 1 0 0
Unipolar NRZ:
+V |‾‾‾‾ ‾‾‾‾‾‾‾‾
0 | ---- --------
Polar NRZ:
+V |‾‾‾‾ ‾‾‾‾‾‾‾‾
0 |
-V | ____ ________
AMI (bipolar NRZ):
+V |‾‾‾‾ ‾‾‾‾
0 | ---- --------
-V | ____
Manchester:
+V |‾‾ ‾‾‾‾ ‾‾ ‾‾ ‾‾
0 |
-V | ____ __ ____ __
Variants such as HDB3 and B8ZS replace long zero runs in AMI to keep timing.
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- Definitions of unipolar, polar, bipolar, RZ, Manchester codes · Communication Systems, chapter 6 · asked 2×
- Line coding 1011001010 (polar NRZ, polar RZ, Manchester, AMI) · Communication Systems, chapter 6 · asked 8×
- Line coding 1001001101 (polar NRZ, polar RZ, Manchester, AMI) · Communication Systems, chapter 6 · asked 8×
- Line coding 1001101101 (unipolar NRZ, polar RZ, AMI, Manchester) · Communication Systems, chapter 6 · asked 8×
- Line coding 1101010111 (polar NRZ, polar RZ, Manchester, AMI) · Communication Systems, chapter 6 · asked 8×
- Line coding 10110101 (polar NRZ, unipolar RZ, AMI, Manchester) · Communication Systems, chapter 6 · asked 8×
- Encode 1010011001 with five line codes · Data Communication, chapter 5
- Encode 10110001110 with five line codes · Data Communication, chapter 5
- Line coding and NRZ, RZ, AMI · Telecommunications, chapter 3