Narrow-Band Low-Pass Digital Differentiator Design. Ivan Selesnick Polytechnic University Brooklyn, New York

Similar documents
Experiment 4- Finite Impulse Response Filters

Design of IIR Half-Band Filters with Arbitrary Flatness and Its Application to Filter Banks

Digital Filters IIR (& Their Corresponding Analog Filters) Week Date Lecture Title

DIGITAL FILTERS. !! Finite Impulse Response (FIR) !! Infinite Impulse Response (IIR) !! Background. !! Matlab functions AGC DSP AGC DSP

(i) Understanding of the characteristics of linear-phase finite impulse response (FIR) filters

Design of IIR Digital Filters with Flat Passband and Equiripple Stopband Responses

(i) Understanding of the characteristics of linear-phase finite impulse response (FIR) filters

Design of FIR Filters

DSP Laboratory (EELE 4110) Lab#10 Finite Impulse Response (FIR) Filters

F I R Filter (Finite Impulse Response)

4. Design of Discrete-Time Filters

Narrow-Band and Wide-Band Frequency Masking FIR Filters with Short Delay

Digital Filters FIR and IIR Systems

ECE438 - Laboratory 7a: Digital Filter Design (Week 1) By Prof. Charles Bouman and Prof. Mireille Boutin Fall 2015

Team proposals are due tomorrow at 6PM Homework 4 is due next thur. Proposal presentations are next mon in 1311EECS.


ELEC-C5230 Digitaalisen signaalinkäsittelyn perusteet

FIR Filter Design by Frequency Sampling or Interpolation *

Design of a Sharp Linear-Phase FIR Filter Using the α-scaled Sampling Kernel

Optimal FIR filters Analysis using Matlab

Frequency-Response Masking FIR Filters

EEM478-DSPHARDWARE. WEEK12:FIR & IIR Filter Design

Multirate Digital Signal Processing

NOVEMBER 13, 1996 EE 4773/6773: LECTURE NO. 37 PAGE 1 of 5

Digital Signal Processing 2/ Advanced Digital Signal Processing Lecture 11, Complex Signals and Filters, Hilbert Transform Gerald Schuller, TU Ilmenau

IIR Filter Design Chapter Intended Learning Outcomes: (i) Ability to design analog Butterworth filters

Final Exam Practice Questions for Music 421, with Solutions

FIR FILTER DESIGN USING A NEW WINDOW FUNCTION

Analog Lowpass Filter Specifications

Practical FIR Filter Design in MATLAB R Revision 1.0

Filters. Phani Chavali

CHAPTER -2 NOTCH FILTER DESIGN TECHNIQUES

Digital Processing of Continuous-Time Signals

Florida International University

Advanced Digital Signal Processing Part 5: Digital Filters

Almost Perfect Reconstruction Filter Bank for Non-redundant, Approximately Shift-Invariant, Complex Wavelet Transforms

B.Tech III Year II Semester (R13) Regular & Supplementary Examinations May/June 2017 DIGITAL SIGNAL PROCESSING (Common to ECE and EIE)

Digital Processing of

Design and Simulation of Two Channel QMF Filter Bank using Equiripple Technique.

8: IIR Filter Transformations

Chapter 7 Filter Design Techniques. Filter Design Techniques

EELE 4310: Digital Signal Processing (DSP)

Infinite Impulse Response (IIR) Filter. Ikhwannul Kholis, ST., MT. Universitas 17 Agustus 1945 Jakarta

A novel design of sparse FIR multiple notch filters with tunable notch frequencies

EC6502 PRINCIPLES OF DIGITAL SIGNAL PROCESSING

Frequency Division Multiplexing Spring 2011 Lecture #14. Sinusoids and LTI Systems. Periodic Sequences. x[n] = x[n + N]

Copyright S. K. Mitra

Signals and Systems Lecture 6: Fourier Applications

Designing Filters Using the NI LabVIEW Digital Filter Design Toolkit

