Professional Documents
Culture Documents
CHULALONGKORN University
Lecture 1:
Line Codes
(based on communication systems by Simon Haykin & Michael Moher)
2182370 Introduction to Digital Communications
2
Line Code Examples
1 0 1 1 0 0 0 1
A
Unipolar NRZ 0
A
Unipolar RZ 0
A
Polar NRZ 0
-A
A
Polar RZ 0
-A
Bipolar NRZ A
0
(AMI-NRZ) -A
Bipolar RZ A
0
(AMI-RZ) -A
Manchester A
0
(Split-phase) -A 3
Line Coding Requirements
4
Source: https://web.stanford.edu/class/ee179/lectures/notes14.pdf
Line Codes
5
Unipolar
Unipolar Nonreturn-to-Zero (NRZ)
▪ Symbol 1 is represented by transmitting a pulse of
amplitude A for the duration of the symbol, and
symbol 0 is represented by switching off the pulse.
6
Unipolar & Polar
1 0 1 1 0 0 0 1
A
Unipolar NRZ 0
A
Unipolar RZ 0
A
Polar NRZ 0
-A
A
Polar RZ 0
-A
7
Polar
Polar
▪ Symbols 1 and 0 are represented by transmitting
pulses of amplitude +A and –A respectively.
▪ For RZ, each pulse lasts only half-symbol width.
▪ Relatively easy to generate and more power-efficient
than its unipolar counterpart.
8
Bipolar
Bipolar
▪ Use three amplitude levels 0, - A, A.
▪ -A and A are used alternatively for symbol
1, while no pulse is used for symbol 0.
▪ For RZ, each pulse lasts only half-symbol
width.
▪ Also known as Alternate Mark Inversion
(AMI)
9
Bipolar and Split-Phase (Manchester)
1 0 1 1 0 0 0 1
Bipolar NRZ A
0
(AMI-NRZ) -A
Bipolar RZ A
0
(AMI-RZ) -A
Manchester A
0
(Split-phase) -A
10
Split-Phase (Manchester Code)
12
Power Spectra of Line Codes
2 1
S x ( f ) = | G( f ) |
Tb
R
m =−
A (m) exp(− j 2 mfTb ) (9.7)
13
Power Spectra of Line Codes
Unipolar Bipolar
Polar Manchester
A, binary 1 A, binary 1
an = an =
− A, binary 0 − A, binary 0
14
Power Spectra of Line Codes
Unipolar Bipolar
t t
g (t ) = g (t ) =
Tb Tb
Polar Manchester
t t + Tb / 4 t − Tb / 4
g (t ) = g (t ) = −
Tb b T / 2 b T / 2
15
Unipolar NRZ
▪ For m≠0,
1 1 1 1 A2
RA ( m ) = E an an −m = (0)(0) + (0)( A) + ( A)(0) + ( A)( A) =
4 4 4 4 4
16
Unipolar NRZ
t
A 2
❖ Since g (t ) =
2 , m = 0 Tb
RA ( m) = 2
A , m0 ❖ Then G( f ) = Tbsinc( fTb )
4
4 4 m =−
17
Unipolar NRZ
4
2
sinc ( fTb )
Tb
f −
n =− Tb
and recognize that the since function sinc(fTb) has nulls
at f = 1/ Tb , 2 / Tb , , we may simplify the expression
as
A2Tb A2
Sx ( f ) = sinc 2 ( fTb ) + ( f )
4 4
18
Unipolar NRZ
Waste of power due to the transmitted DC level.
Long symbols of 0’s can cause loss of
synchronization.
1 0 1 0 0 0 0 1
A
0
1
For Polar NRZ, P(an = − A) = P (an = A) =
2
For m=0,
For m≠0,
1 1 1 1
RA (m) = E an an −m = ( − A)( − A) + ( − A)( A) + ( A)( − A) + ( A)( A) = 0
4 4 4 4
20
Polar NRZ
t
❖ Since g (t ) =
A2 , m = 0 Tb
RA ( m ) =
0, m0
❖ Then G( f ) = Tbsinc( fTb )
S x ( f ) = A2Tbsinc 2 ( fTb )
21
Polar NRZ
Long symbols of 1’s or 0’s can cause loss of
synchronization, see example below.
1 0 1 0 0 0 0 1
A
0
-A
A2 / 2, m=0
RA ( m ) = − A2 / 4, m = 1
0, otherwise
Bipolar NRZ
t
A2 / 2, m=0 ❖ Since g (t ) =
RA ( m ) = − A2 / 4, m = 1
Tb
0,
otherwise ❖ Then G( f ) = Tbsinc( fTb )
Bipolar NRZ A
0
(AMI-NRZ) -A
Source: https://web.stanford.edu/class/ee179/lectures/notes14.pdf
Manchester
t + Tb / 4 t − Tb / 4
For Manchester g ( t ) = −
b T / 2 b T / 2
and T T
G ( f ) = b sinc( fTb / 2)exp( j fTb / 2) − b sinc( fTb / 2)exp( − j fTb / 2)
2 2
= jTbsinc( fTb / 2)sin( fTb / 2)
A2 , m = 0
RA ( m ) =
0, m0
Using Eq. (9.7),
2 1
S x ( f ) = | G( f ) |
Tb
R
m =−
A (m) exp(− j 2 mfTb )
we obtain
Source: https://web.stanford.edu/class/ee179/lectures/notes14.pdf
Power Spectra of different line codes
Tb Tb
f f
0 1 2 0 1 2
Tb Tb Tb Tb
Tb Tb
f f
0 1 2 0 1 2
Tb Tb Tb Tb
29
RZ Line Codes
t
For RZ line codes, g (t ) =
Tb / 2
A2Tb 1
n
Unipolar RZ Sx ( f ) = sinc ( fTb / 2) 1 +
2
f −
16 Tb n =− Tb
Polar RZ A2Tb
Sx ( f ) = sinc 2 ( fTb / 2)
4
Bipolar RZ A2Tb
Sx ( f ) = sinc 2 ( fTb / 2)sin 2 ( fTb ) 30
4
Power Spectra of RZ Line Codes
Tb Tb
0.1
f f
0 1 2 0 1 2
Tb Tb Tb Tb
Tb
Polar RZ
0.5Tb
f
0 1 2
Tb Tb
32
Source: https://web.stanford.edu/class/ee179/lectures/notes14.pdf
Quiz #1
33
Quiz #2
1
P(an = 0) = P(an = A) = P(an = 2 A) = P(an = 3 A) =
4 34
Quiz #2
Sol.
1
Sx ( f ) = | G( f ) | 2
Tb
R
m =−
A ( m) exp( − j 2 mfTb )
1
=| Tb sinc( fTb ) | 2
Tb
R
m =−
A ( m) exp( − j 2 mfTb )
= Tb sinc ( fTb ) RA (0) exp( − j 2 mfTb ) + RA (m) exp( − j 2 mfTb )
2
m =− , m 0
= Tb sinc ( fTb ) 3.5 A + 2.25 A exp( − j 2 mfTb )
2 2 2
m =− , m 0
= Tb sinc ( fTb ) 1.25 A + 2.25 A2 exp( − j 2 mfTb )
2 2
m =−
1
n
= 1.25 A Tb sinc ( fTb ) + 2.25 A Tb sinc ( fTb )
2 2 2 2
f −
Tb n =− Tb
= 1.25 A2Tb sinc 2 ( fTb ) + 2.25 A2 ( f )
36
Quiz #2
5 A2Tb 9 A 2
Sx ( f ) = sinc 2 ( fTb ) + ( f )
4 4
Compared to Unipolar
A2Tb A2
Sx ( f ) = sinc 2 ( fTb ) + ( f )
4 4
37
References
❖ สุวิทย์ นาคพีระยุทธ และคณะ หลักการไฟฟ้าสื่อสาร พิมพ์ครั้งที่ 3 สำนักพิมพ์แห่ง
จุฬำลงกรณ์มหำวิทยำลัย 2558
❖ Simon Haykin. Communication Systems. 3rd Edition. John Wiley & Sons, Inc. 1994.
❖ Simon Haykin. Communication Systems. 4th Edition. John Wiley & Sons, Inc. 2001.
❖ Simon Haykin. An Introduction to Analog and Digital Communications. John Wiley & Sons,
Inc. 1989.
❖ Wayne Tomasi. Electronic Communications Systems. Prentice-Hall International, Inc., 1998.
❖ William Turin. Digital Transmission Systems : Performance Analysis and Modeling. 2nd
Edition. McGraw-Hill Companies, Inc. 1999.
❖ R. E. Ziemer and W. H. Tranter. Principles of Communications : Systems, Modulation, and
Noise. 4th Edition. John Wiley & Sons, Inc. 1995.
❖ Rodger E. Ziemer and Roger L. Peterson. Introduction to Digital Communications. 2nd
Edition. Prentice Hall, Inc. 2001.
❖ Rodger E. Ziemer and William H. Tranter. Principles of Communications : Systems
Modulation and Noise. John Wiley & Sons, Inc. 2002.