- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
用单片机做fft(Using singlechip to do FFT)
用单片机做fft(Using singlechip to do FFT)
The task is to use the microcontroller to do FFT (fast discrete Fourier transform), I think the microcontroller is increasingly invincible...
So, for a few days buried in time and space in the struggle. Because of the hardware resources and conditions of SCM is limited, can not easily be FFT like PC MatLab, US (SPCE061A) the fastest clock frequency is about 50MHz, the RAM 2K ROM 32K words, words from the time before. Data structure and algorithm, to think of the use of space for time or space for time, now, that is easier said than done, because no matter what change what is right, the loss of efficiency for PC application (I now level), can be ignored no, not ACM (the only mistake. Is in a ACM game).
Overall, the biggest weakness is that the single speed is too slow, simply can not be used for real time FFT, and to manually start the operation speed too slow unacceptably. In order to speed up a few days, I struggled on the optimization of algorithm. If not because of data accuracy and certain requirements (Khan), not using 8Bit data, I will certainly compress two data into a word (16 bits) in order to save space. Every drop of oil firm squeeze MCU! I will be all the redundant computation into independent variables and then calculating reuse, and even local constants. I also use it as a constant, table (although it is unclear how the C will be written to the ROM constant table area, then sweat a ~). Now the only hope in, support ability of SCM to floating point numbers... Once encountered I will float into an integer, Would not take microcontroller to count the float, and the amount of calculation is too large a little... So far, only compiled by GCC, and the result is correct (compared with MabLab), then still have a long way to go ah
Stick out the main part of the code:
/************************************************************
//FFT (fast discrete Fourier transform)
In this case 8 / / 256 data points
//HUST STI OE0402 POPAP
您可能关注的文档
- 招聘测试要求(Recruitment test requirements).doc
- 指令引用内存错误解决办法(Instruction reference memory error solution).doc
- 拥有领先技术支撑体系 云烟是这样炼出来的(With the leading technology support system, Yunyan is refining it).doc
- 指令引用的,该内存不能为read或written(Instruction referenced, this memory cannot be read or written).doc
- 指令表(Instruction list).doc
- 指导发动机冷却液泄漏故障实例检修(Troubleshooting of coolant leakage in engine).doc
- 指环王3攻略(The Lord of the rings 3).doc
- 指纹的提取鉴定方法(Method for extracting and identifying fingerprints).doc
- 振动电机的应用范围、工作原理及使用规范(Application range, working principle and operation specification of vibrating motor).doc
- 掌握快乐的钥匙(Master the key to happiness).doc
- 用友u8建账流程(UF U8 accounts process).doc
- 用六大代码问题检验你的java知识能力(Test your java knowledge with six major code problems).doc
- 用友打印错误调试(UF print error debugging).doc
- 用友u8费用管理软件(UF U8 cost management software).doc
- 用友薪资模块题(UF salary module).doc
- 用友财务指引(UF financial guidance).doc
- 用命令打开控制面板(Open the control panel with commands).doc
- 用命令启动控制面板和使用rundll32大全(Start the control panel with commands and use the rundll32 Encyclopedia).doc
- 用寒气堆积的部位来诊断病症(Diagnose disease by accumulation of cold).doc
- 用布艺家品改变家居装饰风貌(Use fabric to change the style of house decoration).doc
文档评论(0)