Sign in

username:

password:



Not a member?

Search compdsp



Search tips

comp.dsp by Keywords

Adaptive Filter | ADPCM | ADSP | ADSP-2181 | Aliasing | AMR | Anti-Aliasing | ARMA | Autocorrelation | AutoCovariance | Beamforming | Bessel | Blackfin | Butterworth | C6713 | CCS | Chebyshev | CIC Filter | Circular Convolution | Code Composer Studio | Comb Filter | Compression | Convolution | Cross Correlation | DCT | Decimation | Deconvolution | Demodulation | DM642 | DSP Boards | DSP/BIOS | DTMF | Echo Cancellation | Equalization | Equalizer | ETSI | EZLITE (Ez-kit Lite) | FFT | FFTW | FIR Filter | Fixed Point | FSK | G.711 | G.723 | G.729 | Gaussian Noise | Goertzel | GPIO | Hilbert Transform | IFFT | IIR Filter | Interpolation | Invariance | JTAG | Kalman | Laplace Transform | Levinson | LPC | McBSP | MIPS | Modulation | MPEG | Multirate | Notch Filter | Nyquist | OFDM | Oversampling | Pink Noise | Pitch | PLL | Polyphase | QAM | QDMA | Quantization | Quantizer | Radar | Random Noise | Reed Solomon | Remez | Resampling | RTDX | Sampling | Sharc | TI C6711 | Undersampling | Viterbi | Wavelets | White Noise | Wiener Filter | Windowing | XDS510PP | Z Transform

Sponsor

Industry's highest performing at the lowest power DSPs now as low as $5.00*
Start development today!
*volume pricing for 10ku

Discussion Groups

Free Online Books

See Also

Embedded SystemsFPGAElectronics

Discussion Groups | Comp.DSP | multirate implementation on fix point DSP and efficiency

There are 3 messages in this thread.

You are currently looking at messages 0 to 3.


multirate implementation on fix point DSP and efficiency - domistep - 2005-09-12 07:41:00

Hye,

 I have a question to try to find a way to improve my processing.

I use a multirate filter with decimation.
There is a decimation by 40. One FIr is used then decimation, and the 1
IIR with decimation, then a second IIR with decimation, then again oner
IIR and decimation and at last one FIr .

I use a fix point DSP. The filter are designed in 16 bits inputs / outputs
(32 bits for computation).
It appears that the results is that i have in output a 12bits resoution
and 4 lsb bits are lost during the stages.

How can i improve this? 
Should i change the IIR design? or thedecimation?


thank you


		
This message was sent using the Comp.DSP web interface on
www.DSPRelated.com
______________________________
New DSP Code Snippets Section now Live.   Learn more about the reward program for contributors here.

Re: multirate implementation on fix point DSP and efficiency - Tim Wescott - 2005-09-12 09:38:00



domistep wrote:

> Hye,
> 
>  I have a question to try to find a way to improve my processing.
> 
> I use a multirate filter with decimation.
> There is a decimation by 40. One FIr is used then decimation, and the 1
> IIR with decimation, then a second IIR with decimation, then again oner
> IIR and decimation and at last one FIr .
> 
> I use a fix point DSP. The filter are designed in 16 bits inputs / outputs
> (32 bits for computation).
> It appears that the results is that i have in output a 12bits resoution
> and 4 lsb bits are lost during the stages.
> 
> How can i improve this? 
> Should i change the IIR design? or thedecimation?
> 
> 
This sort of problem is generally caused by an implementation detail 
that is not easy to track down without looking at code -- and many folks 
(certainly I) generally don't look at code in newsgroup postings unless 
there's less than 5 or 10 lines.

Check to make sure that you're using the correct gains going into your 
internal states.  You should have gains that will neither cause your 
states to overflow or underflow.  The best way to do this is to write 
out the difference equations from your input to your states, find the 
transfer function, then do a frequency sweep.  This process is outlined 
for somewhat different systems in 
http://www.wescottdesign.com/articles/zTransform/z-transforms.html, but 
it works fine for filters.

-- 

Tim Wescott
Wescott Design Services
http://www.wescottdesign.com
______________________________
New DSP Code Snippets Section now Live.   Learn more about the reward program for contributors here.

Re: multirate implementation on fix point DSP and efficiency - dbell - 2005-09-12 11:57:00

Why did you pick IIR filters?

Dirk

domistep wrote:
> Hye,
>
>  I have a question to try to find a way to improve my processing.
>
> I use a multirate filter with decimation.
> There is a decimation by 40. One FIr is used then decimation, and the 1
> IIR with decimation, then a second IIR with decimation, then again oner
> IIR and decimation and at last one FIr .
>
> I use a fix point DSP. The filter are designed in 16 bits inputs / outputs
> (32 bits for computation).
> It appears that the results is that i have in output a 12bits resoution
> and 4 lsb bits are lost during the stages.
>
> How can i improve this?
> Should i change the IIR design? or thedecimation?
>
>
> thank you
>
>
>
> This message was sent using the Comp.DSP web interface on
> www.DSPRelated.com

______________________________
New DSP Code Snippets Section now Live.   Learn more about the reward program for contributors here.