Concept of Frequency
Concept of Frequency
Concept of Digital
Frequency
Prof. Md. Kamrul Hasan
Department of Electrical and
Electronic Engineering
BUET
A Chinese proverb
Text book
Digital Signal Processing: Principles, Algorithms, and Applications
------ CHAPTER 1
J. G. Proakis & D. G. Manolakis
What is frequency?
The number of cycles per unit of time is called the
frequency.
The number of wave oscillations per unit time
most often measured in cycles per second (cps) or the
interchangeable Hertz (Hz) (50 cps = 50 Hz),
Continuous-time Sinusoidal Signal
xa (t ) A cos(t )
A cos(2 Ft ), t
Properties
(i) For every value of F xa (t ) is periodic.
(ii) CT sinusoidal signals with distinct freq. are themselves
distinct.
Properties
(i) A DTsinusoidal signal x(n) is periodic with period
N (N>0) if and only if x(n N ) x(n) .
cos[2 f (n N ) ] cos(2 fn )
This relation is true if there exists an integer k such that
k f
2 fN 2k , f is a ratio of two integers
N
Examples: Determine periodicity, if
periodic
3 Periodic, N=14 3 3 3
(a) cos( n) 2 f f
7 7 7 14
10 10 10 5
(b) cos( n) Aperiodic, f - irrational 2 f f
7 7 7 7
1
(c) cos( n) Aperiodic, f - irrational 2 f f
2
Proof:
x(n) A cos(0 n )
2 2 3
0 0 2
Alias freq. bands
2
4
Any sequence resulting from a sinusoid with a frequency| | or | f | 1/ 2 , is identica
a sequence obtained from a sinusoidal signal with frequency | | .
(or ) Or equivalently,
1 1
f (or f )
2 2
CT Exponentials:
The basic signals for CT, harmonically related exponentials are
In contrast to the CT case, we note that
sk N (n) e j ( k N )2 f0n e j 2 n ( k N ) / N = e j 2 n sk (n) sk (n)
s0 (n) sN (n), s1 (n) sN 1 (n), and so on
There are only N distinct periodic complex exponentials.
Fourier series expansion for x ( n) can be expressed as
k N 1 k N 1
x ( n)
k 0
ck sk ( n)
k 0
ck e j 2 kn / N Linear combination of N no.
of harmonics
k
fk
N Frequency of the k-th harmonics
Sampling & Quantization
A/D Conversion
What does an A/D Converter do?
Sampling samples the CT signal
xa (t ) x ( n) xq (n) 01001….
SAMPLER xa (t ) QUANTIZER CODER
Quantization:
How many bits per sample are required? More bits, more accuracy!!
Sampling
Sampling is a process of measuring the amplitude of a continuous-time signal
at discrete instants CT signal into a DT signal
Analog 1
DT
Signal Fs Signal
T
Sampler
k 0 2 k
2
4
Dividing by 2 , fk f0 k
Fk F0
fk k
Fs Fs
Fk F0 kFs
Suppose: Fs = 40 Hz
F= 50Hz
Example:
Replacing ‘t’ by
Sampling Theorem
Sampling Theorem: Contd.
Sampling Theorem: Contd.
Sampling Theorem:
Articulated by Nyquist in 1928 and
mathematically proven by Shannon in 1949
The sampling theorem states that for a band-limited signal with maximum
frequency Fmax, the uniform sampling frequency Fs must be greater than
twice of Fmax, i.e.,
Fs > 2 Fmax
The frequency 2Fmax is called the Nyquist sampling rate. Half this frequency,
Fmax, is sometimes called the Nyquist frequency.
x(nT)
Quantization levels
nT
The quantization error is bounded by
2
∆ ∆
i.e., − ≤ 𝑒(𝑛) ≤
2 2
Quantization by Truncating
The discrete sample x(nT) is quantized to the lower level
Quantized level ≠ true value (x(nT)), usually
E
=Q
E
The probability distribution of the error signal: = 0, otherwise
2 2 2
𝜎 𝑥 𝜎 𝑥 12 𝜎 𝑥 2
SQNR= 2
= 2
= 2
=12 𝜎 ¿¿ 𝑥
𝜎 𝑒 △ /12 △
Performance of A/D Converter
(𝜎 =𝑉 )
2
2 2 𝑉
𝑥 𝑟𝑚𝑠 =
2
Problems:
Prob-1: The continuous-time signal
Prob-2: State with reason (s) if the following signals are periodic:
Fig. P1.11
𝑥 ( 𝑛 ) =3 cos ( 100 𝜋
200 )
𝑛 + 2sin (
250 𝜋
200
𝑛 =3 cos )
𝜋
2 ( )
𝑛 − 2 sin
3𝜋
4
𝑛 ( )
𝑥 𝑑𝑎 ( 𝑡 ) =3 cos ( 500 𝜋 𝑡 ) −2 sin ( 750 𝜋 𝑡 )