The design program calculates and displays the filter coefficients as floating-point numbers. If you intend to execute your filter on a floating-point process, you can use the coefficients directly. If however you are targetting a fixed-point processor, or a dedicated FIR chip which uses fixed-point, then you will have to convert the coefficients to fixed-point numbers. This entails truncation of the coefficients, so that they will fit in a given number of bits. This truncation will affect the response of the filter to some extent. The ``truncate to ... bits'' option allows you to investigate the extent of this distortion of the response.
Entering a value (an integer, n say) in the ``truncate to ... bits'' box tells the filter generation program to generate coefficients which can be represented exactly in 1:(n-1) fixed-point, that is with a sign bit and n-1 bits after the binary point. It doesn't actually display the coefficients in that form: that's up to you. (C doesn't have a syntax for fixed-point.)
In more detail, what happens is this. First, the coefficients are all scaled so that they lie in the range
file: /Techref/uk/ac/york/cs/www-users/http/~fisher/mkfilter/trunc.htm, 1KB, , updated: 2003/2/13 03:29, local time: 2024/9/17 05:49,
3.149.214.244:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://piclist.com/techref/uk/ac/york/cs/www-users/http/~fisher/mkfilter/trunc.htm"> Truncated Coefficients </A> |
Did you find what you needed? |
PICList 2024 contributors:
o List host: MIT, Site host massmind.org, Top posters @none found - Page Editors: James Newton, David Cary, and YOU! * Roman Black of Black Robotics donates from sales of Linistep stepper controller kits. * Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters. * Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated! * Contributors: Richard Seriani, Sr. |
Welcome to piclist.com! |
.