<?xml version="1.0" encoding="utf-8"?>
<document xmlns="http://cnx.rice.edu/cnxml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" xmlns:q="http://cnx.rice.edu/qml/1.0" id="m10025" module-id="" cnxml-version="0.6">
  
  <title>Lab 3: Theory</title>
  <metadata xmlns:md="http://cnx.rice.edu/mdml/0.4">
  <!-- WARNING! The 'metadata' section is read only. Do not edit below.
       Changes to the metadata section in the source will not be saved. -->
  <md:content-id>m13802</md:content-id>
  <md:title>Lab 3: Theory</md:title>
  <md:version>1.2</md:version>
  <md:created>2006/07/26 11:17:54 GMT-5</md:created>
  <md:revised>2009/06/01 09:43:12.423 GMT-5</md:revised>
  <md:authorlist>
    <md:author id="tbshen">
        <md:firstname>Thomas</md:firstname>
        <md:surname>Shen</md:surname>
        <md:fullname>Thomas Shen</md:fullname>
        <md:email>tbshen@uiuc.edu</md:email>
    </md:author>
    <md:author id="dljones">
        <md:firstname>Douglas</md:firstname>
        <md:othername>L.</md:othername>
        <md:surname>Jones</md:surname>
        <md:fullname>Douglas L. Jones</md:fullname>
        <md:email>dl-jones@uiuc.edu</md:email>
    </md:author>
  </md:authorlist>
  <md:maintainerlist>
    <md:maintainer id="tbshen">
        <md:firstname>Thomas</md:firstname>
        <md:surname>Shen</md:surname>
        <md:fullname>Thomas Shen</md:fullname>
        <md:email>tbshen@uiuc.edu</md:email>
    </md:maintainer>
  </md:maintainerlist>
  <md:license href="http://creativecommons.org/licenses/by/2.0/"/>
  <md:licensorlist>
    <md:licensor id="tbshen">
        <md:firstname>Thomas</md:firstname>
        <md:surname>Shen</md:surname>
        <md:fullname>Thomas Shen</md:fullname>
        <md:email>tbshen@uiuc.edu</md:email>
    </md:licensor>
  </md:licensorlist>
  <md:parent-module href="http://cnx.org/content/m10025/2.20/">
    <md:content-id>m10025</md:content-id>
    <md:title>IIR Filtering: Introduction</md:title>
    <md:authorlist>
      <md:author id="dljones">
        <md:firstname>Douglas</md:firstname>
        <md:othername>L.</md:othername>
        <md:surname>Jones</md:surname>
        <md:fullname>Douglas L. Jones</md:fullname>
        <md:email>dl-jones@uiuc.edu</md:email>
      </md:author>
      <md:author id="appadwed">
        <md:firstname>Swaroop</md:firstname>
        <md:surname>Appadwedula</md:surname>
        <md:fullname>Swaroop Appadwedula</md:fullname>
        <md:email>appadwed@uiuc.edu</md:email>
      </md:author>
      <md:author id="mjberry">
        <md:firstname>Matthew</md:firstname>
        <md:othername>J.</md:othername>
        <md:surname>Berry</md:surname>
        <md:fullname>Matthew Berry</md:fullname>
        <md:email>mjberry@uiuc.edu</md:email>
      </md:author>
      <md:author id="markhaun">
        <md:firstname>Mark</md:firstname>
        <md:othername>A.</md:othername>
        <md:surname>Haun</md:surname>
        <md:fullname>Mark Haun</md:fullname>
        <md:email>markhaun@uiuc.edu</md:email>
      </md:author>
      <md:author id="jake">
        <md:firstname>Jake</md:firstname>
        <md:surname>Janevitz</md:surname>
        <md:fullname>Jake Janovetz</md:fullname>
        <md:email>jake@janovetz.com</md:email>
      </md:author>
      <md:author id="kramer">
        <md:firstname>Michael</md:firstname>
        <md:othername>L.</md:othername>
        <md:surname>Kramer</md:surname>
        <md:fullname>Michael Kramer</md:fullname>
        <md:email>kramer@ifp.uiuc.edu</md:email>
      </md:author>
      <md:author id="moussa">
        <md:firstname>Dima</md:firstname>
        <md:surname>Moussa</md:surname>
        <md:fullname>Dima Moussa</md:fullname>
        <md:email>dmoussa@uiuc.edu</md:email>
      </md:author>
      <md:author id="dsachs">
        <md:firstname>Daniel</md:firstname>
        <md:othername>Grobe</md:othername>
        <md:surname>Sachs</md:surname>
        <md:fullname>Daniel Sachs</md:fullname>
        <md:email>sachs@uiuc.edu</md:email>
      </md:author>
      <md:author id="bwade">
        <md:firstname>Brian</md:firstname>
        <md:surname>Wade</md:surname>
        <md:fullname>Brian Wade</md:fullname>
        <md:email>bwade@uiuc.edu</md:email>
      </md:author>
    </md:authorlist>
    <md:license href="http://creativecommons.org/licenses/by/1.0"/>
    <md:licensorlist>
      <md:licensor id="dljones">
        <md:firstname>Douglas</md:firstname>
        <md:othername>L.</md:othername>
        <md:surname>Jones</md:surname>
        <md:fullname>Douglas L. Jones</md:fullname>
        <md:email>dl-jones@uiuc.edu</md:email>
      </md:licensor>
      <md:licensor id="appadwed">
        <md:firstname>Swaroop</md:firstname>
        <md:surname>Appadwedula</md:surname>
        <md:fullname>Swaroop Appadwedula</md:fullname>
        <md:email>appadwed@uiuc.edu</md:email>
      </md:licensor>
      <md:licensor id="mjberry">
        <md:firstname>Matthew</md:firstname>
        <md:othername>J.</md:othername>
        <md:surname>Berry</md:surname>
        <md:fullname>Matthew Berry</md:fullname>
        <md:email>mjberry@uiuc.edu</md:email>
      </md:licensor>
      <md:licensor id="markhaun">
        <md:firstname>Mark</md:firstname>
        <md:othername>A.</md:othername>
        <md:surname>Haun</md:surname>
        <md:fullname>Mark Haun</md:fullname>
        <md:email>markhaun@uiuc.edu</md:email>
      </md:licensor>
      <md:licensor id="jake">
        <md:firstname>Jake</md:firstname>
        <md:surname>Janevitz</md:surname>
        <md:fullname>Jake Janovetz</md:fullname>
        <md:email>jake@janovetz.com</md:email>
      </md:licensor>
      <md:licensor id="kramer">
        <md:firstname>Michael</md:firstname>
        <md:othername>L.</md:othername>
        <md:surname>Kramer</md:surname>
        <md:fullname>Michael Kramer</md:fullname>
        <md:email>kramer@ifp.uiuc.edu</md:email>
      </md:licensor>
      <md:licensor id="moussa">
        <md:firstname>Dima</md:firstname>
        <md:surname>Moussa</md:surname>
        <md:fullname>Dima Moussa</md:fullname>
        <md:email>dmoussa@uiuc.edu</md:email>
      </md:licensor>
      <md:licensor id="dsachs">
        <md:firstname>Daniel</md:firstname>
        <md:othername>Grobe</md:othername>
        <md:surname>Sachs</md:surname>
        <md:fullname>Daniel Sachs</md:fullname>
        <md:email>sachs@uiuc.edu</md:email>
      </md:licensor>
      <md:licensor id="bwade">
        <md:firstname>Brian</md:firstname>
        <md:surname>Wade</md:surname>
        <md:fullname>Brian Wade</md:fullname>
        <md:email>bwade@uiuc.edu</md:email>
      </md:licensor>
    </md:licensorlist>
  </md:parent-module>
  <md:keywordlist>
    <md:keyword>bi-quad</md:keyword>
    <md:keyword>block repeat counter</md:keyword>
    <md:keyword>butter</md:keyword>
    <md:keyword>conv</md:keyword>
    <md:keyword>difference equation</md:keyword>
    <md:keyword>direct form II</md:keyword>
    <md:keyword>DSP</md:keyword>
    <md:keyword>ellip</md:keyword>
    <md:keyword>elliptic low-pass filter</md:keyword>
    <md:keyword>feedback</md:keyword>
    <md:keyword>freqz</md:keyword>
    <md:keyword>gain factor</md:keyword>
    <md:keyword>IIR</md:keyword>
    <md:keyword>impulse response</md:keyword>
    <md:keyword>infinite impulse response</md:keyword>
    <md:keyword>linear time-invariant</md:keyword>
    <md:keyword>LTI</md:keyword>
    <md:keyword>nonlinear phase</md:keyword>
    <md:keyword>notch filter</md:keyword>
    <md:keyword>poles</md:keyword>
    <md:keyword>quantize</md:keyword>
    <md:keyword>zeros</md:keyword>
  </md:keywordlist>
  <md:subjectlist>
    <md:subject>Science and Technology</md:subject>
  </md:subjectlist>
  <md:abstract>Infinite impulse response (IIR) filters are an alternative to finite impulse response (FIR) filters.  Often, an IIR implementaion can meet a given filter specification with less computation than an FIR implementation, but IIR filters induce nonlinear phase and are more sensitive to numerical problems.</md:abstract>
  <md:language>en</md:language>
  <!-- WARNING! The 'metadata' section is read only. Do not edit above.
       Changes to the metadata section in the source will not be saved. -->
