在线咨询
eetop公众号 创芯大讲堂 创芯人才网
切换到宽版

EETOP 创芯网论坛 (原名:电子顶级开发网)

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
芯片精品文章合集(500篇!) 创芯人才网--重磅上线啦!
查看: 4426|回复: 15

[原创] AD公司BF DSP 算法包 与大家共享

[复制链接]
发表于 2006-10-31 14:59:04 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

x
本帖最后由 cjsb37 于 2013-4-29 09:01 编辑

File Name:       fir_032101.zip
File Contents:   read_me.txt
                 filter.h
                 fir.asm
                 fir.dxe
                 fir_stall.txt
                 mds_def.h
                 tfilter.h
                 tfir.c
                 tfir.h
Module Name:     Finite Impulse response filter
Function Name:   __fir
Description:     This function performs FIR filter operation on given input.
Operands:        R0- Address of input vector, R1-Address of output vector,
                 R2- Number of input elements
                 Filter structure is on stack.            
Prototype:
             void fir(const fract16 x[],fract16 y[],int n,fir_state_fr16 *s);
   
                x[]  -  input array
                y[]  -  output array
                n    -  number of input samples(even)
                s    -  Structure of type fir_state_fr16:
       {
                      fract16 *h, // filter coefficients
                      fract16 *d, // start of delay line
                      int k,      // no. of coefficients
       } fir_state_fr16;
Registers used  :   
R0, R1, R2, R3, R3
I0 -> Address of delay line (used for updating the delay line)
    I1 -> Address of delay line (used for fetching the delay line data)
I2 -> Address of filter coeff. h0, h1 , ... , hn-1
I3 -> Address of output array y[]
P0 -> Address of input array x[]
P1, P2
Computation Time:
Total execution time for Number of Samples= Ni  & number of coefficients = Nc
Kernal Cycle Count:     (Ni/2){4 + ((Nc/2-1)*2)}  
Initialization:         36 + 5

For Ni=256 & Nc=8      Total execution time = 1321 cycles         
FIR filter code size : 146 bytes
FIR filter core size :  44 bytes





fir_032101.zip

921.54 KB, 下载次数: 41 , 下载积分: 资产 -2 信元, 下载支出 2 信元

发表于 2006-11-21 22:57:37 | 显示全部楼层

支持一下
发表于 2008-3-16 07:27:38 | 显示全部楼层
kankan
头像被屏蔽
发表于 2008-5-26 12:16:24 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
头像被屏蔽
发表于 2008-5-27 23:16:19 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
发表于 2008-5-28 11:33:58 | 显示全部楼层
谢谢分享
发表于 2008-7-13 18:52:59 | 显示全部楼层
好好好好
发表于 2008-10-20 17:48:46 | 显示全部楼层
好东西
谢谢分享
发表于 2008-10-30 15:43:41 | 显示全部楼层
感谢楼主
发表于 2008-12-1 18:35:17 | 显示全部楼层

eryer非常感谢。共享了

:lol :lol
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

站长推荐 上一条 /1 下一条

小黑屋| 手机版| 关于我们| 联系我们| 在线咨询| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2024-9-29 00:19 , Processed in 0.034174 second(s), 11 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
快速回复 返回顶部 返回列表