09.10.2013 Views

AVR223: Digital Filters with AVR - Atmel Corporation

AVR223: Digital Filters with AVR - Atmel Corporation

AVR223: Digital Filters with AVR - Atmel Corporation

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

2527B-<strong>AVR</strong>-07/08<br />

<strong><strong>AVR</strong>223</strong><br />

defined as the ratio between output and input of a filter in the Z-domain, as shown in<br />

Equation 4. Note that the transfer function is the Z-transform of the filter’s impulse<br />

response, h[n].<br />

Equation 4: Transfer Function of General <strong>Digital</strong> Filter.<br />

Y ( z)<br />

H ( z)<br />

= =<br />

X ( z)<br />

N<br />

∑<br />

j=<br />

0<br />

M<br />

∑<br />

i=<br />

0<br />

b<br />

j<br />

a ⋅ z<br />

i<br />

⋅ z<br />

− j<br />

−i<br />

N<br />

∑<br />

=<br />

1+<br />

b<br />

j<br />

j=<br />

0<br />

M<br />

∑<br />

i=<br />

1<br />

⋅ z<br />

a ⋅ z<br />

i<br />

− j<br />

As can be seen, the numerator describes the feed-forward part and the denominator<br />

describes the feedback part of the filter function. For more information on the Zdomain,<br />

refer to the suggested literature at the end of this document.<br />

For the purposes of implementing a filter from a given transfer function, it is sufficient<br />

to know that z in the Z-domain represents a delay element, and that the exponent<br />

defines the delay length in units of samples. Figure 2-1 illustrates this <strong>with</strong> a general<br />

digital filter in Direct Form 1 representation.<br />

−i<br />

3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!