Line Block Coding
Line Block Coding
Digital Transmission
of Digital Data:
Line and Block Coding,
Digital Transmission Modes
Required reading:
Garcia 3.6
digital
data
low-pass channel
(digital signal)
digital
data
DC
Two signal levels, two data levels.
56 kbps
0.0178 ms
Multilevel
Multilevel
uses only one non-zero
voltage level (0 and +)
Polar Line Coding uses two non-zero voltage level for represent.
of two data levels - one positive & one negative
DC-problem alleviated
NRZ-level
NRZ-invert
Data is
represented
by signal level.
Logical 1 is
represented
by change in
signal level.
NRZ-I is better than NRZ-L, but it still does not provide complete synchronization.
To ensure complete synchronization, there must be a signal change for each bit.
perfect synchronization
10
perfect synchronization
11
0 = transition, 1 = no transition
perfect synchronization
fine for long runs of 1s, but wastes bandwidth for long runs of 0-s
12
Bipolar Line Coding uses two non-zero and zero voltage level
for representation of two data levels
13
14
Block Coding
Block Coding unlike line codes which operate on a stream of
information bits, block codes operate on block
of information bits
Example:
substitute m information bits
with n (new) well-chosen bits
that do not have more than
three consecutive 0s and 1s
(easy to synchronize with any
of the line coding schemes)
If one or more bits is changed so
that if one of the unused 5-bit
blocks is received receiver
can easily detect the error.
15
The 5-bit codes are normally line coded using NRZ-invert (longer sequences
of 1 are tolerated)!!!
The selection of the 5-bit code is such that each code contains no more than
one leading 0 and no more than two trailing 0s.
Therefore, when these 5-bit codes are sent in sequence, no more than three
consecutive 0s are encountered.
Data
Code
Data
Code
0000
11110
1000
10010
0001
01001
1001
10011
0010
10100
1010
10110
0011
10101
1011
10111
0100
01010
1100
11010
0101
01011
1101
11011
0110
01110
1110
11100
0111
01111
1111
11101
16
17
r = data rate / signal rate ratio between data & signal rate
Signal rate observed in case of depends on N [bps], 1/r [bit/pulse],
a particular data-bit stream:
and the actual data pattern
signal rate for a pattern of all 1-s or
all 0-s may be different from that for
a patter of alternating 1-s and 0-s
1
S = c N [pulses/se c]
r
case factor
Answer:
Caverage = 0.5
1 1
1
S = c N = 100,000 = 50,000 [pulses/se c] = 50 [kbaud]
r 2
1
18
19
Exercise
1. Pulse rate is always _______________ the bit rate.
(a) greater than
(b) less than
(c) greater than or equal to
(d) less than or equal to
2. Which encoding type always has a nonzero average amplitude?
(a) unipolar
(b) polar
(c) bipolar
(d) all the above
3. Which of the following encoding methods does not provide for synchronization.
(a) NRZ-L
(b) RZ
(c) NRZ-I
(d) Manchester
4. Block coding can help in _______________ at the receiver.
(a) synchronization
(b) error detection
(c) attenuation
(d) (a) and (b)
20