Information Sources and Signals: Asst. Prof. Chaiporn Jaikaeo, PH.D
Information Sources and Signals: Asst. Prof. Chaiporn Jaikaeo, PH.D
2
Analog vs. Digital Signals
To be transmitted, data must be
transformed to electromagnetic signals
Analog signals
have an infinite number of
values in a range
Digital signals
Have a limited number of
values
3
Data and Signals
4
Periodic Signals
A periodic signal completes a pattern within a
timeframe, called a period
A signal x(t) is periodic if and only if
time
5
Sine Waves
Simplest form of periodic signal
signal strength
period
T = 1/f
peak
amplitude
time
7
Varying Sine Waves
3 3
2 2
1 1
0 0
0 0.5 1 1.5 2 2.5 3 0 0.5 1 1.5 2 2.5 3
-1 -1
-2 -2
-3 A = 1, f = 1, = 0 -3 A = 2, f = 1, = 0
3 3
2 2
1 1
0 0
0 0.5 1 1.5 2 2.5 3 0 0.5 1 1.5 2 2.5 3
-1 -1
-2 -2
-3 A = 1, f = 2, = 0 -3 A = 1, f = 1, = /4
8
Sine Signal Characteristics
The frequency can be calculated as the
inverse of the time required for one cycle,
which is known as the period
Examples:
period T = 1 seconds
frequency is 1 / T or 1 Hertz
period T = 0.5 seconds
frequency is 2 Hertz
9
Time and Frequency Units
10
Composite Signals
Consider the signal
1
x ( t ) sin( 2 t ) sin( 2 3 t )
3
1 1 1
0
0 0.5 1 1.5 2 2.5 3
+ 0
0 0.5 1 1.5 2 2.5 3
= 0
0 0.5 1 1.5 2 2.5 3
-0.5 -0.5 -0.5
-1 -1 -1
11
Composite Signals
A mathematician named Fourier Joseph Fourier
(1768-1830)
discovered that
It is possible to decompose a composite signal
into series of sine functions
Each with different frequency, amplitude, and phase
1 1 1
-0.5
0 0.5 1 1.5 2 2.5 3 = 0
-0.5
0 0.5 1 1.5 2 2.5 3 + 0
-0.5
0 0.5 1 1.5 2 2.5 3
-1 -1 -1
12
Time vs. Frequency Domains
signal level signal level
1 1
0 0
2 4 time 2 4 frequency
-1 -1
14
Digital Signals and Signal Levels
15
Example
How many different levels are required if we
want each level to represent n bits?
16
Baud and Bit Rate
Baud How many times a signal changes
per second
Bit rate How many bits can be sent per
time unit (usually per second)
Bit rate is controlled by baud and number of
signal levels
00 00 00
0 0 0 0
01
1 sec 10 10 10 1 sec
1 1 1 1 1 1
11 11 11
Baud = 10 Baud = 10
Bit rate = 10 bps Bit rate = 20 bps 17
Baud and Bit Rate
Relationship between baud, signal levels, and
bit rate is:
Example:
What is the bit rate (in bps) of a 16-level signal
transmitted at 20 baud
18
Transmission Latency
Composed of
Propagation time
Transmission time
Queuing time
Processing time
Entire
message
propagation
time
transmission
time
19
Transmission Latency
Sender Receiver
Propagation time
First bit arrives
Data bits
Last bit leaves Transmission time
Time Time
20
Fourier Analysis of Digital Signals
Digital signals consist of infinite set of sine
waves
+ + + +…
freq
...
Transmission medium
0 f0 3f0 5f0 7f0 9f0 f 0 f0 3f0 5f0 f
t t
22
Line Coding
The process of encoding digital data into
digital signal
Example: Manchester encoding (used in
Ethernet LAN)
23
Synchronization
The electronics at both ends of a medium must
have circuitry to measure time precisely
Easy at low bit rate
Much more difficult at high bit rate
24
Synchronization
Good line coding schemes allow receiver to
synchronize its timing to match the sender's
0 1 0 0 0 1 1 1 1 0 1 0 1
Bad
Good
25
Line Coding Schemes
26
Converting Analog to Digital
Common technique: Pulse Code Modulation (PCM)
27
PCM: Sampling and Quantizing
quantizing
(rounding to nearest integer)
Sampling points
28
PCM: The Whole Picture
sampling interval
30
Nyquist’s Sampling Theorem
32
Data Compression
Data compression refers to a technique
that reduces the number of bits required to
represent data
Lossy - some information is lost during
compression (e.g, JPG, MP3)
Lossless - all information is retained in the
compressed version (e.g., PNG, PCM)
33
Summary
Data and signals
Signal as series of sine waves
Fourier analysis
Bandwidth
Line coding
Analog to digital conversion
PCM
Data compression
34