Documente Academic
Documente Profesional
Documente Cultură
Isaac Warutumo
Prerequisites
Purpose
Learning Outcomes
Isaac Warutumo
Course Description
Isaac Warutumo
Isaac Warutumo
Isaac Warutumo
Isaac Warutumo
Isaac Warutumo
Isaac Warutumo
Isaac Warutumo
10
Isaac Warutumo
11
Isaac Warutumo
A/D Converter
In order to change an analog signal to digital, the input analog signal is
sampled at a high rate of speed.
The amplitude at each of those sampled moments is converted into a
number equivalent this is called quantization.
These numbers are simply the combinations of the 0s and 1s used in
computer language this called encoding.
12
Isaac Warutumo
13
Isaac Warutumo
Sampler
Sampling is the first stage of the ADC process
Analog signal is sampled every TS seconds.
Ts is referred to as the sampling interval.
fs = 1/Ts is called the sampling rate or sampling frequency.
There are 3 sampling methods:
o Ideal - an impulse at each sampling instant
o Natural - a pulse of short width with varying amplitude
o Flattop - sample and hold, like natural but with single amplitude value
The process is referred to as pulse amplitude modulation (PAM) and the
outcome is a signal with analog (non integer) values
14
Isaac Warutumo
15
Isaac Warutumo
16
Isaac Warutumo
Quantizer
This device maps the sampled analog signal to discrete values which are
incremented stepwise
For an analog signal which has a maximum value of l volts and a minimum
of a Volts, the analog signal is mapped in Q stepped discrete values
For such a signal, the step size
la
Q
(1)
17
Isaac Warutumo
(2)
September 22, 2014
18
Isaac Warutumo
s
Q2 1
N
(3)
s
(dB) 10log(Q 2 1)
N
19
Isaac Warutumo
(4)
September 22, 2014
Quantization Error
Signals with lower amplitude values will suffer more from quantization
error as the error range: /2, is fixed for all signal levels.
20
Isaac Warutumo
The bit rate of a PCM signal can be calculated form the number of bits per
sample x the sampling rate
Bit rate nb x f s q f s
21
Isaac Warutumo
PCM Encoder
This device converts the step value to a binary number for transmission.
22
Isaac Warutumo
(5)
For example, for a system with Q=8, the binary digits per sample
q log 2 8 3
The output of the PCM encoder is binary data, which can be stored in a
computer file.
In this way, analog signal data can be handled as any other data stored in a
computer.
23
Isaac Warutumo
Isaac Warutumo
Example
Given that an analog signal has a minimum value of 0V, a maximum value
of 4V, and the number of quantization steps is 8, draw a table showing step
number, binary PCM codes for the step and the value of voltage
represented by the PCM code
40
0.5V
Step size
8
001
010
011
100
101
110
111
Isaac Warutumo
0.5
1.0
1.5
2.0
2.5
3.0
3.5
Quantization rules
(i) Quantization step size
la
(6)
26
Isaac Warutumo
(7)
(8)
Or
mi
27
Isaac Warutumo
xi xi 1
2
(9)
28
Isaac Warutumo
29
Isaac Warutumo
Isaac Warutumo
Example
The range of an analog signal is 0-4V. 8 quantization steps are used. Table 1
below shows the sampled values at the sampling instants
Table 1: Sampled signal
Time (mS)
0 1
2 3 4 5 6 7
Sampled value (V) 0.1 1.2 2.1 2.7 3.3 3.8 3.4 2.3
a) Calculate the transmitted PCM code for each sample
b) Sketch on the same scale the quantized signal and the approximated analog
signal
31
Isaac Warutumo
Solution
0.5
Q
8
---to do ---
32
Isaac Warutumo
mi
1.2
2.1
2.7
3.3
3.8
3.4
2.3
0.25
1.25
2.25
2.75
3.25
3.75
3.75
2.25
xq(kT)
0.25
1.25
2.25
2.75
3.25
3.75
3.75
2.25
PCM (i)
000
010
100
101
110
111
111
100
33
Isaac Warutumo
Quiz
34
Isaac Warutumo
35
Isaac Warutumo