y(n)= Aa n u(n)+bu(n) b m sin(2πmt)= b 1 sin(2πt)+b 2 sin(4πt)+b 3 sin(6πt)+ m=1 x(t)= x = 2 ( b b b b

Design of infinite impulse response (IIR) bandpass filter structure using particle swarm optimization

Module 9 AUDIO CODING. Version 2 ECE IIT, Kharagpur

ECE503: Digital Filter Design Lecture 9

Part B. Simple Digital Filters. 1. Simple FIR Digital Filters

Continuous-Time Analog Filters

LECTURER NOTE SMJE3163 DSP

Laboratory Assignment 4. Fourier Sound Synthesis

APPLIED SIGNAL PROCESSING

Lecture 3, Multirate Signal Processing

EE 230 Lecture 39. Data Converters. Time and Amplitude Quantization

Signals and Systems Lecture 6: Fourier Applications

Linear Time-Invariant Systems

Signal Processing. Naureen Ghani. December 9, 2017

EE 311 February 13 and 15, 2019 Lecture 10

ELEC3104: Digital Signal Processing Session 1, 2013

Digital Filters - A Basic Primer

Part One. Efficient Digital Filters COPYRIGHTED MATERIAL

Keywords FIR lowpass filter, transition bandwidth, sampling frequency, window length, filter order, and stopband attenuation.

Interpolated Lowpass FIR Filters

FIR Filters Digital Filters Without Feedback

Final Exam Solutions June 14, 2006

Digital Signal Processing

Experiment 2 Effects of Filtering

Complex Digital Filters Using Isolated Poles and Zeroes

arxiv: v1 [cs.it] 9 Mar 2016

Two-Dimensional Wavelets with Complementary Filter Banks

Digital Signal Processing

Optimal Sharpening of CIC Filters and An Efficient Implementation Through Saramäki-Ritoniemi Decimation Filter Structure (Extended Version)

CS3291: Digital Signal Processing

Brief Introduction to Signals & Systems. Phani Chavali

FINITE IMPULSE RESPONSE (FIR) FILTERS

2.1 BASIC CONCEPTS Basic Operations on Signals Time Shifting. Figure 2.2 Time shifting of a signal. Time Reversal.

UNIT-II MYcsvtu Notes agk

Digital Filtering: Realization

Design of Two-Channel Low-Delay FIR Filter Banks Using Constrained Optimization

UNIVERSITY OF SWAZILAND

Biosignal filtering and artifact rejection. Biosignal processing I, S Autumn 2017

Using the isppac 80 Programmable Lowpass Filter IC

IIR Ultra-Wideband Pulse Shaper Design

MULTIRATE DIGITAL SIGNAL PROCESSING

Multirate DSP, part 1: Upsampling and downsampling

Window Method. designates the window function. Commonly used window functions in FIR filters. are: 1. Rectangular Window:

Short-Time Fourier Transform and Its Inverse

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District DEPARTMENT OF INFORMATION TECHNOLOGY DIGITAL SIGNAL PROCESSING UNIT 3

Noise removal example. Today s topic. Digital Signal Processing. Lecture 3. Application Specific Integrated Circuits for

Signal processing preliminaries

Design of Nonrecursive Digital Filters Using the Ultraspherical Window Function

Neurophysiology. The action potential. Why should we care? AP is the elemental until of nervous system communication

The University of Texas at Austin Dept. of Electrical and Computer Engineering Final Exam

Estimation of filter order for prescribed, reduced group delay FIR filter design

Transcription:

Narrow-Band Low-Pass Digital Differentiator Design Ivan Selesnick Polytechnic University Brooklyn, New York selesi@poly.edu http://taco.poly.edu/selesi 1

Ideal Lowpass Digital Differentiator The frequency response of the ideal lowpass digital differentiator is H LP (e jω ) = { j ω ω < ωc ω c < ω < π It is a narrow-band filter if ω c is much smaller than π. (1) A narrow-band filter should have a long impulse response. = It is desirable to have simple design algorithms so that ill-conditioning and computational complexity is minimized. The window method for FIR filter design is a natural choice in this case. The design method described here gives an alternative approach. 2

EOG Example The next slide illustrates the result of filtering an EOG signal with: 1. a full-band differentiator and 2. a narrow-band lowpass differentiator Differentiation with the full-band differentiator yields an extremely noisy signal, while lowpass differentiation gives a more useful result. 3

EOG SIGNAL EOG SIGNAL AFTER FULLBAND DIFFERENTIATION EOG SIGNAL AFTER LOWPASS DIFFERENTIATION n 4

Design To avoid the undesirable amplification of noise in digital differentiation, lowpass differentiators can be used in place of full-band ones. Low-pass digital differentiator design: 1. Maxflat 2. Least-squares 3. Remez 4. Flat passband, Equiripple stopbands (Kaiser, Rabiner, Vaidyanathan) 5

Our Approach We describes a simple formulation for the non-iterative design of narrow-band FIR linear-phase lowpass digital differentiators. The filters are flat around dc and have equally spaced nulls in the stopband. The impulse response can be written as a sum of sines (Frequency sampling expression). The design problem is formulated so as to avoid the complexity or ill-conditioning of standard methods for the design of similar filters when those methods are used to design narrow-band filters with long impulse responses. 6

Analog Lowpass Differentiator The sinc function is given by sinc(f) := sin(π f). π f The function sinc(f) is symmetric (sinc( f) = sinc(f)) and equal to zero for f = ±1, ±2, ±3,... ; therefore if we define then we have s k (f) := sinc(f k) sinc(f + k) 1. s k (f) is antisymmetric, sinc( f) = sinc(f). 2. s k (f) = for f Z/{±k}. (s k (f) = whenever f is an integer different from ±k.) 7

Analog Lowpass Differentiator The digital filter design procedure we propose begins with an analog frequency response having the following form: K A(f) = a(k, K) (sinc(f k) sinc(f + k)) k=1 Therefore, the frequency response A(f) has the following properties: 1. A(f) is antisymmetric, A( f) = A(f). 2. A(f) = for f =, and for f = ±(K + 1), ±(K + 2), ±(K + 3),.... The frequency response A(f) is zero at f =. The first null in the stopband depends on K. The exact behavior of A(f) depends on the coefficients a(k, K), however, the uniformly spaced nulls in the stopband ensures that the attenuation increases with frequency. 8

Problem Formulation The coefficients a(k, K) are to be determined so that the frequency response A(f) approximates f near f = A(f) f. Given K, find a(k, K) for 1 k K such that the derivatives of A(f) at f = match the derivatives of the ideal differentiator IdealDiff(f) := f at the point f = : A (1) () = 1 (2) A (i) () =, i = 3, 5,..., 2 K 1. (3) The even derivatives are automatically zero because A(f) is an odd function, A( f) = A(f). This is a linear system of equations with an equal number of equations and variables. The stopband of A(f) is neither equiripple nor maximally flat. 9

Example For example, when K = 1, we have a(1, 1) = 1 2. When K = 2, we have a(1, 2) = 1 6 + 1 9 π2 a(2, 2) = 4 3 + 2 9 π2 When K = 3, we have a(1, 3) = 1 48 13 288 π2 + 7 48 π4 a(2, 3) = 16 15 16 9 π2 + 14 75 π4 a(3, 3) = 243 8 81 32 π2 + 189 8 π4 1

When K = 4, we have Example a(1, 4) = 1 72 + 29 432 π2 427 648 π4 + 31 189 π6 a(2, 4) = 16 45 + 28 135 π2 2366 225 π4 + 496 4725 π6 a(3, 4) = 2187 56 + 2187 16 π2 513 8 π4 + 2511 49 π6 a(4, 4) = 248 315 + 248 135 π2 12544 225 π4 + 15872 3375 π6 Other values a(k, K) can be easily computed. 11

Conversion to Digital Filter To convert the analog frequency response A(f) into a digital frequency response D(f), we can use the digital sinc function in place of the usual sinc function. The digital sinc function dsinc(f, N) can be written as dsinc(f, N) := sin(nπ f) sin(π f). (4) The digital sinc function defined in (4) is periodic in f with period 2: dsinc(f + 2) = dsinc(f). We have the following approximation: sinc(f) 1 N dsinc ( f N, N ) for f <.5 N. for large values of N. 12

Sinc vs. Digital Sinc 1 sinc(f).5.5 1 1 3 2 1 1 2 3 f dsinc(f/n)/n [N = 3].5.5 1 3 2 1 1 2 3 f 13

Sinc Minus Digital Sinc 1 sinc(f) dsinc(f/n)/n [N = 3].5.5 1.15 3 2 1 1 2 3 f sinc(f) dsinc(f/n)/n [N = 3].1.5.5.1.15 15 1 5 5 1 15 f 14

Sinc vs. Digital Sinc sinc(f) dsinc(f/n)/n, for f <.5N especially for large values of N. The design of digital differentiators described here is intended for long impulse responses. In this case, N is large and the approximation is valid. 15

k=1 Digital Lowpass Differentiators Consider the function D(f), based on the digital sinc function: D(f) = 1 K [ ( ) ( )] f k f + k a(k, K) dsinc N N, N dsinc N, N For N > K, we have the approximation For example: with K = 3, N = 3: D(f) A(f) for f < N/2. 2 x 1 3 A(f) D(f) 1 1 2 1 5 5 1 f 16

Digital Lowpass Differentiators Consider the function D(f), based on the digital sinc function: D(f) = 1 K [ ( ) ( )] f k f + k a(k, K) dsinc N N, N dsinc N, N k=1 The function D( N 2 πω) is then a 2 π periodic function of ω and can therefore be used as the frequency response H(e jω ) of a digital filter. Then H(e jω ) will be approximately maximally flat at ω =. 17

Digital Lowpass Differentiators The impulse response h(n) is given by the inverse discrete-time Fourier transform of H(e jω ), { ( )} N h(n) = IDTFT e j(n 1 2 )ω D 2 π ω where the phase term is included to make h(n) causal. Then h(n) is a linearphase FIR impulse response of length N: h(n) = 1 K ( 2πk a(k, K) sin N 2 N k=1 ( n )) (N 1) 2 for n N 1. Once a table of values a(k, K) is computed, it can be used regardless of the length N of the impulse response h(n). The width of the passband is controlled by the parameter K, the number of flatness constraints at dc. Note that 2 (K 1) is the number of zeros of H(z) that lie away from the unit circle, as illustrated in the following examples. 18

Example K = 2 1 x 1 3 IMPULSE RESPONSE.5.5 1 1 2 3 4 5 6 7 8 9 1.25 FREQUENCY RESPONSE.2.15.1.5.1.2.3.4.5.6.7.8.9 1 19

Example K = 3 1.5 x 1 3 IMPULSE RESPONSE 1.5.5 1 1.5 1 2 3 4 5 6 7 8 9 1.35 FREQUENCY RESPONSE.3.25.2.15.1.5.1.2.3.4.5.6.7.8.9 1 2

Example K = 4 1 2 3 x 1 3 IMPULSE RESPONSE 2 1 3 1 2 3 4 5 6 7 8 9 1.5 FREQUENCY RESPONSE.4.3.2.1.1.2.3.4.5.6.7.8.9 1 21

Example K = 5 4 x 1 3 IMPULSE RESPONSE 2 2 4 1 2 3 4 5 6 7 8 9 1.6 FREQUENCY RESPONSE.5.4.3.2.1.1.2.3.4.5.6.7.8.9 1 22

Example K = 6 5 x 1 3 IMPULSE RESPONSE 5 1 2 3 4 5 6 7 8 9 1.8 FREQUENCY RESPONSE.6.4.2.1.2.3.4.5.6.7.8.9 1 23

Example K = 2 1 ZERO DIAGRAM.25 FREQUENCY RESPONSE.5.2 1.15.1.5.5 1 1.5.5 1.5.1.15.2 Lowpass differentiator (K = 2, N = 11). There are 2 = 2(K 1) zeros contributing to the shape of the passband. 24

Example K = 3 1 ZERO DIAGRAM.35.3 FREQUENCY RESPONSE.5.25 1.2.15.5.1 1 1.5.5 1.5.5.1.15.2 Lowpass differentiator (K = 3, N = 11). There are 4 = 2(K 1) zeros contributing to the shape of the passband. 25

Example K = 4 1 ZERO DIAGRAM.5 FREQUENCY RESPONSE.5.4 1.3.2.5.1 1 1.5.5 1.5.1.15.2 Lowpass differentiator (K = 4, N = 11). There are 6 = 2(K 1) zeros contributing to the shape of the passband. 26

Example K = 5 1 ZERO DIAGRAM.6.5 FREQUENCY RESPONSE.5.4 1.3.5 1 1.5.5 1.2.1.5.1.15.2 Lowpass differentiator (K = 5, N = 11). There are 8 = 2(K 1) zeros contributing to the shape of the passband. 27

Example K = 6 1 ZERO DIAGRAM.8 FREQUENCY RESPONSE.5.6 1.4.5.2 1 1.5.5 1.5.1.15.2 Lowpass differentiator (K = 6, N = 11). There are 1 = 2(K 1) zeros contributing to the shape of the passband. 28

Summary 1. Simple Design Algorithm 2. Efficient Implementation Frequency Sampling 3. Still needed: Design rules How to choose N and K so that specifications are satisfied. 4. Closed form formulas for a(k, K)? 5. Smaller stopband ripple can be achieved by appropriate modification. 29