[STM32F1] arm_math数学库 arm_biquad_cascade_df1_q15使用

[复制链接]
3439|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 | 显示全部楼层
这个函数就几个参数,看看说明就好了吧
  1. void arm_biquad_cascade_df1_q15        (        const arm_biquad_casd_df1_inst_q15 *         S,
  2. q15_t *         pSrc,
  3. q15_t *         pDst,
  4. uint32_t         blockSize
  5. )               
  6. Parameters
  7. [in]        *S        points to an instance of the Q15 Biquad cascade structure.
  8. [in]        *pSrc        points to the block of input data.
  9. [out]        *pDst        points to the location where the output result is written.
  10. [in]        blockSize        number of samples to process per call.
  11. Returns
  12. none.
  13. Scaling and Overflow Behavior:

  14. 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.
  15. 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 | 显示全部楼层
598330983 发表于 2016-2-6 11:06 | 显示全部楼层
ARM官方DSP库IIR滤波器的实现




第40章ARM官方DSP库IIR滤波器的实现(STM32).pdf (1.21 MB, 下载次数: 45)

598330983 发表于 2016-2-6 11:16 | 显示全部楼层
给你一个DSP相关的ARM教程。。STM43F4系列的
http://pan.baidu.com/s/1mhjcwvm
您需要登录后才可以回帖 登录 | 注册

本版积分规则

17

主题

136

帖子

3

粉丝
快速回复 在线客服 返回列表 返回顶部