Professional Documents
Culture Documents
5-Line codes
5-Line codes
Analog
Input
Signal
Sample
X
Quantize ADC
XQ
Encode
Xk
Line
Code
x(t) PCM signal
Line codes
1 1 0 1 0 0 1 BINARY DATA
(a) Punched Tape Mark Mark space Mark space space Mark
(hole) (hole) (hole) (hole)
Volts
A
0
(b) Unipolar NRZ
Tb Time
(Non-return to zero)
A
0
(d) Unipolar RZ
(Return to zero)
A
(e) Bipolar RZ 0
-A
A
(f) Manchester NRZ 0
-A
• Self-synchronization.
• The ability to recover timing from the signal itself.
• Long series of ones and zeros could cause a problem.
Eeng 360 7
Unipolar NRZ Line Code
• The unipolar nonreturn-to-zero line code is defined by the
unipolar mapping:
+ A when X k = 1
ak =
0 when X k = 0
• where Xk is the kth data bit.
• In addition, the pulse shape for unipolar NRZ is:
t
p(t ) = NRZ pulse shape
• Where Tb is the bit period.
Tb
+ A when X k = 1
ak =
0 when X k = 0
t
p(t ) = RZ pulse shape
Tb / 2
Long strings of 1’s no longer a problem.
Pulse of half the duration of NRZ
However strings of 0’s still problem.
requires twice the bandwidth!
1 0 1 1 0 1
A
Polar NRZ
Now we can handle
long strings of 0’s, too.
A
Polar RZ
−A
Manchester Line Codes
• Manchester line codes use the antipodal mapping
and the following split-phase pulse shape:
p (t )
t + Tb / 4 t − Tb / 4
p (t ) = −
b T / 2 b T / 2
1 0 1 1 0 1
0 when X k = 0
ak = − A when X k = 1 and last mark → + A
+ A when X k = 1 and last mark → − A
• Also called pseudoternary signalling and alternate mark
inversion (AMI).
• Either RZ or NRZ pulse shape can be used.
1 0 1 1 0 1
A
Bipolar (RZ)
−A
Comparison of Line Codes
• Self-synchronization:
• Manchester codes have built in timing information because
they always have a zero crossing in the center of the pulse.
• Polar RZ codes tend to be good because the signal level
always goes to zero for the second half of the pulse.
• NRZ signals are not good for self-synchronization.
• Error probability:
• Polar codes perform better (are more energy efficient) than
Unipolar or Bipolar codes.
• Channel characteristics:
• We need to find the PSD of the line codes to answer this ...
Power Spectra for Binary Line Codes
➢ PSD can be calculated using the autocorrelation function:
t
➢ A digital signal is represented by s (t ) = an f (t = nTs ) ; f (t ) = for unipolar NRZ
n =− Ts
an and an + k are levels of the data pulses at the n ' th and (n + k )'th symbol positions
Pi Probability of having the ith an an + k product
Eeng 360 14
PSD for Polar NRZ Signaling
Possible levels for the a’s : +A and -A
I
R (k ) = (an an + k )i Pi an and an + k are the level of the pulses at the nth and ( n + k )th symbols
i =1
2
1 1
R (0) = ( an an )i Pi = A2 + (− A) 2 = A2
i =1 2 2
4
For k 0, R(k ) = (an an + k ) Pi = A21/ 4 + ( − A)( A)1/ 4 + ( A)( − A)1/ 4 + ( − A) 21/ 4 = 0
i =1
A2 , k = 0
R polar (k ) =
0, k 0
F( f )
2
sin fTb
2 kfTs
f (t ) = (t / Tb ) F ( f ) = Tb
fTb
Ps ( f ) =
Ts
k =−
R (k ) e
2
sin fTb
PPolar NRZ ( f ) = A Tb
2
fTb
PSD for line codes
Unipolar NRZ
2
A2Tb sin fTb 1
PUni. NRZ ( f ) = 1 + ( f )
4 fTb Tb
Polar NRZ
2
sin fTb
PPolar NRZ ( f ) = A Tb
2
fTb
Bipolar RZ 2
A Tb sin fTb
2
PBipolar RZ ( f ) = sin ( fTb )
2
4 fTb
Manchester
NRZ
2
sin fTb / 2
PManch. NRZ ( f ) = A2Tb sin ( fTb / 2 )
2
fTb / 2