A7 21EEB0B03 NageswaraRao
A7 21EEB0B03 NageswaraRao
A7 21EEB0B03 NageswaraRao
A. NAGESWARRAO– 21EEB0B03
Analog to Digital Conversion
2
Analog to Digital Conversion
The idea of digitizing analog signal started with telephone companies, to provide long
distance services; They digitized the analog signal at the sender; The signal is converted
back to analog at the receiver.
3
1. Sampling (PAM)
6
3. Binary Encoding
- Each quantized samples is translated into equivalent binary
codes .
7
4. Line Encoding
8
Components of PCM Encoder
PCM Block
• Baseband operation
• Transforming continuous time analog signals into discrete time
analog pulses
• Information carried in amplitude of pulses.
• First step in the analog to digital conversion (A/D)
• Pre-cursor to Pulse Code Modulation (PCM)
• Sometimes, PAM signals are used directly for transmission
without making it into PCM
• Two types of PAM
• Gating
• Sample and hold
Pulse Amplitude Modulation (PAM)
Gated signal ws(t) of given original signal bandlimite d signal w(t) (to B hertz)
t kTs 1
ws (t ) w(t ) s (t ) where s (t ) , and f s 2 B
Ts
Demodulation of PAM signal
Let Sample - and - Hold (S/H) signal of given bandlimite d signal w(t) (to B hertz) be ws(t) Ws(f).
S/H PAM is also called the flot top PAM. S/H PAM is created by instantane ously sampling
ws(t) and hold the sampled value for a certain duration before the next sample is taken.
Pulse Code Modulation (PCM) is a special form of A/D conversion. It consists
of sampling, quantizing, and encoding steps. It is widely popular because:
- Used for long time in telephone systems
- Inexpensive electronics exists
- Errors can be corrected during long haul transmission
- Can use time division multiplexing PCM
signal
Effects of Noise
Types of Noise
• Quantizing noise (during A/D conversion)
• Environment noise (e.g., EM interference)
• Filtering noise (low pass filtering at decoder)
output w2(t)
V
-V V
input w1(t)
-V
Region of operation
For M=2n levels, step size :
= 2V /2n = V(2-n+1)
Quantization Error, e
output w2(t)
V
-V V
input w1(t)
-V
Error, e
/2
-/2 input w1(t)
Quantization Error, e
Error is symmetric
around zero. 0
allowed
values input
values
for most time
of time
Nonuniform Quantizer
“Compressing-and-expanding” is called “companding.”
Nonuniform quantizer
••••
Channel
••••
- law compressor
(very popular internatio nally)
w1 (t ) 1
ln 1 w1 (t )
w2 (t )
ln 1
In the U.S., 255 is used.
Line Code
• On the channel, we might want to send binary
numbers directly.
• The resulting bit patterns on the channel might
create a static voltage, which is not desired.
• Use line code to eliminate the average static
voltage.
- Save power
- Save bandwidth (possibly)
1 1 1 1 1
5 volt
average
static voltage
0 volt
0 0 0 0 0 0
Types of Line Code
• Unipolar signaling: 1 = +A volt, 0 = 0 volt
• Polar signaling: 1 = +A volt, 0 = -A volt
• Bi polar signaling: 1 = +A or –A, 0 = 0 volt
(Also called the alternate mark inversion – AMI)
• Manchester signaling:
1 = +A (half duration) followed by –A (half
duration)
0 = -A (half duration) followed by +A (half
duration)
Adaptive Delta Modulation, where the step size is made to vary with the input
Signal.
More efficient than PCM by removing the redundancies in the speech signal.
Adjacent samples of a speech waveform are highly
correlated.
This means that the variance of the difference between adjacent speech
amplitudes is much smaller than the variance of the speech signal itself.
Differences between Delta Modulation and Adaptive Delta Modulation
The differences between adaptive delta modulation and delta modulation are
listed below-
•In Delta Modulation step size is fixed for the whole signal. Whereas in Adaptive
delta modulation, the step size varies depending upon the input signal.
•The slope overload and granular noise errors which are present in delta
modulation are not seen in this modulation.
•The dynamic range of Adaptive delta modulation is wider than delta modulation.
•This modulation utilizes bandwidth more effectively than delta modulation.
Advantages
•During demodulation, it uses a low pass filter which removes the quantized
noise.
•The slope overload error and granular error present in delta modulation are
solved using this modulation. Because of this, the signal to noise ratio of this
modulation is better than delta modulation.
•In the presence of bit errors, this modulation provides robust performance. This
reduces the need for error detection and correction circuits in radio design.
•The dynamic range of Adaptive delta modulation is large as the variable step
size covers large range of values.
Applications
• CVSD encodes at 1 bit per sample, so that audio sampled at 16 kHz is encoded at
16 kbit/s.The encoder maintains a reference sample and a step size.
• Each input sample is compared to the reference sample. If the input sample is larger, the
encoder emits a 1 bit and adds the step size to the reference sample.
• If the input sample is smaller, the encoder emits a 0 bit and subtracts the step size from the
reference sample.
• The encoder also keeps the previous N bits of output (N = 3 or N = 4 are very common) to
determine adjustments to the step size; if the previous N bits are all 1s or 0s, the step size is
increased. Otherwise, the step size is decreased (usually in an exponential manner, with
being in the range of 5 ms).
Radio
Carrier Carrier
Channel
Baseband Synchronization/
Modulation Detection/ Decision
Modulation
• Modulation :
process (or result of the process) of translation the baseband
message signal to bandpass (modulated carrier) signal at
frequencies that are very high compared to the baseband
frequencies.
• Demodulation is the process of extracting the baseband
message back the modulated carrier.
• An information-bearing signal is non- deterministic, i.e. it
changes in an unpredictable manner.
Digital Modulation
Why Carrier ?
• Effective radiation of EM waves requires antenna
dimensions comparable with the wavelength:
– Antenna for 3 kHz would be ~100 km long
– Antenna for 3 GHz carrier is 10 cm long
• Sharing the access to the telecommunication channel
resources
Digital Modulation
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
Digital Modulation
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.
Modulation Process
Baseband
Data
1 0 0 1
ASK
modulated
signal
Acos(t) Acos(t)
60
Binary ASK (BASK) or On Off Keying (OOK)
- Pros:
ASK transmitter and receiver are simple to design.
ASK needs less bandwidth than FSK.
- Cons:
ASK transmission can be easily corrupted by noise.
- Application:
Early telephone modem (AFSK).
ASK is used to transmit digital data over optical fiber.
Frequency Shift Keying (FSK)
Baseband
Data
1 0 0 1
BFSK
modulated
signal
f1
f0
f0
FSK (Frequency Shift Keying)
Baseband
Data
1 0 0 1
BPSK
modulated
signal
s1 s0 s0 s1
where s0 =-Acos(ct) and s1 =Acos(ct)
• Major drawback – rapid amplitude change between symbols due to phase discontinuity, which
requires infinite bandwidth. Binary Phase Shift Keying (BPSK) demonstrates better performance
than ASK and BFSK
• BPSK can be expanded to a M-ary scheme, employing multiple phases and amplitudes as different
states
Phase Shift Keying
67
Bandwidth of Binary PSK
Amplitude Shift Keying Frequency Shift Keying (FSK) Phase Shift Keying (PSK)
(ASK)
• Low bandwidth requirements • More error resilience than AM. • Robust against interference.
• Very susceptible to
interference
Digital Modulation Summary