CSC 417 L Ecture Two
CSC 417 L Ecture Two
DATA COMMUNICATION
LECTURE TWO:
TOPIC: INTRODUCTION TO WAVES :
Data and Signals
Analog and Digital Data
• To be transmitted, data must be transformed to electromagnetic signals.
• Data can be analog or digital.
• The term analog data refers to information that is continuous;
• Digital data refers to information that has discrete states.
• For example, an analog clock that has hour, minute, and second hands gives
information in a continuous form; the movements of the hands are continuous.
• On the other hand, a digital clock that reports the hours and the minutes will
change suddenly from 8:05 to 8:06.
• Analog data, such as the sounds made by a human voice, take on continuous
values. When someone speaks, an analog wave is created in the air. This can be
captured by a microphone and converted to an analog signal or sampled and
converted to a digital signal.
• Digital data take on discrete values.
• For example, data are stored in computer memory in the form of Os and 1s.
They can be converted to a digital signal or modulated into an analog signal for
transmission across a medium
Analog and Digital Signals
• Like the data they represent, signals can be either
analog or digital.
• An analog signal has infinitely many levels of
intensity over a period of time. As the wave moves
from value A to value B, it passes through and
includes an infinite number of values along its path.
• A digital signal, on the other hand, can have only a
limited number of defined values.
• Although each value can be any number, it is often
as simple as 1 and O.
Comparison of analog and digital signals
Periodic and Nonperiodic Signals
• Both analog and digital signals can take one of two forms: periodic
or non-periodic (sometimes refer to as aperiodic, because the prefix
a in Greek means "non").
• A periodic signal completes a pattern within a measurable time
frame, called a period, and repeats that pattern over subsequent
identical periods. The completion of one full pattern is called a cycle.
• A non-periodic signal changes without exhibiting a pattern or cycle
that repeats over time.
• Both analog and digital signals can be periodic or non-periodic.
• In data communications, we commonly use periodic analog signals
(because they need less bandwidth) and non-periodic digital signals
(because they can represent variation in data)
PERIODIC ANALOG 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.
Sine Wave
• The sine wave is the most fundamental form
of a periodic analog signal. When we visualize
it as a simple oscillating curve, its change over
the course of a cycle is smooth and consistent,
a continuous, rolling flow
• A sine wave can be represented by three
parameters: the peak amplitude, the frequency,
and the phase.
• These three parameters fully describe a sine wave.
• Peak Amplitude : The peak amplitude of a signal is
the absolute value of its highest intensity,
proportional to the energy it carries.
• For electric signals, peak amplitude is normally
measured in volts.
• Period and Frequency:
• Period refers to the amount of time, in seconds,
a signal needs to complete 1 cycle.
• Frequency refers to the number of periods in I s.
Note that period and frequency are just one
characteristic defined in two ways. Period is the
inverse of frequency, and frequency is the
inverse of period, as the following formulas
show.
Sine Wave
• A sine wave refers to the graphical representation of the
general function.
• The sine wave comes with a characteristic “S” shape where it
oscillates above and below 0 in a periodic uniform manner.
• The sine function is a trigonometric function, which is a
mapping from the set of all non-negative real numbers to
the interval [-1,1], i.e., the sine function takes as input any
non-negative real number and gives as output some number
between -1 and 1.
• The sine function and sine waves are used to model periodic
phenomena and processes that follow predictable cyclical
patterns.
Sine Wave
Sine Wave Formula
• S(t)
• where s is the instantaneous amplitude, A is
the peak amplitude, f is the frequency, and T is
the period
ω is the angular frequency of the wave, which is equal to 2π times the frequency f of the
wave, i.e., ω = 2πf
Phase
• The term phase describes the position of the
waveform relative to time O. If we think of the
wave as something that can be shifted
backward or forward along the time axis,
phase describes the amount of that shift. It
indicates the status of the first cycle.
• Phase is measured in degrees or radians [360°
is 2π rad; 1° is 2π/360 rad, and 1 rad is
360/(2π) ].
• A phase shift of 360° corresponds to a shift of
a complete period; a phase shift of 180°
corresponds to a shift of one-half of a period;
and a phase shift of 90° corresponds to a shift
of one-quarter of a period
Composite Signals
• Simple sine waves have many applications in daily life.
• We can send a single sine wave to carry electric energy from one place to another.
• For example, the power company sends a single sine wave with a frequency of 60 Hz
to distribute electric energy to houses and businesses.
• As another example, we can use a single sine wave to send an alarm to a security
center when a burglar opens a door or window in the house.
• In the first case, the sine wave is carrying energy; in the second, the sine wave is a
signal of danger.
• If we had only one single sine wave to convey a conversation over the phone, it
would make no sense and carry no information.
• We would just hear a buzz.
• we need to send a composite signal to communicate data. A composite signal is
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.
Composite Signals cont.
• A composite signal can be periodic or non-
periodic. A periodic composite signal can be
decomposed into a series of simple sine waves
with discrete frequencies (frequencies that
have integer values (1, 2, 3, and so on)).
• A non-periodic composite signal can be
decomposed into a combination of an infinite
number of simple sine waves with continuous
frequencies, frequencies that have real values.
Bandwidth
• The range of frequencies contained in a
composite signal is its bandwidth. The
bandwidth is normally a difference between
two numbers. i.e the difference between the
highest and the lowest frequencies contained
in that signal. For example, if a composite
signal contains frequencies between 1000 and
5000, its bandwidth is 5000 - 1000, or 4000.
Example
• Question
• A periodic signal has a bandwidth of 20 Hz. The
highest frequency is 60 Hz. What is the lowest
frequency?
• Draw the spectrum if the signal contains all
frequencies of the same amplitude.
• Solution
• Let fh be the highest frequency, fz the lowest
frequency, and B the bandwidth. Then B =fh - fz :::::}
20 =60 - it =} .ft =60 - 20=40 Hz
DIGITAL SIGNALS
• information can also be represented by a
digital signal
Bit Rate