2 CS2403 Formula
2 CS2403 Formula
Constant
Multiplier
Unit delay
element
Unit advance
element
Classification of Systems
Static System:
Output depends on present input not on past or future input
No memory
Dynamic System:
Output depends on both present and past input
Has a memory
Linear System: Superposition principle holds
H[a*x(n)+b*y(n)]=a*H[x(n)]+b*H[y(n)]
Non Linear System: Superposition principle does not holds
Time Inariant System: Input Output relationship does not vary with time
H[x(n-k)]=y(n-k)
Time Variant System: Input Output relationship vary with time
Properties of Convolution:
Commutative Property:
x (n)∗h(n)=h (n)∗x (n)
Associative Property:
[ x(n)∗h(n)]∗z (n)=x (n)∗[h(n)∗z( n)]
Distributive Property:
x (n)∗[h(n)+ z (n)]=[x ( n)∗h(n)]+[x ( n)∗z (n)]
Condition for Stability of LTI Systems:
∞
∑ |h ( n )|< ∞
n=−∞
Z Transform
Two Sided Z Transform:
∞
X ( z )=Z [ x ( n ) ]= ∑ x ( n ) z−n
n=−∞
Inverse Z transform:
1
x ( n )= ∮ X ( z ) z n−1 dz
2 πj
ROC
Definition:
ROC (Region of Convergence) of X ( z ) is the set of all values of z, for which X ( z ) attains a
finite value.
Properties:
ROC of X ( z ) is a ring or disk in Z plane, with center at origin.
If x ( n ) is finite duration right sided (causal) signal, then the ROC is entire Z plane except
z=0.
If x ( n ) is finite duration left sided (anti causal) signal, then the ROC is entire Z plane except
z=∞.
If x ( n ) is finite duration two sided (non causal) signal, then the ROC is entire Z plane except
z=0and z=∞.
If x ( n ) is infinite duration right sided (causal) signal, then ROC is exterior of the circle of
radius r 1.
If x ( n ) is infinite duration left sided (anti causal) signal, then ROC is interior of the circle of
radius r 2.
If x ( n ) is infinite duration both sided (non causal) signal, then ROC is the region in between
two circles of radius r 1and r 2.
If X ( z ) is rational, then ROC does not include any poles of X ( z ).
If X ( z ) is rational, and if x ( n ) is right sided (causal), then ROC is exterior of the circle whose
radius corresponds to the pole with largest magnitude.
If X ( z ) is rational, and if x ( n ) is left sided (anti causal), then ROC is interior of the circle
whose radius corresponds to the pole with smallest magnitude.
If X ( z ) is rational, and if x ( n ) is two sided (non causal), then ROC is region in between two
circles whose radius corresponds to the pole of causal part with largest magnitude and
pole of anti causal with smallest magnitude.
Properties of Z Transform
Linearity Property:
Z { ax ( n ) +by ( n ) } =aZ [ x ( n ) ] +bZ [ y ( n ) ] =aX ( z ) + bY ( z )
dX ( z ) d ∞
dz
=
( ∑ x ( n ) z−n
dz n=−∞
∞
)
dX ( z ) d
= ∑ x ( n ) ( z−n )
dz n=−∞ dz
∞
dX ( z )
= ∑ x ( n ) (−n z −n−1 )
dz n=−∞
∞
dX z )
(
−z = ∑ ( nx ( n )) z−1
dz n=−∞
dX ( z )
−z =Z [ nx ( n ) ]
dz
dX ( z )
Z [ nx ( n ) ]=−z
dz
Shifting property:
If Z [ x ( n ) ] =X ( z ), then
Z [ x ( n−m ) ] =z−m X ( z )
CS2403 Digital Signal Processing: Formula Page 7
Z [ x ( n+ m ) ]=z m X ( z )
Proof:
∞
Z [ x ( n−m ) ]= ∑ x ( n−m ) z −n
n=−∞
Let p=n−m, then n= p+m
If n=−∞, then p=−∞
If n=∞, then p=∞
∞
Z [ x ( n−m ) ]= ∑ x ( p ) z−( p +m)
p=−∞
∞
Z [ x ( n−m ) ] = ∑ x ( p ) z− p z −m
p=−∞
∞
Z [ x ( n−m ) ] =z−m ∑ x ( p ) z− p
p=−∞
Z [ x ( n−m ) ] =z−m X ( z )
Similarly, we can prove
Z [ x ( n−m ) ]=z m X ( z )
Convolution Theorem:
If Z [ x ( n ) ] =X ( z ) and Z [ y ( n ) ] =Y ( z ), then Z [ x ( n )∗y ( n ) ]= X ( z ) Y ( z )
where,
∞
x ( n )∗y ( n )= ∑ x ( m ) y ( n−m)
m=−∞
Proof:
∞
Z [ x ( n )∗y ( n ) ]= ∑ [ x ( n )∗y ( n ) ] z−n
n =−∞
∞ ∞
Z [ x ( n )∗y ( n ) ]= ∑ ∑ x ( m ) y ( n−m ) z −n
n =−∞ m=−∞
Let p=n−m, then n= p+m
∞ ∞
Z [ x ( n )∗y ( n ) ]= ∑ ∑ x ( m ) y ( p ) z−( p +m)
p =−∞ m=−∞
∞ ∞
Z [ x ( n )∗y ( n ) ] = ∑ x ( m ) z−m ∑ y ( p ) z− p
m =−∞ p=−∞
Z [ x ( n )∗y ( n ) ]= X ( z ) Y ( z )
Initial Value Theorem:
If Z [ x ( n ) ] =X ( z ), then
x ( 0 )=lim X ( z )
z →∞
Proof:
∞
X ( z )=∑ x ( n ) z−n
n=0
x (1) x (2)
X ( z )=x ( 0 ) + + 2 +………¿∞
z z
Taking limit z → ∞,
lim X ( z ) =x ( 0 )
z →∞
Circular Convolution:
N−1
x 3 ( n )=x 1 ( n ) ○ x 2 ( n )= ∑ x 1 ( m ) x2 ( ( n−m ) )N
m=0
N−1
x 3 ( n )=x 2 ( n ) ○ x 1 ( n )= ∑ x 2 ( m ) x1 ( ( n−m ) )N
m=0
Various Methods of calculating both Linear and Circular Convolution between two
sequences are
Graphical Method
Tabular Method
Matrix method
Correlation
Auto Correlation:
∞
r xx ( m )= ∑ x ( n ) x ( n−m )
n=−∞
Cross Correlation:
∞
r xy ( m) = ∑ x ( n ) y ( n−m )
n=−∞
{
Ωp = T
T
2
ωs
, Impulse Invariant Transformation
tan
ωp
2
, Bilinear Transformation
{
Ω s= T
T
2
, Impulse Invariant Tran sformation
ω
tan s , Bilinear Transformation
2
Step 2: Determination of Order of the Filter:
1 1
N≥
1 {( ) ( )}
log 2 −1 / 2 −1
δ2 δ1
2 log ( Ω s /Ω p )
Step 3: Determination of Cut off Frequency:
Ωp
Ωc = 1 /2 N
1
( )
δ 21
−1
For N odd,
B Ω ( N−1) /2 B k Ω 2c
H a ( s )= 0 c ∏ 2
s +c 0 Ω c k=1 s + bk Ωc s+ c k Ω 2c
where,
( 2 k−1 ) π
b k =2 sin ( 2N )
c k =1
Bk can obtained from
For N even,
N/2
A=1=∏ B k
k =1
For N odd,
¿¿
A=1=∏ ¿
k=0
Step 5: Determination of Digital Transfer Function H ( z ) :
H ( z ) can be obtained from H a ( s ) using either impulse invariant transformation or bilinear
transformation.
{
Ωp = T
T
ωs
2
, Impulse Invariant Transformation
ω
tan p , Bilinear Transformation
2
{
Ω s= T
2
T
, Impulse Invariant Transformation
ωs
tan , Bilinear Transformation
2
N≥
cosh−1
{( ) }
ε δ 22
−1
cosh−1 ( Ω s /Ω p )
where
1 /2
1
( )
ε = 2 −1
δ1
Step 3: Determination of Cut off Frequency:
Ωc =Ω p
Step 4: Determination of Analog Transfer Function H a ( s ):
For N even,
N /2
Bk Ω2c
H a ( s )= ∏ 2 2
k=1 s +b k Ω c s+c k Ωc
For N odd,
y N=
1
2 {[( 1
ε2
+1
) +
1
ε ] [( ) ] }1
− 2 +1
ε
+
1
ε
Bk can obtained from
For N even,
N/2
A 1 B
= =∏ k
2 1 /2 2 1 /2
( 1+ε ) ( 1+ ε ) k=1 c k
For N odd,
¿¿
A=1=∏ ¿
k=0
Step 5: Determination of Digital Transfer Function H ( z ) :
H ( z ) can be obtained from H a ( s ) using either impulse invariant transformation or bilinear
transformation.
Impulse Invariant Transformation:
1 1
→
s−a 1−eaT z−1
1 (−1 )m−1 d m−1 1
( s+ a )
m
→
( m−1 ) ! d s m−1 −sT −1
1−e z s →a [ ]
1−e cos bT z−1
−aT
s+ a
→
( s+ a )2 +b2 1−2 e−aT cos bT z−1 +e−2 aT z−2
b e−aT sin bT z−1
→
( s+ a )2 +b2 1−2 e−aT cos bT z−1 +e−2 aT z−2
Bilinear Transformation:
2 1−z−1
s→
T 1+ z −1
Frequency Transformation:
Analog Frequency Transformation:
Low pass filter with cut off frequency Ωc to Low pass filter with cut off frequency Ωc :
¿
Ωc
s→ ¿ s
Ωc
Low pass filter with cut off frequency Ωc to High pass filter with cut off frequency Ωc :
¿
Ω Ω¿
s→ c c
s
Low pass filter with cut off frequency Ωc to Band pass filter with cut off frequencyΩ1
and Ω2:
−1 z −1 −a
z →
1−a z−1
where
sin [ ( ω c −ω¿c ) /2 ]
a=
sin [ ( ω c + ω¿c ) / 2 ]
Low pass filter with cut off frequency ω c to High pass filter with cut off frequency ω c:
¿
z −1 + a
−1
z →−
[1+ a z−1 ]
where
cos [ ( ω c −ω ¿c ) /2 ]
a=
cos [ ( ωc +ω¿c ) /2 ]
Low pass filter with cut off frequency ω c to Band pass filter with cut off frequencyω 1
and ω 2:
z −2 −a1 z−1+ a2
−1
z →−
[ a2 z−2−a1 z−1+1 ]
where
−2 αk
a 1=
k +1
k−1
a 2=
k +1
cos [ ( ω2 +ω 1) /2 ]
α=
cos [ ( ω2−ω 1 ) /2 ]
k =cot ( ω −ω
2
2
) 1 ω
tan ( )
2
c
Low pass filter with cut off frequency ω c to Band stop filter with cut off frequency ω 1
and ω 2:
z −2 −a1 z−1+ a2
−1
z →−
[
a2 z−2−a1 z−1+1 ]
where
−2 α
a 1=
k +1
CS2403 Digital Signal Processing: Formula Page 15
1−k
a 2=
1+ k
cos [ ( ω2 +ω 1) /2 ]
α=
cos [ ( ω2−ω 1 ) /2 ]
ω2−ω1 ω
k =tan ( 2 ) ( )
tan c
2
Unit IV FIR Filter Design
Design of FIR filter by Fourier Series Method
Given specification:
Desired frequency response, H d ( e jω )
Cut off frequency ω c for Low pass and High pass, and ω c1 and ω c2 for Band pass and
Band stop filter
Sampling frequency ω s
The number of samples, M
Ideal LPF:
1 ,−ωc ≤ω ≤ ω c
jω
H d ( e )=
Ideal HPF:
{
0 ,ω c ≤|ω|≤ s
ω
2
0 ,−ω c ≤ ω ≤ ωc
jω
H d ( e )=
Ideal BPF:
{
1 , ωc ≤|ω|≤ s
ω
2
1 , ωc 1 ≤|ω|≤ω c 2
jω
Ideal BSF:
0
{
H d ( e ) = ,−ω c1 ≤ω ≤ ω c1
0 , ωc 2 ≤|ω|≤ s
ω
2
0 , ωc 1 ≤|ω|≤ω c 2
jω
H d ( e )=
{
1 ,−ωc 1 ≤ ω ≤ ωc 1
1 , ω c2 ≤|ω|≤ s
ω
2
M −1
Note: For non ideal (practical) filter, 1 is replaced as e− jωα where α =
2
Step 1: Determination of desired impulse response h d ( n )
ωs /2
1
h d ( n )= H ( e jω ) e jωnT dω
ω s −ω∫/ 2 d
s
2 ωs
h d ( 0 )=
ωs 2 [ −ωc 2 +ω c1 ]
For non ideal Low Pass Filter,
2
h d ( n )= sin ( ( α −n ) ω c ) ,n ≠ α
( α −n ) ω s
2 ωc
h d ( α )=
ωs
For non ideal high pass filter,
h d ( n )=
2
( α −n ) ω s
sin
[ (( α−n ) ωs
2 ) ]
−sin ( ( α −n ) ω c ) , n≠ α
2 ωs
h d ( α )=
ωs 2 [ −ω c ]
For non idealband pass filter,
2
h d ( n )= [ sin (( α−n ) ωc 2 )−sin ( ( α−n ) ωc 1 ) ] , n ≠ α
( α −n ) ω s
2
h d ( α )= [ ω c 2−ω c1 ]
ωs
For non ideal band reject filter,
h d ( n )=
2
( α −n ) ω s
sin
[ (( α−n ) ωs
2 ) ]
−sin ( ( α −n ) ω c2 ) + sin ( ( α −n ) ωc 1 ) , n ≠ α
2 ωs
h d ( α )=
ωs 2 [ −ω c2 +ω c1 ]
Step 2: Calculate M samples of h d ( n ) for n=0 ¿ M −1
h ( n ) =hd ( n ) /¿ n=0 ¿ M −1
Step 3: Determination of H ( z )
M −1
H ( z ) =z
− ( M −1)
2
[ 2
h ( 0 )+ ∑ h ( n ) ( z n + z−n )
{
H d ( e ) = 0 ,−ω c1 ≤ ω ≤ω c1
0 , ω c2 ≤|ω|≤ π
Band Reject Filter:
0 , ωc 1 ≤|ω|≤ω c 2
( jω
{
H d e = 1 ,−ωc 1 ≤ ω ≤ ωc 1
)
1 , ωc 2 ≤|ω|≤ π
For non ideal (practical) filter, replace 1 by e jωα .
Step 1: Determination of h d ( n ):
π
1
h d ( n )= ∫ H d ( e jω ) e jωn dω
2 π −π
For ideal Low Pass Filter,
1
h d ( n )= sin ( n ωc ) , n≠ 0
nπ
ωc
h d ( 0 )=
π
For ideal high pass filter,
1
h d ( n )= [ sin ( nπ )−sin ( n ω c ) ] , n≠ 0
nπ
1
h d ( 0 )= [ π−ω c ]
π
For ideal band pass filter,
1
h d ( n )= [ sin ( n ωc 2 )−sin ( n ωc 1 ) ] , n≠ 0
nπ
1
h d ( 0 )= [ ω c2−ωc 1 ]
π
For ideal band reject filter,
1
h d ( n )= [ sin ( nπ )−sin ( n ω c 2) + sin ( n ωc 1 ) ] , n ≠0
nπ
1
h d ( 0 )= [ π−ω c 2+ ωc 1 ]
π
For non ideal Low Pass Filter,
1
h d ( n )= sin ( ( α −n ) ω c ) ,n ≠ α
( α −n ) π
ωc
h d ( α )=
π
For non ideal high pass filter,
2 πn M −1
w H ( n )=
{ 0.5+ 0.5cos
2 πn 4 πn M −1
wB (n)=
{
0.42+0.5 cos
M −1
W bart =
{
1+n ,−
1−n , 1<n<
2
<n<1
M −1
2
Design of FIR filter by Type 1 frequency sampling method
Choose the desired frequency response H d ( e jω )
2 πk
Sample H d ( e jω ) at M – points by taking ω k = where k =0 , 1 ,2 , … … … , M −1, to
M
generate the sequence
H ( k )=H d ( e jω ) /¿ 2 πk for k =0 , 1, 2 , … … … , M −1¿
ω=
M
Compute the M samples of impulse response h ( n ) using following equation
M−1
h (n)=
1
M [ 2
]
H ( 0 )+ 2 ∑ ℜ [ H ( k ) e j 2 πnk / M ] , M odd
k=1
M
[ ]
−1
2
1
h (n)= H ( 0 )+ 2 ∑ ℜ [ H ( k ) e j 2 πnk / M ] , M even
M k=1
Take Z transform of the impulse response h ( n ) to get the filter transfer function H ( z )
M −1
H ( z ) = ∑ h ( n ) z−n
n=0
Design of FIR filter by Type 2 frequency sampling method
Choose the desired frequency response H d ( e jω )
2 π ( 2 k +1 )
Sample H d ( e jω ) at M – points by taking ω k = where k =0 , 1 ,2 , … … … , M −1, to
2M
generate the sequence
H ( k )=H d ( e jω ) /¿ 2 π ( 2 k+1) for k=0 ,1 , 2, … … … , M −1 ¿
ω=
2M
h (n)=
2
N [ 2
∑ ℜ [ H ( k ) e j πn( 2 k+1) / M ]
k=0
M
] , M odd
[ ]
−1
2
2
h (n)= 2 ℜ [ H ( k ) e j πn (2 k+1 )/ M ] , M even
N ∑ k=0
Take Z transform of the impulse response h ( n ) to get the filter transfer function H ( z )
M −1
H ( z ) = ∑ h ( n ) z−n
n=0
Types of Number Representation
Fixed point representation
Floating point representation
Fixed Point Representation
It is a generalization of the familiar decimal representation of a number as a string of
digits with a decimal points.
In this notation, the digits to the left of the decimal point represent the integer part of
the number and the digit to the right of the decimal point represent the fractional
part of the number.
There are three ways to represent the negative number.
Sign Magnitude Format: In this, the MSB is set to 1 to represent the negative sign.
Example: (−2 )10=1010
One’s Complement Format: In this, the MSB is set to 1 and all the other digits are
represented by its complement.
Example:(−2 )10=1101
Two’s Complement Format: In this, a negative number is represented by forming
the two’s complement of the corresponding positive number. In other words, the
negative number is obtained by subtracting the positive number from 2.
Example:(−2 )10=1' scomplement ( 2 ) +1=1101+ 1=1110
Floating Point Representation
A floating point representation can be employed as a means for covering a large
dynamic range.
The binary floating point representation commonly used in practice, consists of a
1
mantissa M, which is the fractional part of the number and falls in the range ≤ M <1
2
E
, multiplied by the exponential factor 2 , where the exponent E is either a positive or
negative integer.
Hence a number X is represented by
X =M . 2 E
Example 1: The number X =5 is represented as
5
5= 23=0.625∗23
8
Mantissa: M =( 0.625 )10= ( 0.101000 )2
Exponent: E=( 3 )10=( 011 )2
5=0.101000∗2011
2
−B
R2
1 e3
Pe ( n ) = − B
R2 3 [ ] 2
−R 2−B
2
3 −3 B
1 R 2 R 3 2−3 B
Pe ( n ) = [
R 2− B 24
+
24 ]
1
−B
∗2∗R3 2−3 B
R2
Pe ( n ) =
24
2 −2 B
R 2
Pe ( n ) =
12
Signal to Noise Ratio:
∞
[ ∑ h ( k ) e¿ ( n−k ) ∑ h ( k ) e ( n+m−k )
k=0 k=0
]
γ e e ( m )=∑ h2 ( k ) E [ e ¿ ( n−k ) e ( n+ m−k ) ]
0 0
k=0
∞
γ e e ( m )=∑ h2 ( k ) γ ee ( m )
0 0
k=0
It has been assumed that the noise resulting from the quantization process is a
white noise. For this case,
γ e e ( m )=σ 2e
0 0 0
and
γ ee ( m ) =σ 2e
2
where, σ e is the output noise power and σ 2e is the input noise power.
0
Thus,
∞
σ 2e =σ 2e ∑ h2 ( n )
0
n=0
Using Parseval’s theorem,
∞
∑ h2 ( n )= 21πj ∮ H ( z ) H ( z −1 ) z−1 dz
n=0
Thus,
2 σ 2e −1 −1
σe = ∮ H ( z ) H ( z ) z dz
0
2 πj
where the closed contour of integration is around the unit circle |z|=1.
Coefficient Quantization Effect
The realization of the digital filters in hardware or software has some limitation due
to the finite word length of the registers that are available to store these filter
coefficients.
Since the coefficients stored in these registers are either truncated or rounded off,
the system that is realized using these coefficients is not accurate.
The location of poles and zeros of the resulting system will be different from the
original location and consequently the system may have a different frequency
response than the one desired.
We know that the stability and system performance of a digital filter depends on the
poles and zeros location.
Thus if the poles and zeros location are changed, then the system performance can
vary.
For example, if we want to design a Low Pass Filter and the filter coefficients are
quantized, then it will change the system as a High Pass Filter or Band Pass Filter or
Band Reject Filer.
Product Quantization
The error due to the quantization of the output of multiplier is referred to as product
quantization error.
When two B – bit numbers are multiplied, the product must be rounded to B – bits in
all digital processing applications.
The output of a finite word length multiplier can be expressed as
Q [ α i x ( n ) ]=α i x ( n ) +e ( n )
CS2403 Digital Signal Processing: Formula Page 26
whereα i x ( n ) is the product which is 2B – bit long and e ( n ) is the error resulting from
rounding the product to B – bits.
The fixed point, finite word length multiplier can be modeled as given below:
Analysis
The average power (variance) is given by
−2 B
2 2
σ e=
12
The effects of rounding due to multiplication in cascaded IIR sections are discussed now.
Let h ( n ) be the system response and e 0 ( n ) be the response of the system to the input error
e ( n ).
Then the output noise power is given by
∞
σ 2e =σ 2e ∑ h2 ( n )
0
n=0
Using Parseval’s relation
2 σ 2e −1 −1
σe = ∮ H ( z ) H ( z ) z dz
0
2 πj
Assume that the M cascaded sections, then the output noise power at the k th product in
the ith section is given by
∞
2 2
σ =σ
ek e ∑ h 2i ( n )
n=0
Then the overall output noise power is given by
∞
σ 2err=∑ σ 2ei
i=0
Limit Cycle Oscillation
In recursive systems, when the input is zero or some nonzero constant value, the
nonlinearities due to finite precision arithmetic operators may cause periodic
oscillations in the output.
During periodic oscillations, the output y ( n ) of a system will oscillate between a finite
positive and negative value for increasing n or the output will become constant for
increasing n.
Such oscillations are called limit cycle oscillation.
CS2403 Digital Signal Processing: Formula Page 29
These oscillations are due to round off errors in multiplications and overflow in
additions.
Types of Limit cycle oscillation
Zero input limit cycle oscillation
Overflow limit cycle oscillation
Zero input limit cycle oscillation
In recursive systems, if a system output enters a limit cycle, it will continue to remain in
limit cycle even when the input is made zero.
Hence these limit cycles are called zero input limit cycle.
Consider the difference equation of first order system with only pole as
y ( n )=ay ( n−1 ) + x ( n )
The system has one product ay ( n−1 ).
If the product is quantised to finite word length then the response y ( n ) will deviate from
actual value.
Let y ' ( n ) be the response of the system when the product is quantised in each recursive
realization. Now,
y ' ( n )=Q [ ay ( n−1 ) ] + x ( n )
whereQ stands for quantization operation.
In the first order system with only pole, the coefficient “a” will be the pole of the systems.
Let us examine the nature of response of first order system for an impulse input and
various values of poles.
For simplicity, let us choose sign magnitude representation for binary product and
response.
Let the product be quantised to five bit binary.
Let
y ' ( n )=0 , for n<0
and
15
{
x ( n )= 16
, n=0
0,n≠0
1
anda=
2
n Before rounding After rounding ( 5 bits )
Decimal Binary Binary Decimal
−1 0 0.00000 0.0000 0
0 0.9375 0.11110 0.1111 0.9375
1 0.46875 0.01111 0.1000 0.5
2 0.25 0.01000 0.0100 0.25
3 0.125 0.00100 0.0010 0.125
4 0.0625 0.00010 0.0001 0.0625
5 0.3125 0.00001 0.0001 0.0625
Dead Band
In limit cycle, the amplitudes of the output are confined to the range of values, which is
called dead band of the filter.
For a first order system described by the equation y ( n )=ay ( n−1 ) + x ( n ), the dead band is given
by
|
| y ( n )|= ∑ h ( k ) x ( n−k )
k=−∞
|
Using Schwarz’s inequality,
∞
| y ( n )|≤ ∑ |h ( k )||x ( n−k )|
k=−∞
If the maximum value of input x ( n ) is set as X , then
∞
| y ( n )|≤ X ∑ |h ( k )|for all n
k=−∞
If the maximum range of the data handled by DSP processor is (−1,1 ), then the output must
be lesser than 1
∞
X ∑ |h ( k )|< 1
k=−∞
1
X< ∞
∑ |h ( k )|
k=− ∞
This is necessary condition for preventing overflow in a digital IIR system.
For an FIR Filter, the condition will be
1
X < M −1
∑ |h ( k )|
k=0
Unit V DSP Application
To avoid the aliasing effect in the decimator, low pass filter is used which is called as anti
aliasing filter.
The frequency response of the Anti aliasing filter is
H ( e jω )=1 ,|ω|≤ π / M
To avoid the imaging in the interpolator, low pass filter is used which is called as anti
imaging filter.
The frequency response of the Anti imaging filter is
H ( e jω )=1 ,|ω|≤ π / L
W ( e jω )= ∑ x ( n ) e− jωnL
n=−∞
W ( e )= X ( e jωL )
jω
Here, it is clear that the filters h ai ( n ) and h aa ( n ) are connected in cascade. Hence these two
filters are multiplied and get a single filter h ( n ) whose frequency response is
H aa ( e jω )=1 ,|ω|≤ min [ π /M , π /L ]
The relation between the sampling frequency before and after conversion is
L
f 's= f s
M
M
T 's= T s
L
Time Domain Relationship:
The output of the interpolator is
n
w 1 ( n )=x ()
L
The output of the filter is
w ( n )=w 1 ( n )∗h ( n )
∞
w ( n )= ∑ w 1 ( k ) h ( n−k )
k=−∞
∞
w ( n )= ∑
k=−∞
x ( kL ) h ( n−k )
The output of the decimator is
y ( n )=w ( nM )
∞
k
y ( n )= ∑ x
k=−∞
()
L
h ( nM −k )
Frequency Domain Relationship:
The output of the interpolator is
W 1 ( e jω )= X ( e jωL )
The output of the filter is
W ( e jω )=W 1 ( e jω ) H ( e jω )
W ( e jω )= X ( e jωL ) H ( e jω )
The output of the decimator is
1
Y ( e jω )= W ( e j ω / M )
M