DSP library for mcf52259

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

DSP library for mcf52259

890件の閲覧回数
serkanyanar
Contributor I

I am using mcf52259 and CW for MCU v10.3. I want to use dsp functions like fft or ifft.

 

I have tried CFDSPLIB (http://cache.freescale.com/files/32bit/doc/ref_manual/DSPLIBUMSW.zip) but it didn't work with mcf52259.

 

Do you know any library for that purpose?  Or do i have to write it with assembly using this manual (http://www.freescale.com/files/32bit/doc/ref_manual/DSPLIBUM.pdf) ?

 

Thanks.

ラベル(1)
タグ(3)
1 返信

605件の閲覧回数
TomE
Specialist II

> but it didn't work with mcf52259

I'm guessing that is due to the code having <#include "mcf5282.h"> in it. It may also give you BIG problems because code that old was usually written for the "other parameter passing model" of CW used prior to CW7.2.

Search in this forum for "CW7 parameter passing" to see all the previous problems people have had with this.

Coldfire Lite modified for use with Codewarrior 7.2 available for downloading!

I would suggest you start a new project and cut/paste relevant slabs of code from the DSPLIBUMSW sources into your code. You might get part way there just changing that include to one that matches your chip, but you're going to have to seriously rewrite ALL of the Assembly files after reverse-engineering which parameters are in what registers. It might be easier to write some "shim" code that adjusts the stack so you can use the old sources as-is.

Search Google for "coldfire dsp library" to find pages like:

http://dev.emcelettronica.com/speed-caculation-emac-and-mac-coldfire

http://forum.embeddedethernet.com/viewtopic.php?f=5&t=41

Interestingly, the following:

http://www.freescale.com/files/dsp/doc/white_paper/MCF5XXXDSPWP.pdf


gives a benchmark for a "Motor Servo Application" and the speedup is only 1.7 over straight C. So if you don't need "ultimate speed" it might be better to use a straight C library.

If you need the performance it might be better to change to a different chip that comes with working code, maybe something ARM or DSP based..

Tom