We'd like to implement some IIR filters using the DSPLib floating point libraries. We created a couple of filters using MATLAB. The documentation for DSPF_sp_iir says that it's a fourth order auto-regressive moving average (ARMA), so we used the MATLAB fdatool and converted the filter to an ARMA 4th order filter. MATLAB outputs 4 lattice values and 5 ladder values. However, if we use those values as the coefficients to the DSPF_sp_iir function, we're not getting what we expect.
Is there a trick to ordering the coefficients? We tried both
assigning the first lattice coefficients starting with h1[0], and we tried
assigning the lattice coefficients starting with h1[1].
Or is there a different filter type we should specify in MATLAB to generate the coefficients?
Or is there a different tool we should use to generate the coefficients?
Thanks.