本帖最后由 huangzj121 于 2012-10-21 21:33 编辑
用于单片机的DSP算法库4(滤波、FFT、自适应与统计)
大多数电子产品里面跑的还是MCU而不是DSP,由于经常要作一些信号处理,所以把一些通用算法做成模块,成本比DSP低了很多,效率上DSP没有乘法硬件也只是提供汇编库,这里所有操作用指针代替。
基于Cortex M3的芯片STM32L152为原型写的,.obj是上位机VC6编译的,大家可以下载测试,有问题留言,.o是商品,有需要的可以和我们联系,请注明编译环境和版本。
FIR卷积和,IIR差分方程,数据积分,DFT,FFT(由于1024点以下基2、基4以及分裂基方法数量级相差不是很多,而且基2方法容易程序实现,所以一般都采用基2法),互相关,方差,相关系数,功率谱,LMS自适应滤波,RLS自适应滤波,卡尔曼滤波,卡尔曼估计。
/******************************************************************************************
++++++++++++++Copyright Math86A++++++++++++++
Numerical Recipes and Digital Signal Processing
Url: http://www.math86a.icoc.cc
Tel: 13522447534
Email: huangzj121@163.com
h_filter
This program is include some basic calculate and algorithm of digital signal process.
Contain: fixed point convolution,
float point convolution,
fixed point filter difference function,
float point filter difference function,
calculate data's maximum,
calculate data's minimize,
calculate data's average,
calculate data's integral,
calculate data's summation,
calculate 1-dimension discrete-fourier-transform,
calculate 1-dimension inverse discrete-fourier-transform,
calculate 1-dimension fast-fourier-transform,
calculate 1-dimension inverse fast-fourier-transform,
calculate cross correlate,
calculate variance,
calculate correlate coefficient,
calculate power spectrum,
LMS adaptive filter,
RLS adaptive filter,
kalman adaptive filter,
kalman estimate.
Author: huang zhen jiang
Date: 2012 / 08 / 19
******************************************************************************************/
......
http://www.math86a.icoc.cc/nd.jsp?id=11&moduleId=3&fromColId=4
http://www.math86a.icoc.cc/nd.jsp?id=11&moduleId=3&fromColId=4
http://www.math86a.icoc.cc/nd.jsp?id=11&moduleId=3&fromColId=4 |