野火电子论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 19704|回复: 3

求助ISO开发板 做FFT filter

[复制链接]
发表于 2014-3-31 11:06:48 | 显示全部楼层 |阅读模式
我添加了DSP库 但是运行结果不正确,有些代码读不懂  有做过的大叔大婶帮帮忙,Thanks
回复

使用道具 举报

发表于 2014-3-31 11:40:07 | 显示全部楼层
有示范例程的吧,研究一下例程。我们也没研究过dsp
回复 支持 反对

使用道具 举报

 楼主| 发表于 2014-3-31 16:09:05 | 显示全部楼层
#define N 64 /*Number of points*/
uint32_t x[N],y[N]; /* input and output arrays */
uint16_t real[N], imag[N]; /* real and imaginary arrays */
/* Fill the input array */
for(i=0; i<N; i++)
x[i] = (((uint16_t)(real[i])) | ((uint32_t)(imag[i]<<16)));
cr4_fft_64_stm32(y, x, N); /*computes the FFT of the x[N] samples*/ 按照这个官方例程 我虚拟了一个信号,然后计算FFT 得出的Y值不正确。。。。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2014-3-31 16:10:33 | 显示全部楼层
山外メ雲ジ 发表于 2014-3-31 11:40
有示范例程的吧,研究一下例程。我们也没研究过dsp

#define N 64 /*Number of points*/
uint32_t x[N],y[N]; /* input and output arrays */
uint16_t real[N], imag[N]; /* real and imaginary arrays */
/* Fill the input array */
for(i=0; i<N; i++)
x = (((uint16_t)(real)) | ((uint32_t)(imag<<16)));
cr4_fft_64_stm32(y, x, N); /*computes the FFT of the x[N] samples*/ 按照这个官方例程 我虚拟了一个信号,然后计算FFT 得出的Y值不正确。。。。
还有他的输入输出都是uint型
回复 支持 反对

使用道具 举报

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

本版积分规则

联系站长|手机版|野火电子官网|野火淘宝店铺|野火电子论坛 ( 粤ICP备14069197号 ) 大学生ARM嵌入式2群

GMT+8, 2024-5-4 19:07 , Processed in 0.027981 second(s), 23 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表