Lecture 4a Baseband and Data Formating
Lecture 4a Baseband and Data Formating
4
Formatting
5
Formatting of Textual Data (Character Codes)
6
Character Coding (Textual Information)
Example 1:
In ASCII alphabets, numbers, and symbols are encoded using a 7-bit
code
7
M – ary systems
M = 2k
k bits
Symbol set size
•Example
•2 bits = 4 symbols
•M = 22 = 4
16_ary =
M = 16
K = 4
8
Example
•For word USA, develop
coding;
•7-bit ASCII
•16_ary digits
Solution
9
Formatting of Analog Data
To transform an analog waveform into a
form that is compatible with a digital
communication, the following steps are
taken:
1.Sampling
2.Quantization and Encoding
3.Base-band transmission (PCM)
10
From Analog Signal to PCM Digital Code
13
Ideal Sampling
14
Natural Sampling
15
Flat-top Sampling
16
Sampling Rate and Bit Rate
Definition:
Sampling rate or sampling frequency is
defined as the rate at which a signal is
sampled.
17
According to the Nyquist
theorem, the sampling
rate must be at least 2
times the highest
frequency.
18
Example
19
Example
20
Pulse Amplitude Modulation (PAM)
Analog to digital conversion method is
called PAM.
Output of Sampling (natural/S&H) is known as
PAM
Pulse-Amplitude Modulation (PAM)
▫ The amplitude of regularly spaced pulses are varied in
proportion to the corresponding sample values of a
continuous message signal
This technique takes an analog signal,
samples it and generates a series of pulse
based on the results of the sampling.
The method of sampling used in PAM
21
Pulse Amplitude Modulation
22
Pulse Amplitude Modulation
is part of a process of a
popular conversion method
used in digital
communications, i.e.
Pulse Code Modulation
23
Other forms of Pulse Modulations
PDM (Pulse-duration modulation)
Pulse-width or Pulse-length modulation.
The samples of the message signal are used to vary
the duration of the individual pulses.
PDM is wasteful of power
24
Other forms of Pulse Modulations
25
Quantization
• Quantization is a method
of assigning integral
values in a specific
range to sampled
instances.
• Amplitude quantizing:
Mapping samples of a
continuous amplitude
waveform to a finite
set of amplitudes.
26
Quantization
Out
27
PCM
codeword
Quantization example
a
m x(t)
111 3.1867
pl
110it 2.2762 Quant. levels
u
101 1.3657
d
100e 0.4552
010 -1.3657
30
Quantizing by using Sign and Magnitude
32
Note that we can always
change a band-pass signal
to a low-pass signal
before sampling. In this
case, the sampling rate is
twice the bandwidth.
33
Dynamic Range
The number of PCM bits transmitted per
sample is determined by several
variables, which include maximum
allowable input amplitude, resolution,
and dynamic range.
34
Dynamic Range
V
DR
37
Quantization Noise
When reconstructing a quantized signal, there will
be a
difference between this signal and the original.
This is known as the quantization error.
This is equivalent to adding an additional signal to
the
input.
Thus the process of quantization introduces noise
into the system.
This is known as quantization noise.
An important quantity when dealing with noise is
the value of the signal power divided by the noise
power.
38
Quantization Noise
This is named as signal-to-noise ratio (SNR) and
is usually expressed in dB. For a PCM system
quantiser it is known as signal-to-quantization
noise ratio (SQNR), and is given by:
signal power
SQNR 10 10
log quantisation noise
power S
10
10 Nq
log
39
Quantization Noise
40
Nonlinear Encoding
41
Effect of Non-Linear Encoding
42
Summary
signal power S
SQNR 10 10 SQNR (6.02n 1.76)
log
10
quantization noise power log 10
Nq dB
43
Example
46
Encoding
47
Encoding Techniques
48
Analog Data, Digital Signal
Digitization
- Conversion of analog data into digital data
- Digital data can then be transmitted using
code such as Non-Return-Zero-Level (NRZ-L)
- Received digital data can then be converted to
analog signal
- Analog to digital conversion done using a
codec
- Pulse code modulation
- Delta modulation
49
Pulse Code Modulation(PCM) (1)
If a signal is sampled at regular
rate
intervals at
than
a twice the
higher
highest signal frequency, the
samples contain
information of the originalall the
signal.
Voice data limited to below 4000Hz
Require 8000 sample per second
Analog samples (Pulse Amplitude
Modulation, PAM)
Each sample assigned digital value
50
Pulse Code Modulation(PCM) (2)
4 bit system gives 16 levels
Quantized
- Quantizing error or noise
- Approximations mean it is impossible
to fully recover the original sample
5
Example:
1 20 log 128
1 5
6
Resolution
v. Resolution Vnmax vi. Quantization error
2 1 2
2.55 0.02
128 1
0.02V
55
Delta Modulation
Analog input is approximated by a
staircase function
Binary behavior
- Function moves up or down at each
sample interval:
output = ‘1’ for +ve slope and output =‘0’
for –ve slope
56
Delta Modulation
57
Delta Modulation - Operation
58
Delta Modulation - Performance
Good voice reproduction
- PCM - 128 levels (7 bit)
- Voice bandwidth 4khz
- Should be 8000 x 7 = 56 kbps for
PCM
59