Lesson 4 Analog To Digital Conversion
Lesson 4 Analog To Digital Conversion
Conversion
Analog to Digital Conversion
• Sampling is the process of converting analog signal from continuous time to
discrete time, obtained by taking samples of the analog signal.
• Quantization is the conversion of a discrete-time continuous-valued signal into a
discrete-time discrete-valued signal.
• Coding is the process wherein each discrete value of the quantized signal is
represented by a b-bit binary sequence.
SAMPLING
Generally, the continuous-time signal is described by
the function
x(t ) = A cos(t + )
Getting samples of the analog signal will result to x[n],
a discrete time signal, generally represented as
x[n] = A cos(n + )
Let us assume that ϕ=0. To discretize x(t) or to convert x(t) to x[n]….
𝑥 𝑡 = 𝐴𝑐𝑜𝑠 𝜔𝑡 → 𝑥 𝑛 = 𝐴𝑐𝑜𝑠(𝜃𝑛)
𝑥 𝑡 = 𝐴𝑐𝑜𝑠 2𝜋𝐹𝑡 → 𝑥 𝑛 = 𝐴𝑐𝑜𝑠 2𝜋𝐹𝑇𝑆 𝑛
This means x(t) will be sampled every TS seconds. TS is called the sampling
interval. You know that the reciprocal of time is frequency. So, the reciprocal
of sampling interval is sampling frequency TS=1/FS.
𝐹
𝑥 𝑡 = 𝐴𝑐𝑜𝑠 2𝜋𝐹𝑡 → 𝑥 𝑛 = 𝐴𝑐𝑜𝑠 2𝜋 𝑛
𝐹𝑆
This is now the discretized x(t): 𝑥 𝑛 = 𝐴𝑐𝑜𝑠 2𝜋𝑓𝑛
𝑥 𝑛 = 𝐴𝑐𝑜𝑠 𝜃𝑛
We will be using the capital F for analog frequency, small 𝑓 for normalized
frequency in the discrete-time. From the derivation shown, we will be able to
write another formula for the period, N, of a periodic DT signal. Recall that
2𝜋
𝑁= 𝑘
𝜃
2𝜋 2𝜋 1 1
𝑁= 𝑘 = 𝑘 = 𝑘 = Τ 𝑘
𝜃 2𝜋𝑓 𝑓 𝐹 𝐹𝑆
𝐹
Finally we have, 𝑁 = 𝑆𝑘
𝐹
Question: If the given sinusoid (blue
graph) is sampled at 16Hz, find the
Example1: following:
a) Duration of the signal
b) Frequency of the sinusoid
Solution:
Given 𝐹𝑆 = 16 𝑠𝑎𝑚𝑝𝑙𝑒𝑠/𝑠𝑒𝑐
a)
1
Period between samples=𝑇𝑆 = 16 𝑠𝑒𝑐
𝟏
𝑫𝒖𝒓𝒂𝒕𝒊𝒐𝒏 = 𝟐𝟒𝒙 𝒔𝒆𝒄 = 𝟏. 𝟓𝒔𝒆𝒄
𝟏𝟔
b)
Up to the end of the 16th sample is the 1 second mark.
You will notice that there are 2 cycles in 1 second,
therefore the Frequency of the sinusoid is 2Hz.
Aternative Solution
Looking at any one complete cycle, we can calculate the
period, T, of the sinusoid. Since the sampling period, TS,
is 1/16 sec, then
1
𝑇 = 8 𝑠𝑎𝑚𝑝𝑙𝑒𝑠 𝑥 𝑠𝑒𝑐/𝑠𝑎𝑚𝑝𝑙𝑒
16
1
𝑇 = sec 𝑝𝑒𝑟 𝑜𝑛𝑒 𝑐𝑦𝑐𝑙𝑒
2
Solution:
a) Since there are 8 samples in 1
second, therefore, the sampling
rate is
𝑭𝑺 = 𝟖𝑯𝒛
Sampling is the process of converting analog signal from continuous time to discrete time