Upload
ifra
View
233
Download
0
Embed Size (px)
Citation preview
8/19/2019 Lecture04- Digital and Analog Transmission
1/77
By Dr Mir Yasir Uma
Assistant Professor, MCS, NUS
Computer &
Communication Netw
EE357
8/19/2019 Lecture04- Digital and Analog Transmission
2/77
Lecture
Digital and AnalogTransmission
8/19/2019 Lecture04- Digital and Analog Transmission
3/77
Digital Transmission• Digital Signals
• Line Coding Characteristics & Schemes
• Block Coding
• Sampling / Pulse Code Modulation
Outline for the Lecture
8/19/2019 Lecture04- Digital and Analog Transmission
4/77
Analog Transmission• Aspects of Digital-to-Analog Conversion
• Amplitude Shift Keying
• Frequency Shift Keying
• Phase Shift Keying
• Quadrature Amplitude Modulation• Analog Modulation
Outline for the Lecture
8/19/2019 Lecture04- Digital and Analog Transmission
5/77
•Methods to transmit data digitally
oLine coding
oBlock coding
o Sampling
Digital Transmission
8/19/2019 Lecture04- Digital and Analog Transmission
6/77
6
Digital Signals• Digital – have a limited number of defined values
•
Use binary (0s and 1s) to encode information• Less affected by interference (noise); fewer errors
8/19/2019 Lecture04- Digital and Analog Transmission
7/77
7
Line Coding• Process of converting binary data to a digital signal
8/19/2019 Lecture04- Digital and Analog Transmission
8/77
8
Line Coding Characteristic
•
Signal Level versus Data Level
• Pulse Rate versus Bit Rate
• DC Components
• Self-Synchronization
8/19/2019 Lecture04- Digital and Analog Transmission
9/77
9
Signal Level versus Data Lev• Signal level – number of different values allowed in a signal
•
Data level –
number of symbols used to represent data
8/19/2019 Lecture04- Digital and Analog Transmission
10/77
Signal Level versus Data Lev
10
8/19/2019 Lecture04- Digital and Analog Transmission
11/77
11
Pulse Rate versus Bit Rate• Pulse rate – defines number of pulses per second
o Pulse – minimum amount of time required to transmit a symbol
• Bit rate – defines number of bits per second
When L is the number of data level of the signal
Bit rate = Pulse rate × log 2 L
8/19/2019 Lecture04- Digital and Analog Transmission
12/77
12
DC Components
•
Residual direct-current (dc) components or zero frequencies are uo Some systems do not allow passage of a dc component (such as a transformer); may distort t
create output errors
o DC component is extra energy residing on the line and is useless
• When the voltage level in a digital signal is constant for a while, t
creates very low frequencies, called DC components , that presen
for a system that cannot pass low frequencies
8/19/2019 Lecture04- Digital and Analog Transmission
13/77
13
Self-Synchronization• Digital signal includes timing information in the data being transm
prevent misinterpretation
Lack of synchronization
8/19/2019 Lecture04- Digital and Analog Transmission
14/77
14
Line Coding Schemes
8/19/2019 Lecture04- Digital and Analog Transmission
15/77
15
Unipolar• Simplest method; inexpensive Provides a background/base t
developed techniques
• Uses only one voltage level Almost obsolete• Polarity (+ or -) is usually assigned to binary 1;a 0 is represented by
voltage
8/19/2019 Lecture04- Digital and Analog Transmission
16/77
16
Unipolar
•
Potential problems:o DC component
o Lack of synchronization
8/19/2019 Lecture04- Digital and Analog Transmission
17/77
17
Polar
•
Uses two voltage levels, one positive and one negative• Alleviates DC component
• Variationso Nonreturn to zero (NRZ)
o Return to zero (RZ)
o Manchester
o Differential Manchester
8/19/2019 Lecture04- Digital and Analog Transmission
18/77
18
Nonreturn to Zero (NRZ)• Value of signal is always positive or negative
• NRZ-L (NRZ-Level)o Signal level depends on bit represented; positive usually means 0, negative usually means 1
o Problem : synchronization of long streams of 0s or 1s
• NRZ-I (NRZ-Invert)o Inversion of voltage represents a 1 bit
o 0 bit represented by no change
o Allows for synchronization
8/19/2019 Lecture04- Digital and Analog Transmission
19/77
19
NRZ-L and NRZ-I Encoding
8/19/2019 Lecture04- Digital and Analog Transmission
20/77
20
Return to Zero (RZ)
•
In NRZ-I, long strings of 0s may still be a problem• May include synchronization as part of the signal for both 1s and
• How?o Must include a signal change during each bit
o Uses three values: positive, negative, and zero
o 1 bit represented by positive-to-zero
o 0 bit represented by negative-to-zero
8/19/2019 Lecture04- Digital and Analog Transmission
21/77
21
RZ Encoding
8/19/2019 Lecture04- Digital and Analog Transmission
22/77
8/19/2019 Lecture04- Digital and Analog Transmission
23/77
23
Manchester
•
Uses an inversion at the middle of each bit interval for both syncand bit representation
• Negative-to-positive represents binary 1
• Positive-to-negative represents binary 0
• Achieves same level of synchronization with only two levels of a
8/19/2019 Lecture04- Digital and Analog Transmission
24/77
24
Manchester Encoding
8/19/2019 Lecture04- Digital and Analog Transmission
25/77
25
Differential Manchester
• Inversion at middle of bit interval is used for synchronization
• Presence or absence of additional transition at beginning of interthe bit
• Transition means binary 0; no transition means 1
• Requires two signal changes to represent binary 0 but only one to
8/19/2019 Lecture04- Digital and Analog Transmission
26/77
26
Differential Manchester
8/19/2019 Lecture04- Digital and Analog Transmission
27/77
27
Bipolar Encoding• Uses three voltage levels: positive, negative, and zero
• Zero level represents binary 0; 1s are represented with alternating negative voltages, even when the 1 bits are not consecutive
• Two schemeso Alternate mark inversion (AMI)
o Bipolar n-zero substitution (BnZS)
8/19/2019 Lecture04- Digital and Analog Transmission
28/77
28
Bipolar AMI• Neutral, zero voltage represents binary 0
• Binary 1s represented by alternating positive and negative voltage
8/19/2019 Lecture04- Digital and Analog Transmission
29/77
29
Other Schemes• 2B1Q (two binary, one quaternary) uses four voltage levels
o One pulse can represent 2 bits; more efficient
8/19/2019 Lecture04- Digital and Analog Transmission
30/77
30
Other Schemes• MLT-3 (multi-line transmission, three level) – similar to NRZ-I usin
levels of signals; signal transitions occur at beginning of 1 bit, no tr
beginning of 0
8/19/2019 Lecture04- Digital and Analog Transmission
31/77
31
Block Coding
• Coding method to ensure synchronization and detection of error
• Three steps: division, substitution, and line coding
8/19/2019 Lecture04- Digital and Analog Transmission
32/77
32
Steps in Transformation
Step 1
Step 3
8/19/2019 Lecture04- Digital and Analog Transmission
33/77
33
Transformation Steps
• Step 1: bit stream is divided into groups of m bits
• Step 2: substitute an m-bit code for an n-bit groupo Codes with no more than three consecutive 0s or 1s are used to achieve synchronization
o Since only a subset of blocks are used, if one or more bits are changed and an invalid code is can easily detect the error
• Step 3: line encoding scheme is then used to create the signal
8/19/2019 Lecture04- Digital and Analog Transmission
34/77
34
Common Block Codes
• 4B/5B – every 4 bits of data is encoded into a 5-bit code; NRZ-1 isused for line coding
• 8B/10B – group of 8 bits of data is substituted by a 10-bit code
• 8B/6T – each 8-bit group is substituted with a six-symbol code; u bandwidth since three signal levels may be used
8/19/2019 Lecture04- Digital and Analog Transmission
35/77
35
Figure 4.16 Substitution in block coding
4B/5B encoding
8/19/2019 Lecture04- Digital and Analog Transmission
36/77
36
4B/5B encoding
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
8/19/2019 Lecture04- Digital and Analog Transmission
37/77
37
4B/5B encoding (Continued)
Data Code
Q (Quiet)00000
I (Idle) 11111
H (Halt) 00100
J (start delimiter) 11000
K (start delimiter) 10001
T (end delimiter) 01101
S (Set) 11001
R (Reset) 00111
8/19/2019 Lecture04- Digital and Analog Transmission
38/77
38
Example of 8B/6T encoding
8/19/2019 Lecture04- Digital and Analog Transmission
39/77
39
Sampling
• Analog data must often be converted to digital format (ex: long-d
services, audio)
• Basic Approach is Pulse Code Modulation
• Before that we must know Sampling
• Sampling is process of obtaining amplitudes of a signal at regula
8/19/2019 Lecture04- Digital and Analog Transmission
40/77
8/19/2019 Lecture04- Digital and Analog Transmission
41/77
41
Pulse amplitude modulation has some applic
but i t is not used by itself in data communic
However, it is the f irst step in another very po
conversion method called
pulse code modulation.
Note:
8/19/2019 Lecture04- Digital and Analog Transmission
42/77
42
Pulse Coded Modulation (PC• First quantizes PAM pulses; an integral value in a specific range to
instances is assigned
• Each value is then translated to its 7-bit binary equivalent• Binary digits are transformed into a digital signal using line codin
Figure 4 19 Quantized PAM signal
8/19/2019 Lecture04- Digital and Analog Transmission
43/77
43
Figure 4.19 Quantized PAM signal
Fi 4 20 Q ti i b i i d it d
8/19/2019 Lecture04- Digital and Analog Transmission
44/77
44
Figure 4.20 Quantizing by using sign and magnitude
8/19/2019 Lecture04- Digital and Analog Transmission
45/77
45
Digitization of an Analog Sig
8/19/2019 Lecture04- Digital and Analog Transmission
46/77
46
Sampling Rate: Nyquist Theo
• Accuracy of digital reproduction of a signal depends on number
• Nyquist theorem: number of samples needed to adequately repreanalog signal is equal to twice the highest frequency of the origin
8/19/2019 Lecture04- Digital and Analog Transmission
47/77
47
According to the Nyquist theorem, the sampli
must be at least 2 times the highest f reque
Note:
8/19/2019 Lecture04- Digital and Analog Transmission
48/77
48
8/19/2019 Lecture04- Digital and Analog Transmission
49/77
8/19/2019 Lecture04- Digital and Analog Transmission
50/77
Digital-to-analog conversion
8/19/2019 Lecture04- Digital and Analog Transmission
51/77
Types of digital-to-analog convers
8/19/2019 Lecture04- Digital and Analog Transmission
52/77
5.52
Bit rate is the number of bits per second. Baud rate is thesignal
elements per second.
In the analog transmission of digital data, the baud rate
or equal to the bit rate.
Note
8/19/2019 Lecture04- Digital and Analog Transmission
53/77
Binary amplitude shift keying
8/19/2019 Lecture04- Digital and Analog Transmission
54/77
Binary frequency shift keying (BF
8/19/2019 Lecture04- Digital and Analog Transmission
55/77
Binary phase shift keying (BPSK
1
0
0 1
8/19/2019 Lecture04- Digital and Analog Transmission
56/77
• But phase shift keying is more stable than either amplitude
•shift keying or frequency shift keying.
• So we can create systems that use more than two phase
• angles. What about a system that has 4 phase angles?
• QPSK (Quadrature Phase Shift Keying)
• Phase shifts occur on the 45, 135, 225, and 315 degrees. / 0, 90, 180, 270
QPSK
QPSK
8/19/2019 Lecture04- Digital and Analog Transmission
57/77
QPSK
QPSK
8/19/2019 Lecture04- Digital and Analog Transmission
58/77
QPSK
C f ll i di
8/19/2019 Lecture04- Digital and Analog Transmission
59/77
Concept of a constellation diagra
8/19/2019 Lecture04- Digital and Analog Transmission
60/77
5.60
Quadrature amplitude modulation is a combinaASK and PSK.
Note
8/19/2019 Lecture04- Digital and Analog Transmission
61/77
QAM
8/19/2019 Lecture04- Digital and Analog Transmission
62/77
• Combination of ASK and PSK so that a maximum contrast betwe
signal unit (bit, dibit, tribit, and so on) is achieved• x number of variations in phase and y variations in amplitude
• Number of phase shifts is always larger than number of amplitudto amplitude susceptibility to noise
• QAM is therefore less susceptible to noise than ASK
•Same bandwidth is required for ASK and PSK
QAM
Th 4 QAM d 8 QAM t ll
8/19/2019 Lecture04- Digital and Analog Transmission
63/77
The 4-QAM and 8-QAM constella
Time domain for an 8 QAM sig
8/19/2019 Lecture04- Digital and Analog Transmission
64/77
Time domain for an 8-QAM sig
16 QAM constellation
8/19/2019 Lecture04- Digital and Analog Transmission
65/77
Grey Code Mapping
8/19/2019 Lecture04- Digital and Analog Transmission
66/77
Grey Code Mapping
16 QAM constellation
8/19/2019 Lecture04- Digital and Analog Transmission
67/77
16 QAM constellation
16 QAM constellation
8/19/2019 Lecture04- Digital and Analog Transmission
68/77
16 QAM constellation
16 QAM constellation
8/19/2019 Lecture04- Digital and Analog Transmission
69/77
16 QAM constellation
8/19/2019 Lecture04- Digital and Analog Transmission
70/77
8/19/2019 Lecture04- Digital and Analog Transmission
71/77
Types of analog-to-analog modula
8/19/2019 Lecture04- Digital and Analog Transmission
72/77
Types of analog-to-analog modula
Amplitude Modulation
8/19/2019 Lecture04- Digital and Analog Transmission
73/77
Amplitude Modulation
8/19/2019 Lecture04- Digital and Analog Transmission
74/77
Phase modulation
8/19/2019 Lecture04- Digital and Analog Transmission
75/77
Phase modulation
Conclusion
8/19/2019 Lecture04- Digital and Analog Transmission
76/77
DATA SIGNAL APPROACH
ANALOG DIGITAL ENCODING
DIGITAL DIGITAL ENCODING
ANALOG ANALOG MODULATION
DIGITAL ANALOG MODULATION
Conclusion
DEPENDS ON THE SITUATION AND THE BW REQUIREMENTS, WHICH TO
Credits
8/19/2019 Lecture04- Digital and Analog Transmission
77/77
77
CreditsData Communications and Networking, 3rd edition by Behrouz A. Forouzan. McGraw Hill Pub