Past exam question: 2072 Chaitra, Q5
Open in the Padhaiko appQuestion
Encode the Bit Stream 10110001110 using the following schemes: a) RZ b) NRZ-I c) NRZ-L d) AMI e) Manchester
Solution
Encoding Scheme Rules: Given bit sequence (length ):
Let voltage levels be , , and . Assume starting reference for differential encoding is previous level low ().
- RZ (Return-to-Zero, Unipolar/Bipolar): Bit
1is high () for the first half of the bit period and returns to zero () for the second half. Bit0stays at zero () for the entire period. - NRZ-I (Non-Return-to-Zero Inverted): Transition at the beginning of the bit interval indicates bit
1. No transition indicates bit0. - NRZ-L (Non-Return-to-Zero Level): Standard convention: Bit
0is represented by positive level (), bit1is represented by negative level (). - AMI (Alternate Mark Inversion): Bit
0is represented by zero voltage (). Bit1is represented by alternating positive () and negative () voltage pulses. - Manchester (IEEE 802.3 convention): Bit
0has a low-to-high transition at mid-interval (). Bit1has a high-to-low transition at mid-interval ().
Step-by-Step Level Assignment Table:
| Bit Index | Bit Value | RZ (1st half, 2nd half) | NRZ-I (assume prev ) | NRZ-L (1=, 0=) | AMI (alternating 1s) | Manchester (1st half, 2nd half) |
|---|---|---|---|---|---|---|
| 1 | 1 | |||||
| 2 | 0 | |||||
| 3 | 1 | |||||
| 4 | 1 | |||||
| 5 | 0 | |||||
| 6 | 0 | |||||
| 7 | 0 | |||||
| 8 | 1 | |||||
| 9 | 1 | |||||
| 10 | 1 | |||||
| 11 | 0 |
Waveform Timing Diagrams:
Bit: | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 |
---------------------------------------------------------------------------------
RZ: |+-- | |+-- |+-- | | | |+-- |+-- |+-- | |
| +--|-----| +--| +--|-----|-----|-----| +--| +--| +--|-----|
NRZ-I: |-----+ | |-----+-----+-----+ | |-----+ | |
| +-----+-----+ | | +-----+-----+ +-----+-----+
NRZ-L: | +-----+ | +-----+-----+-----+ | | +-----+
+-----+ +-----+-----+ +-----+-----+-----+
AMI: |+----+ | |+----+ | | | |+----+ | |
| +-----+ | +-----+-----+-----+ | | +-----+
| +-----+ +-----+ +-----+
Manchester:|+-- | +--|+-- |+-- | +--| +--| +--|+-- |+-- |+-- | +--|
| +--+--+ | +--| +--+--+ +--+ +--+ | +--| +--| +--+--+ |Answer:
For bit stream 10110001110 (with initial NRZ-I level and IEEE 802.3 Manchester):
- RZ:
(+0), (00), (+0), (+0), (00), (00), (00), (+0), (+0), (+0), (00) - NRZ-I:
+V, +V, -V, +V, +V, +V, +V, -V, +V, -V, -V - NRZ-L (
1=-V,0=+V):-V, +V, -V, -V, +V, +V, +V, -V, -V, -V, +V - AMI:
+V, 0, -V, +V, 0, 0, 0, -V, +V, -V, 0 - Manchester:
(+-), (-+), (+-), (+-), (-+), (-+), (-+), (+-), (+-), (+-), (-+)