Digital and Analog Transmission
Digital and Analog Transmission
Digital and Analog Transmission
Lecture 3
Digital Transmission Analog Transmission
Spring 2009
Dr. L. Christofi Spring 2009
0. Overview
In this lecture we will cover the following topics:
4. Digital Transmission
4.1 4.2 4.3 4.4 Digital to digital conversion Analog to digital conversion Transmission modes Summary (part 4)
5. Analog Transmission
5.1 Digital to analog conversion 5.2 Analog and digital 5.3 Summary (part 5)
Dr. L. Christofi Spring 2009
1.#
Topics discussed in this section: Line Coding Line Coding Schemes Scrambling
Dr. L. Christofi
Spring 2009
Dr. L. Christofi
Spring 2009
1.#
Dr. L. Christofi
Spring 2009
Dr. L. Christofi
Spring 2009
1.#
Example
A signal has four data levels with a pulse duration of 1ms. Find the Pulse Rate and Bit Rate.
Solution Pulse Rate = 1/1ms=1000 pulses per second Bit Rate = Pulse Rate x log2L =1000 x log24 = 2000bps
Dr. L. Christofi
Spring 2009
Dr. L. Christofi
Spring 2009
1.#
Example
In a digital transmission, the receiver clock is 0.1% faster than the sender clock. How many extra bits per second does the receiver receive if the data rate is 1 kbps? How many if the data rate is 1 Mbps? Solution At 1 kbps, the receiver receives 1000(1+0.001) = 1001 bps instead of 1000 bps.
At 1 Mbps, the receiver receives 1,000,000(1+0.001)= 1,001,000 bps instead of 1,000,000 bps.
Dr. L. Christofi
Spring 2009
Note A self-synchronising digital signal includes timing information in the data being transmitted. This can be achieved if there are transitions in the signal that alert the receiver to the beginning, middle or end of pulse. If the receivers clock is out of synchronisation, these alerting points can reset the clock.
Dr. L. Christofi
Spring 2009
10
1.#
Line coding
Dr. L. Christofi
Spring 2009
11
Dr. L. Christofi
Spring 2009
12
1.#
Dr. L. Christofi
Spring 2009
13
Note In NRZ-L the level of the voltage determines the value of the bit. In NRZ-I the inversion or the lack of inversion determines the value of the bit.
Dr. L. Christofi
Spring 2009
14
1.#
Polar RZ scheme
Polar encoding uses three voltage levels (+ve, zero & ve) In RZ encoding the signal changes during each bit, not between bits: bit 1 = high-to-zero bit 0 = low-to-zero Main disadvantage of RZ encoding is that it requires two signal changes to encode 1 bit => occupies more bandwidth
Dr. L. Christofi
Spring 2009
15
Dr. L. Christofi
Spring 2009
16
1.#
Note In Manchester and differential Manchester encoding, the transition at the middle of the bit is used for synchronization.
Note The minimum bandwidth of Manchester and differential Manchester is 2 times that of NRZ.
Dr. L. Christofi
Spring 2009
17
Dr. L. Christofi
Spring 2009
18
1.#
Dr. L. Christofi
Spring 2009
19
Topics discussed in this section: Pulse Amplitude Modulation Pulse Code Modulation
Dr. L. Christofi
Spring 2009
20
1.#
Dr. L. Christofi
Spring 2009
21
Dr. L. Christofi
Spring 2009
22
1.#
Dr. L. Christofi
Spring 2009
23
Note According to the Nyquist theorem, the sampling rate must be at least 2 times the highest frequency contained in the signal.
Dr. L. Christofi
Spring 2009
24
1.#
Dr. L. Christofi
Spring 2009
25
Example
For an intuitive example of the Nyquist theorem, let us sample a simple sine wave at three sampling rates: fs = 4f (2 times the Nyquist rate), fs = 2f (Nyquist rate), and fs = f (one-half the Nyquist rate). Figure in the next slide shows the sampling and the subsequent recovery of the signal. It can be seen that sampling at the Nyquist rate can create a good approximation of the original sine wave (part a). Oversampling in part b can also create the same approximation, but it is redundant and unnecessary. Sampling below the Nyquist rate (part c) does not produce a signal that looks like the original sine wave.
Dr. L. Christofi Spring 2009
26
1.#
Dr. L. Christofi
Spring 2009
27
Example
Telephone companies use PCM to digitize voice by assuming a maximum frequency of 4000 Hz. The sampling rate therefore is 8000 samples per second.
Dr. L. Christofi
Spring 2009
28
1.#
Example
A complex low-pass signal has a bandwidth of 200 kHz. What is the minimum sampling rate for this signal?
Solution The bandwidth of a low-pass signal is between 0 and f, where f is the maximum frequency in the signal. Therefore, we can sample this signal at 2 times the highest frequency (200 kHz). The sampling rate is therefore 400,000 samples per second.
Dr. L. Christofi
Spring 2009
29
Example
A complex bandpass signal has a bandwidth of 200 kHz. What is the minimum sampling rate for this signal?
Solution We cannot find the minimum sampling rate in this case because we do not know where the bandwidth starts or ends. We do not know the maximum frequency in the signal.
Dr. L. Christofi
Spring 2009
30
1.#
Dr. L. Christofi
Spring 2009
31
Example
We want to digitize the human voice. What is the bit rate, assuming 8 bits per sample?
Solution The human voice normally contains frequencies from 0 to 4000 Hz. So the sampling rate and bit rate are calculated as follows:
Dr. L. Christofi
Spring 2009
32
1.#
Dr. L. Christofi
Spring 2009
33
Example
We have a low-pass analog signal of 4 kHz. If we send the analog signal, we need a channel with a minimum bandwidth of 4 kHz. If we digitize the signal and send 8 bits per sample, we need a channel with a minimum bandwidth of 8 4 kHz = 32 kHz.
Dr. L. Christofi
Spring 2009
34
1.#
35
Asynchronous
Synchronous
Dr. L. Christofi
Spring 2009
36
1.#
Parallel transmission
Dr. L. Christofi
Spring 2009
37
Serial transmission
Dr. L. Christofi
Spring 2009
38
1.#
Asynchronous transmission
Note In asynchronous transmission, we send 1 start bit (0) at the beginning and 1 or more stop bits (1s) at the end of each byte. There may be a gap between each byte. Note Asynchronous here means asynchronous at the byte level, but the bits are still synchronized; their durations are the same.
Dr. L. Christofi Spring 2009
39
Asynchronous transmission
Dr. L. Christofi
Spring 2009
40
1.#
Synchronous transmission
Note In synchronous transmission, we send bits one after another without start or stop bits or gaps. It is the responsibility of the receiver to group the bits.
Dr. L. Christofi
Spring 2009
41
Synchronous transmission
Dr. L. Christofi
Spring 2009
42
1.#
Dr. L. Christofi
Spring 2009
43
Topics discussed in this section: Aspects of Digital-to-Analog Conversion Amplitude Shift Keying Frequency Shift Keying Phase Shift Keying Quadrature Amplitude Modulation
Dr. L. Christofi
Spring 2009
44
1.#
Digital-to-analog conversion
Dr. L. Christofi
Spring 2009
45
Dr. L. Christofi
Spring 2009
46
1.#
Note Bit rate is the number of bits per second. Baud rate is the number of signal elements per second. In the analog transmission of digital data, the Baud Rate = Bit Rate / Number of bits per signal unit
Dr. L. Christofi
Spring 2009
47
Example
An analog signal carries 4 bits per signal element. If 1000 signal elements are sent per second, find the bit rate.
Solution In this case, r = 4, S = 1000, and N is unknown. We can find the value of N from
Dr. L. Christofi
Spring 2009
48
1.#
Example
An analog signal has a bit rate of 8000 bps and a baud rate of 1000 baud. How many data elements are carried by each signal element? How many signal elements do we need? Solution In this example, S = 1000, N = 8000, and r and L are unknown. We find first the value of r and then the value of L.
Dr. L. Christofi
Spring 2009
49
Dr. L. Christofi
Spring 2009
50
1.#
Implementation of ASK
Dr. L. Christofi
Spring 2009
51
Example
We have an available bandwidth of 100 kHz which spans from 200 to 300 kHz. What are the carrier frequency and the bit rate if we modulated our data by using ASK with d = 1? Solution The middle of the bandwidth is located at 250 kHz. This means that our carrier frequency can be at fc = 250 kHz. We can use the formula for bandwidth to find the bit rate (with d = 1 and r = 1).
Dr. L. Christofi
Spring 2009
52
1.#
Example
In data communications, we normally use full-duplex links with communication in both directions. We need to divide the bandwidth into two with two carrier frequencies, as shown in figure below. The figure shows the positions of two carrier frequencies and the bandwidths. The available bandwidth for each direction is now 50 kHz, which leaves us with a data rate of 25 kbps in each direction.
Dr. L. Christofi
Spring 2009
53
Dr. L. Christofi
Spring 2009
54
1.#
Example
We have an available bandwidth of 100 kHz which spans from 200 to 300 kHz. What should be the carrier frequency and the bit rate if we modulated our data by using FSK with d = 1? Solution This problem is similar to Example 5.3, but we are modulating by using FSK. The midpoint of the band is at 250 kHz. We choose 2f to be 50 kHz; this means
Dr. L. Christofi
Spring 2009
55
Dr. L. Christofi
Spring 2009
56
1.#
Dr. L. Christofi
Spring 2009
57
Dr. L. Christofi
Spring 2009
58
1.#
Example
Find the bandwidth for a signal transmitting at 12 Mbps for QPSK. The value of d = 0.
Solution For QPSK, 2 bits is carried by one signal element. This means that r = 2. So the signal rate (baud rate) is S = N (1/r) = 6 Mbaud. With a value of d = 0, we have B = S = 6 MHz.
Dr. L. Christofi
Spring 2009
59
Dr. L. Christofi
Spring 2009
60
1.#
Example
Show the constellation diagrams for an ASK, BPSK, and QPSK signals.
Solution
Dr. L. Christofi
Spring 2009
61
QAM
Dr. L. Christofi
Spring 2009
62
1.#
Dr. L. Christofi
Spring 2009
63
Dr. L. Christofi
Spring 2009
64
1.#
Dr. L. Christofi
Spring 2009
65
In AM radio, the bandwidth of the modulated signal must be twice the bandwidth of the modulating signal.
Dr. L. Christofi Spring 2009
66
1.#
AM band allocation
Dr. L. Christofi
Spring 2009
67
In FM radio, the bandwidth of the modulated signal must be 10 times the bandwidth of the modulating signal.
Dr. L. Christofi Spring 2009
68
1.#
FM band allocation
Dr. L. Christofi
Spring 2009
69
Dr. L. Christofi
Spring 2009
70
1.#
Dr. L. Christofi
71
References
B.A. Forouzan, Data Communications and Networking, 4th edition, McGraw-Hill, 2007
W. Stalling, Local and Metropolitan Area Networks, 6th edition, Prentice Hall, 2000 W. Stallings, Data and Computer Communications, 7th edition, Prentice Hall, 2004
F. Halsall, Data Communications, Computer Networks and Open Systems, 4th edition, Addison Wesley, 1995
Dr. L. Christofi
Spring 2009
72
1.#