Lesson 2 - 1 - Analog and Digital
Lesson 2 - 1 - Analog and Digital
3.1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Note
2.2
2.1-1 ANALOG AND DIGITAL
2.3
Analog and Digital Data
▪ Data can be analog or digital.
▪ Analog data are continuous and take
continuous values.
▪ Digital data have discrete states and take
discrete values.
2.4
Analog and Digital Signals
2.5
Figure 2.1.1 Comparison of analog and digital signals
2.6
2.1-2 PERIODIC ANALOG SIGNALS
In data communications, we commonly use periodic
analog signals and nonperiodic digital signals.
Periodic analog signals can be classified as simple or
composite. A simple periodic analog signal, a sine wave,
cannot be decomposed into simpler signals. A composite
periodic analog signal is composed of multiple sine
waves.
Topics discussed in this section:
▪ Sine Wave
▪ Wavelength
▪ Time and Frequency Domain
▪ Composite Signals
▪ Bandwidth
2.7
Figure 2.1.2 A sine wave
2.8
Figure 2.1.3 Two signals with the same phase and frequency,
but different amplitudes
2.9
Note
2.10
Figure 2.1.4 Two signals with the same amplitude and phase,
but different frequencies
2.11
Table 2.1.1 Units of period and frequency
2.12
Example 2.1.1
2.13
Example 2.1.2
Solution
First we change 100 ms to seconds, and then we
calculate the frequency from the period (1 Hz = 10−3
kHz).
2.14
Frequency
• Frequency is the rate of change with respect
to time.
• Change in a short span of time means high
frequency.
• Change over a long span of
time means low frequency.
2.15
Note
2.16
Note
2.17
Figure 2.1.5 Three sine waves with the same amplitude and frequency,
but different phases
2.18
Example 2.1.3
Solution
We know that 1 complete cycle is 360°. Therefore, 1/6
cycle is
2.19
Figure 2.1.6 Wavelength and period
2.20
Figure 2.1.7 The time-domain and frequency-domain plots of a sine wave
2.21
Note
2.22
Example 2.1.7
2.23
Figure 2.1.8 The time domain and frequency domain of three sine waves
2.24
Signals and Communication
◼ A single-frequency sine wave is not
useful in data communications
◼ We need to send a composite signal, a
signal made of many simple sine
waves.
◼ According to Fourier analysis, any
composite signal is a combination of
simple sine waves with different
frequencies, amplitudes, and phases.
2.25
Composite Signals and
Periodicity
◼ If the composite signal is periodic, the
decomposition gives a series of signals
with discrete frequencies.
◼ If the composite signal is nonperiodic, the
decomposition gives a combination of
sine waves with continuous frequencies.
2.26
Example 2.1.4
2.27
Figure 2.1.9 A composite periodic signal
2.28
Figure 2.1.10 Decomposition of a composite periodic signal in the time and
frequency domains
2.29
Example 2.1.5
2.30
Figure 2.11 The time and frequency domains of a nonperiodic signal
2.31
Bandwidth and Signal
Frequency
◼ The bandwidth of a composite signal is
the difference between the highest and
the lowest frequencies contained in that
signal.
2.32
Figure 2.1.12 The bandwidth of periodic and nonperiodic composite signals
2.33
Example 2.1.6
The spectrum has only five spikes, at 100, 300, 500, 700,
and 900 Hz (see Figure 3.13).
2.34
Figure 2.1.13 The bandwidth for Example 2.1.6
2.35
Example 2.1.7
2.36
Figure 2.1.14 The bandwidth for Example 2.1.7
2.37
Example 2.1.8
Solution
The lowest frequency must be at 40 kHz and the highest
at 240 kHz. Figure 2.1.15 shows the frequency domain
and the bandwidth.
2.38
Figure 2.1.15 The bandwidth for Example 3.8
2.39
Example 2.1.9
2.40
Example 2.1.10
2.41
2.1-2 DIGITAL SIGNALS
In addition to being represented by an analog signal,
information can also be represented by a digital signal.
For example, a 1 can be encoded as a positive voltage
and a 0 as zero voltage. A digital signal can have more
than two levels. In this case, we can send more than 1 bit
for each level.
2.43
Example 2.1.16
2.44
Example 2.1.17
2.45
Example 2.1.18
2.46
Example 2.1.19
Solution
The bit rate can be calculated as
2.47
Example 2.1.20
Solution
HDTV uses digital signals to broadcast high quality
video signals. The HDTV screen is normally a ratio of
16 : 9. There are 1920 by 1080 pixels per screen, and the
screen is renewed 30 times per second. Twenty-four bits
represents one color pixel.
2.49
Figure 2.1.18 Baseband transmission
2.50
Note
2.51
Figure 2.1.19 Bandwidths of two low-pass channels
2.52
Figure 2.1.20 Baseband transmission using a dedicated medium
2.53
Note
2.54
Figure 2.1.21 Rough approximation of a digital signal using the first harmonic
for worst case
2.55
Figure 2.1.22 Simulating a digital signal with first three harmonics
2.56
Note
In baseband transmission, the required bandwidth is
In baseband transmission,
proportional the required
to the bit rate;
bandwidth is proportional
if we need to send bits faster, we needto thebandwidth.
more bit rate;
if we need to send bits faster, we need
more bandwidth.
2.57
Table 3.2 Bandwidth requirements
2.58
Example 2.1.22
Solution
The answer depends on the accuracy desired.
a. The minimum bandwidth, is B = bit rate /2, or 500 kHz.
Solution
The maximum bit rate can be achieved if we use the first
harmonic. The bit rate is 2 times the available bandwidth,
or 200 kbps.
2.60
Figure 2.1.23 Bandwidth of a bandpass channel
2.61
Note
2.62
Figure 2.1.24 Modulation of a digital signal for transmission on a bandpass
channel
2.63
Example 2.1.24
2.64
Example 2.1.25
2.65
2.1-4 TRANSMISSION IMPAIRMENT
2.66
Figure 2.1.25 Causes of impairment
2.67
Attenuation
2.68
Measurement of Attenuation
dB = 10log10P2/P1
P1 - input signal
P2 - output signal
2.69
Figure 3.26 Attenuation
2.70
Example 2.1.26
2.72
Example 2.1.28
2.73
Figure 2.1.27 Decibels for Example 2.1.28
2.74
Example 2.1.29
Solution
We can calculate the power in the signal as
2.75
Example 2.1.30
2.76
Distortion
◼ Means that the signal changes its form or shape
◼ Distortion occurs in composite signals
◼ Each frequency component has its own
propagation speed traveling through a medium.
◼ The different components therefore arrive with
different delays at the receiver.
◼ That means that the signals have different phases
at the receiver than they did at the source.
2.77
Figure 2.1.28 Distortion
2.78
Noise
◼ There are different types of noise
◼ Thermal - random noise of electrons in the wire
creates an extra signal
◼ Induced - from motors and appliances, devices
act are transmitter antenna and medium as
receiving antenna.
◼ Crosstalk - same as above but between two
wires.
◼ Impulse - Spikes that result from power lines,
lighning, etc.
2.79
Figure 2.1.29 Noise
2.80
Signal to Noise Ratio (SNR)
2.81
Example 2.1.31
Solution
The values of SNR and SNRdB can be calculated as
follows:
2.82
Example 2.1.32
2.83
Figure 2.1.30 Two cases of SNR: a high SNR and a low SNR
2.84
2.1-5 DATA RATE LIMITS
2.85
Note
2.86
Example 2.1.33
Solution
They match when we have only two levels. We said, in
baseband transmission, the bit rate is 2 times the
bandwidth if we use only the first harmonic in the worst
case. However, the Nyquist formula is more general than
what we derived intuitively; it can be applied to baseband
transmission and modulation. Also, it can be applied
when we have two or more levels of signals.
2.87
Example 2.1.34
2.88
Example 2.1.35
2.89
Example 2.1.36
2.91
Example 2.1.38
This means that the highest bit rate for a telephone line
is 34.860 kbps. If we want to send data faster than this,
we can either increase the bandwidth of the line or
improve the signal-to-noise ratio.
2.92
Example 2.1.39
2.93
Example 2.1.40
2.94
Example 2.1.41
Solution
First, we use the Shannon formula to find the upper
limit.
2.95
Example 2.1.41 (continued)
2.96
Note
2.97
2.1-6 PERFORMANCE
2.100
Example 2.1.43
2.101
Example 2.1.44
Solution
We can calculate the throughput as
Solution
We can calculate the propagation time as
Solution
We can calculate the propagation and transmission time
as shown on the next slide:
2.104
Example 2.1.46 (continued)
2.105
Example 2.1.47
Solution
We can calculate the propagation and transmission
times as shown on the next slide.
2.106
Example 2.1.47 (continued)
2.107
Figure 2.1.31 Filling the link with bits for case 1
2.108
Example 2.1.48
2.109
Figure 2.1.32 Filling the link with bits in case 2
2.110
Note
2.111
Figure 2.1.33 Concept of bandwidth-delay product
2.112