<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE document PUBLIC "-//CNX//DTD CNXML 0.5 plus MathML//EN" "http://cnx.rice.edu/cnxml/0.5/DTD/cnxml_mathml.dtd">
<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/" id="m10025">
  
  <name>Lab 3: Theory</name>
  <metadata>
  <md:version>1.1</md:version>
  <md:created>2006/07/26 11:17:54.934 GMT-5</md:created>
  <md:revised>2006/08/20 22:20:52.873 GMT-5</md:revised>
  <md:authorlist>
      <md:author id="tbshen">
      <md:firstname>Thomas</md:firstname>
      
      <md:surname>Shen</md:surname>
      <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: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:email>tbshen@uiuc.edu</md:email>
    </md:maintainer>
  </md:maintainerlist>
  
  <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: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>
</metadata>




  <content>
    <section id="sec1">
      <name>Introduction</name>
      <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 <cnxn document="m10813">IIR Filtering: Filter-Coefficient
	Quanitization Exercise in MATLAB</cnxn>.
      </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 <cnxn target="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 type="image/png" src="iir_DFIInew.png"/>
	<caption>Second-order, Direct Form II section</caption>
      </figure>
    </section>
  </content>
</document>
