打印
[STM32F1]

arm_math数学库 arm_biquad_cascade_df1_q15使用

[复制链接]
2491|5
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
destiny_zzj|  楼主 | 2016-2-5 09:45 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
谁能给个arm_biquad_cascade_df1_q15的使用例程,用来做低通滤波器的,采样频率20kHz,截止频率100Hz
沙发
大道至简| | 2016-2-5 09:52 | 只看该作者
还没有放假啊

使用特权

评论回复
板凳
xyz549040622| | 2016-2-5 15:06 | 只看该作者
这个函数就几个参数,看看说明就好了吧
void arm_biquad_cascade_df1_q15        (        const arm_biquad_casd_df1_inst_q15 *         S,
q15_t *         pSrc,
q15_t *         pDst,
uint32_t         blockSize
)               
Parameters
[in]        *S        points to an instance of the Q15 Biquad cascade structure.
[in]        *pSrc        points to the block of input data.
[out]        *pDst        points to the location where the output result is written.
[in]        blockSize        number of samples to process per call.
Returns
none.
Scaling and Overflow Behavior:

The function is implemented using a 64-bit internal accumulator. Both coefficients and state variables are represented in 1.15 format and multiplications yield a 2.30 result. The 2.30 intermediate results are accumulated in a 64-bit accumulator in 34.30 format. There is no risk of internal overflow with this approach and the full precision of intermediate multiplications is preserved. The accumulator is then shifted by postShift bits to truncate the result to 1.15 format by discarding the low 16 bits. Finally, the result is saturated to 1.15 format.
Refer to the function arm_biquad_cascade_df1_fast_q15() for a faster but less precise implementation of this filter for Cortex-M3 and Cortex-M4.

使用特权

评论回复
地板
598330983| | 2016-2-6 10:05 | 只看该作者
5
598330983| | 2016-2-6 11:06 | 只看该作者
ARM官方DSP库IIR滤波器的实现




第40章ARM官方DSP库IIR滤波器的实现(STM32).pdf (1.21 MB)

使用特权

评论回复
6
598330983| | 2016-2-6 11:16 | 只看该作者
给你一个DSP相关的ARM教程。。STM43F4系列的
http://pan.baidu.com/s/1mhjcwvm

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

17

主题

136

帖子

3

粉丝