资源简介
stm32dsp库可以进行fft计算支持64点256点1024点等运算
代码片段和文件信息
/**
******************************************************************************
* @file STM32F10x_DSP_Lib/src/iir_stm32.c
* @author MCD Application Team
* @version V2.0.0
* @date 04/27/2009
* @brief This source file contains IIR functions in C
******************************************************************************
* @copy
*
* THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
* TIME. AS A RESULT STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
* DIRECT INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
* FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
* CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
*
* © COPYRIGHT 2009 STMicroelectronics
*/
/* Includes ------------------------------------------------------------------*/
#include “stm32_dsp.h“
#include “stm32f10x.h“
/** @addtogroup STM32F10x_DSP_Lib
* @{
*/
/* Private typedef -----------------------------------------------------------*/
/* Private define ------------------------------------------------------------*/
/* Private macro -------------------------------------------------------------*/
/* Private variables ---------------------------------------------------------*/
/* Private function prototypes -----------------------------------------------*/
/* Private functions ---------------------------------------------------------*/
/**
* @brief Canonique Form of 8th order IIR filter factorized in
* 4 biquads sections in series.
* @param y: Output array .
* @param x: Input array
* @param IIRCoeff: IIR Filter Coefficients an array of 20 shorts
* @param ny: the number of output samples
* @retval : None
*/
void iir_biquad_stm32(uint16_t *y uint16_t *x int16_t *IIRCoeff uint16_t ny)
{
uint32_t i;
uint32_t w1_2 = 0 w1_1 = 0 w1;
uint32_t w2_2 = 0 w2_1 = 0 w2;
uint32_t w3_2 = 0 w3_1 = 0 w3;
uint32_t w4_2 = 0 w4_1 = 0 w4;
/** Canonic form **/
/* 1st section */
for (i=0; i {
w1 = x[2+i] - IIRCoeff[0]*w1_1 - IIRCoeff[1]*w1_2;
y[2+i] = (IIRCoeff[2]*w1 + IIRCoeff[3]*w1_1 + IIRCoeff[4]*w1_2);
w1_2 = w1_1;
w1_1 = w1;
}
/* 2nd section */
for (i=0; i {
w2 = y[2+i] - IIRCoeff[5]*w2_1 - IIRCoeff[6]*w2_2;
y[2+i] = (IIRCoeff[7]*w2 + IIRCoeff[8]*w2_1 + IIRCoeff[9]*w2_2);
w2_2 = w2_1;
w2_1 = w2;
}
/* 3rd section */
for (i=0; i {
w3 = y[2+i] - IIRCoeff[10]*w3_1 - IIRCoeff[11]*w3_2;
y[2+i] = (IIRCoeff[12]*w3 + IIRCoeff[13]*w3_1 + IIRCoeff[14]*w3_2);
w3_2 = w3_1;
w3_1 = w3;
}
/* 4th section */
for (i=0; i {
w4 = y[2+i] - IIRCoeff[15]*w4_1 - IIRCoeff[16]*w4_2;
y[2+i] = (IIRCoeff[17]*w4 + IIRC
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2012-07-18 09:39 STM32F10x_DSP_Lib\
目录 0 2012-07-18 09:59 STM32F10x_DSP_Lib\inc\
文件 2721 2009-04-30 13:56 STM32F10x_DSP_Lib\inc\stm32_dsp.h
文件 23065 2009-04-30 13:56 STM32F10x_DSP_Lib\inc\table_fft.h
目录 0 2012-07-20 21:43 STM32F10x_DSP_Lib\src\
目录 0 2012-07-18 09:39 STM32F10x_DSP_Lib\src\asm\
目录 0 2012-07-18 14:37 STM32F10x_DSP_Lib\src\asm\arm\
文件 29018 2009-04-22 12:24 STM32F10x_DSP_Lib\src\asm\arm\cr4_fft_1024_stm32.s
文件 14448 2009-04-22 12:24 STM32F10x_DSP_Lib\src\asm\arm\cr4_fft_256_stm32.s
文件 10540 2008-10-10 11:45 STM32F10x_DSP_Lib\src\asm\arm\cr4_fft_64_stm32.s
文件 5019 2009-04-30 13:56 STM32F10x_DSP_Lib\src\asm\arm\fir_stm32.s
文件 3826 2009-04-30 13:56 STM32F10x_DSP_Lib\src\asm\arm\iirarma_stm32.s
文件 2705 2009-04-30 13:56 STM32F10x_DSP_Lib\src\asm\arm\PID_stm32.s
文件 122 2012-07-18 09:32 STM32F10x_DSP_Lib\src\asm\arm\TcfTransactionLog.csv
目录 0 2012-07-18 09:29 STM32F10x_DSP_Lib\src\asm\gcc\
文件 27485 2009-04-30 13:56 STM32F10x_DSP_Lib\src\asm\gcc\cr4_fft_1024_stm32.s
文件 12088 2009-04-30 13:56 STM32F10x_DSP_Lib\src\asm\gcc\cr4_fft_256_stm32.s
文件 8072 2009-04-30 13:56 STM32F10x_DSP_Lib\src\asm\gcc\cr4_fft_64_stm32.s
文件 4631 2009-04-30 13:56 STM32F10x_DSP_Lib\src\asm\gcc\fir_stm32.s
文件 3400 2009-04-30 13:56 STM32F10x_DSP_Lib\src\asm\gcc\iirarma_stm32.s
文件 2467 2009-04-30 13:56 STM32F10x_DSP_Lib\src\asm\gcc\PID_stm32.s
目录 0 2012-07-18 09:29 STM32F10x_DSP_Lib\src\asm\iar\
文件 29193 2009-04-30 13:56 STM32F10x_DSP_Lib\src\asm\iar\cr4_fft_1024_stm32.s
文件 14256 2009-04-30 13:56 STM32F10x_DSP_Lib\src\asm\iar\cr4_fft_256_stm32.s
文件 10474 2009-04-30 13:56 STM32F10x_DSP_Lib\src\asm\iar\cr4_fft_64_stm32.s
文件 5220 2009-04-30 13:56 STM32F10x_DSP_Lib\src\asm\iar\fir_stm32.s
文件 3827 2009-04-30 13:56 STM32F10x_DSP_Lib\src\asm\iar\iirarma_stm32.s
文件 2692 2009-04-30 13:56 STM32F10x_DSP_Lib\src\asm\iar\PID_stm32.s
文件 3189 2009-04-30 13:56 STM32F10x_DSP_Lib\src\iir_stm32.c
文件 2921 2009-04-30 13:56 STM32F10x_DSP_Lib\src\PID_C_stm32.c
相关资源
- STM32F103之实验2控制1个电机并采用编码
- 基于STM32F1 Modbus通信源代码
- STM32库函数
- STM32 颜色识别代码
- STM32F103VET6原理图和pcb
- 零死角玩转STM32—F407霸天虎:视频
- stm32高精度测距
- EC20 STM32 AT 命令
- STM32f103c8t6 48pin引脚表
- STM32F103ZET6输出正弦波和三角波
- 基于stm32f4编码器模式
- STM32实现完整SBUS协议解析与编码
- 基于STM32F4的DHT11温湿度传感器的源代
- 基于STM32F4的PWM程序
- RFID-RC522_FOR_STM32F103RB_KEIL5_V1.0.0
- stm32基于战舰修改八路pwm
- STM32-OLED12864.rar
- STM32F107原理图封装库
- 中景园电子0.96OLED显示屏_STM32ZET系列
- MPU9250-MPL-STM32F1
- STM32的DS3231时钟芯片驱动串口测试程序
- LDC1000 stm32源码
- stm32cube+lwip无法PING通,解决思路
- STM32Cube_FW_F4_V1.3.0
- GP2Y10与STM32F103的程序
- STM32F4全系列芯片封装+原理图库
- STM32F103超声波检测
- STM32电路图(原理图
- 基于stm32碰撞球游戏仿真设计程序源码
- uwb多基站多信标定位stm32源码
评论
共有 条评论