<?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:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="m11458">
  <name>Hold operation</name>
  <metadata>
  <md:version>1.10</md:version>
  <md:created>2003/07/17 03:09:24 GMT-5</md:created>
  <md:revised>2004/01/09 01:48:22.023 US/Central</md:revised>
  <md:authorlist>
    <md:author id="Anders">
      <md:firstname>Anders</md:firstname>
      
      <md:surname>Gjendemsjo</md:surname>
      <md:email>gjendems@NO-SPAM.tele.ntnu.no</md:email>
    </md:author>
  </md:authorlist>

  <md:maintainerlist>
    <md:maintainer id="Anders">
      <md:firstname>Anders</md:firstname>
      
      <md:surname>Gjendemsjo</md:surname>
      <md:email>gjendems@NO-SPAM.tele.ntnu.no</md:email>
    </md:maintainer>
  </md:maintainerlist>
  
  <md:keywordlist>
    <md:keyword>Hold</md:keyword>
    <md:keyword>Practical</md:keyword>
    <md:keyword>Reconstruction</md:keyword>
  </md:keywordlist>

  <md:abstract>Short description of the hold operation for reconstruction</md:abstract>
</metadata>

  <content>
    <para id="s0p1">
        Any practical reconstruction system must input finite length pulses into the
        reconstruction filter. The reason is that we need nonzero <cnxn document="m11526" target="s1">energy</cnxn> in the nonzero pulses.
    </para>

    <section id="s1">
	<name>Introduction</name>
	<para id="s1p1">
	    The operation performed to produce these pulses is called <emphasis>hold</emphasis>.
	    Using the hold-operation we get pulses with a predefined length
	    and height proportional to the input to the digital-to-analog
	    converter. By means of the hold operation we get nonzero pulses with <cnxn document="m11526" target="s1">energy</cnxn>.
		
	    <figure id="f1">
		<media type="image/jpg" src="hold.jpg"/>
		<caption>Output signal from the hold device</caption>

	    </figure>
	</para>	    
	<para id="s1p2">
	    As we have made changes relative to the <cnxn document="m11443" target="s2p1">ideal reconstruction</cnxn>,
	    we need to look at the output signal the reconstruction filter will give us. 
	    Quite obviously the output will not be the original signal. So, is it still useful?
	</para>
	</section>

	<section id="s2">
	    <name>Analysis</name>

	<para id="s2p1">
	    As before, and as will be the situation later, using the frequency domain simplifies the analysis.
	    To model the hold operation we use <cnxn document="m11450">convolution</cnxn> with a 
	    <cnxn document="m11450">delta function</cnxn> 
	    and a square pulse. The square pulse has unit height and duration <m:math><m:ci>τ</m:ci></m:math>.
	    The duration <m:math><m:ci>τ</m:ci></m:math> is the <emphasis>holding time</emphasis>, i.e. how
	    long we <emphasis>hold</emphasis> the incoming value.
	    For the pulses not to overlap we must choose
	    <m:math>
		<m:apply>
		    <m:lt/>
		    <m:ci>τ</m:ci>
		    <m:ci><m:msub><m:mi>T</m:mi><m:mi>s</m:mi></m:msub></m:ci>
		</m:apply>
	    </m:math>. 
	    The convolution can be seen as a filtering operation, using the square pulse as the
	    impulse response. If we <cnxn document="m11450">fourier transform</cnxn> the square pulse
	    we obtain the frequency response of the filter, which is a 
	    <link src="http://ccrma-www.stanford.edu/~jos/Interpolation/sinc_function.html">sinc</link> function.
	</para>    
	<para id="s1p3">
	    <cnxn target="f2"/> shows the frequency response of the analog square pulse filter.
	    We have plotted the frequency response for
	    <m:math>
		<m:apply>
		    <m:eq/>
		    <m:ci>τ</m:ci>
		    <m:ci><m:msub><m:mi>T</m:mi><m:mi>s</m:mi></m:msub></m:ci>
		</m:apply>
	    </m:math> and
	    <m:math>
		<m:apply>
		    <m:eq/>
		    <m:ci>τ</m:ci>
		    <m:apply>
			<m:divide/>
			<m:ci><m:msub><m:mi>T</m:mi><m:mi>s</m:mi></m:msub></m:ci>
			<m:cn>2</m:cn>
		    </m:apply>
		</m:apply>
	    </m:math>.
	    <figure id="f2">
	        <media type="image/jpg" src="Hold_freq.jpg"/>
		<caption>
		    Frequency response of the analog square filter 
		    as a function of <emphasis>digital frequency</emphasis> f.
		</caption>
	    </figure>
	    From the figure we can make the following observations
	    <list id="l1">
		<item>The signal will be attenuated more and more towards the band edge,
		    <m:math><m:apply><m:eq/><m:ci>f</m:ci><m:cn>0.5</m:cn></m:apply></m:math>
		</item>
		<item>For
		      <m:math>
			  <m:apply>
			      <m:eq/>
			      <m:ci>τ</m:ci>
			      <m:ci><m:msub><m:mi>T</m:mi><m:mi>s</m:mi></m:msub></m:ci>
			  </m:apply>
		      </m:math>
		      the maximum attenuation is 3 dB at
		      <m:math><m:apply><m:eq/><m:ci>f</m:ci><m:cn>0.5</m:cn></m:apply></m:math>.
		</item>
		<item>For
		      <m:math>
			  <m:apply>
			      <m:eq/>
			      <m:ci>τ</m:ci>
			      <m:apply>
				  <m:divide/>
				  <m:ci><m:msub><m:mi>T</m:mi><m:mi>s</m:mi></m:msub></m:ci>
				  <m:cn>2</m:cn>
		    	      </m:apply>
			  </m:apply>
		      </m:math>
		      the maximum attenuation is 0.82 dB at
		      <m:math><m:apply><m:eq/><m:ci>f</m:ci><m:cn>0.5</m:cn></m:apply></m:math>.
		</item>
	    </list>
	    The distortion is a result of linear operations and can thus be compensated for
	    by using a filter with opposite frequency response in the passband,
	    <m:math>
		<m:apply>
		    <m:in/>
		    <m:ci>f</m:ci>
		    <m:interval>
		        <m:apply><m:minus/><m:cn>0.5</m:cn></m:apply>
			<m:cn>0.5</m:cn>
		    </m:interval>
		</m:apply>
	    </m:math>.
	    The compensation will not be exact, but we can make the approximation as accurate
	    as we wish. The compensation can be made in the reconstruction filter or after the reconstruction
	    by using a separate analog filter. One can also predistort the signal in a digital filter
	    before reconstruction. Where to put the compensator and it's quality are cost considerations.

	</para>
    </section><!--End section s2-->
    <section id="s3">	
        <para id="s3p1">
          Go to?
          <list id="l2" type="inline">
		  <item><cnxn document="m11419">Introduction</cnxn></item>
		  <item><cnxn document="m11423">Proof</cnxn></item>
                  <item><cnxn document="m11443">Illustrations</cnxn></item>
                  <item><cnxn document="m11448">Aliasing applet</cnxn></item>
  		  <item><cnxn document="m11465">System view</cnxn></item>
            	  <item><cnxn document="m11442">Exercises</cnxn></item>	
	   </list>
        </para>
    </section>


  </content>
  
</document>