</metadata>

<content>
    <section id="sec1">
      <title>Introduction</title>
      <para id="p2">
	Like finite impulse-response (FIR) filters, <term>infinite
	impulse-response</term> (<term>IIR</term>) filters are
	<term>linear time-invariant</term> (<term>LTI</term>) systems
	that can recreate a large range of different frequency
	responses.  Compared to FIR filters, IIR filters have both
	advantages and disadvantages.  On one hand, implementing an
	IIR filter with certain stopband-attenuation and
	transition-band requirements typically requires far fewer
	filter taps than an FIR filter meeting the same
	specifications.  This leads to a significant reduction in the
	computational complexity required to achieve a given frequency
	response.  However, the poles in the transfer function require
	feedback to implement an IIR system.  In addition to inducing
	nonlinear phase in the filter (delaying different frequency
	input signals by different amounts), the feedback introduces
	complications in implementing IIR filters on a fixed-point
	processor.  Some of these complications are explored in <link document="m10813">IIR Filtering: Filter-Coefficient
	Quanitization Exercise in MATLAB</link>.
      </para>
      <para id="p3">
	Later, in the processor exercise, you will explore the
	advantages and disadvantages of IIR filters by implementing
	and examining a fourth-order IIR system on a fixed-point DSP.
	The IIR filter should be implemented as a cascade of two
	second-order, Direct Form II sections.  The data flow for a
	second-order, Direct-Form II section, or <term>bi-quad</term>,
	is shown in <link target-id="fig1"/>.  Note that in Direct Form
	II, the states (delayed samples) are neither the input nor the
	output samples, but are instead the intermediate values
	<m:math>
	  <m:apply>
	    <m:ci type="fn" class="discrete">w</m:ci>
	    <m:ci>n</m:ci>
	  </m:apply>
	</m:math>.
      </para>

      <figure id="fig1">
	<media id="id5369489" alt="">
          <image src="iir_DFIInew.png" mime-type="image/png"/>
          <image src="iir_DFIInew.eps" mime-type="application/postscript"/>
        </media>
	<caption>Second-order, Direct Form II section</caption>
      </figure>
    </section>
  </content>
</document>
