From: natanel on
I am trying to create fix point butter filter to get NUM and DEN for my AVR32 MCU iir filter

the filter will be used over 16 bit wordlength constraints

when DSP16_FORMAT (unsigned 16 bit fix point numbers)

/*! \brief number of integer bits
* \ingroup group_qformat
*/
# define DSP16_QA 1

/*! \brief number of fractional bits
* \ingroup group_qformat
*/
# define DSP16_QB 15

I know I should do it like that
Fs=1000; % sample frequency
Fc=45; %cutoff frequency
[B,A]=butter(7,Fc/(Fs/2));
hd=dfilt.df2(B,A);

%then set hd
set(hd,'Arithmetic','fixed');

from there I am quit confised which other set I should do

any help?
thanks