DSP课程设计_fir数字滤波器_第1页
DSP课程设计_fir数字滤波器_第2页
DSP课程设计_fir数字滤波器_第3页
DSP课程设计_fir数字滤波器_第4页
DSP课程设计_fir数字滤波器_第5页
已阅读5页,还剩10页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、Following parts of ordinary bolt connection: wall-beams, purlins, knee. Design of drainage, electrical, heating, ventilation, air conditioning, power should be subject to safety requirements for steel structures of other professions, it is forbidden to weld hanging load and increased roof and column

2、s. Construction prepared and the construction layout first section material prepared and the processing production prepared according to Zhejiang more Palace steel limited and Wuhan intelligent elevator limited by signed of contract file and the Institute provides of steel design blueprint, I compan

3、y and the Organization Technology Department, production department, procurement Department, bid do Engineering Department, related production sector for drawings triage, and according to owners requirements timely design out production and the processing detail and for has related professional sect

4、or of strictly triage, specific work process following: Bid do bid notice Technology Department add up do procurement department production department quality Department Engineering Department Technology Department production and the processing detail proposed Hou, by add up do coordination the sect

5、or of supporting work, and by figure line by varieties, and specifications, and quality for classified, and notification Procurement Department for material of market survey and procurement, by quality Department according to by purchased material of specifications varieties for quality review and t

6、est, not qualified of material varieties and specifications strongly ban for the engineering in the, After passing inspection informed the workshop of production of timber according to strict production details of production, workshop organized by the General Manager before the production technology

7、 and security sector technical safety training, safety education company to strictly three-level disclosure, training of qualified personnel is strictly prohibited to post production, production personnel must be listed to work, you must have the corresponding certificate. Road workers must have the

8、 certificate, and regular assessments should be carried out, not a skilled operator posts is strictly prohibited. Production of various items of equipment, appliances and other, non-professional is strictly prohibited actions and strict regulations, strong rewards, be eliminated. Production line set

9、 on person, title, responsibilities, and performance and safety comprehensive assessment. Material procurement process strictly handling the北 华 航 天 工 业 学 院课程设计报告(论文) 设计课题:DSP 的 FIR 数字滤波器的设计专业班级: B11211 学生姓名: 张斌 指导教师: 李迎春 设计时间: 北华航天工业学院电子工程系基于 DSP 的 FIR 数字滤波器课程设计任务书姓 名:张斌专 业:电子信息工程班 级:B11211指导教师:李迎春职

10、 称:课程设计题目:基于 DSP 的 FIR 数字滤波器的设计已知技术参数和设计要求:1设计一个采样频率为 32KHz,截止频率约为 6.5KHz 的低通 FIR 滤波器,要求阻带衰减大于 50dB。FIR 滤波器的 DSP 编程采用 C 语言实现。在CCS Simulator 中调试。调试成功后,进行以下步骤。 2由实验箱信号发生器产生 4KHz 的模拟方波信号,然后进行 AD 转换,存放在内存单元中观察这些数据的波形,然后通过 DA 转换后输出,在示波器上观察输出方波信号。3在串口数据的采集和发送程序中插入设计好的 FIR 低通滤波器。对采集的方波信号进行数字低通滤波得到基波分量,存放在内

11、存单元中观察这些数据的波形,并将滤波得到的基波分量通过 DA 转换后输出,在示波器上观察输出信号。 4扩展要求(根据实际进度选做):1)对采集的方波信号进行 FFT 变换,在 CCS 中分析方波频谱。2)采集 4KHz 的模拟三角波或正弦波信号,并在 CCS 中进行 Huffman 编码所需仪器设备:示波器,通用 PC 一台,ICETEK-5100USB 仿真器一台,成果验收形式:Following parts of ordinary bolt connection: wall-beams, purlins, knee. Design of drainage, electrical, heat

12、ing, ventilation, air conditioning, power should be subject to safety requirements for steel structures of other professions, it is forbidden to weld hanging load and increased roof and columns. Construction prepared and the construction layout first section material prepared and the processing prod

13、uction prepared according to Zhejiang more Palace steel limited and Wuhan intelligent elevator limited by signed of contract file and the Institute provides of steel design blueprint, I company and the Organization Technology Department, production department, procurement Department, bid do Engineer

14、ing Department, related production sector for drawings triage, and according to owners requirements timely design out production and the processing detail and for has related professional sector of strictly triage, specific work process following: Bid do bid notice Technology Department add up do pr

15、ocurement department production department quality Department Engineering Department Technology Department production and the processing detail proposed Hou, by add up do coordination the sector of supporting work, and by figure line by varieties, and specifications, and quality for classified, and

16、notification Procurement Department for material of market survey and procurement, by quality Department according to by purchased material of specifications varieties for quality review and test, not qualified of material varieties and specifications strongly ban for the engineering in the, After p

17、assing inspection informed the workshop of production of timber according to strict production details of production, workshop organized by the General Manager before the production technology and security sector technical safety training, safety education company to strictly three-level disclosure,

18、 training of qualified personnel is strictly prohibited to post production, production personnel must be listed to work, you must have the corresponding certificate. Road workers must have the certificate, and regular assessments should be carried out, not a skilled operator posts is strictly prohib

19、ited. Production of various items of equipment, appliances and other, non-professional is strictly prohibited actions and strict regulations, strong rewards, be eliminated. Production line set on person, title, responsibilities, and performance and safety comprehensive assessment. Material procureme

20、nt process strictly handling the2参考文献:ICETEK-VC5509-A 指导书 3.3-v3TM时间安排第第 1 1 单元单元 发设计任务书,明确设计任务、技术要求,查找资料。第第 2 2、3 3 单元单元 FIR 滤波器设计及 DSP 编程。第第 4 4、5 5 单元单元学习和掌握 TMS320VC5509A 片上 A/D 的使用。第第 6 6、7 7 单元单元学习 D/A 转换器与 TMS320VC5509A 的接口与使用方法。第第 8 8 单元单元 在数据的采集和发送程序中插入设计好的 FIR 低通滤波器,在示波器上观察输出信号。第第 9 9 单元单元

21、 撰写课程设计报告。第第 1010 单元单元 课程设计答辩。指导教师:李迎春 教研室主任: 2014 年 5 月 30 日注:本表下发学生一份,指导教师一份,栏目不够时请另附页。课程设计任务书装订于设计计算说明书(或论文)封面之后,目录页之前。 目 录第 1 章 绪论.41.1 设计背景.41.2 设计要求.41.3 设计思路简介.4第 2 章 系统开发平台与环境.51.1 CCS 开发环境.52.2 SEED-DEC2812 开发实验箱.5第 3 章 FIR 滤波器设计过程.53.1 FIR 滤波器设计总框图 .53.2 FIR 滤波器设计的原理 .63.3 FIR 滤波器的设计法.6第 4

22、 章 系统软件设计.74.1 程序源代码.7第 5 章 系统仿真.115.1 仿真设置.145.2 仿真图.14第 6 章 总结.15Following parts of ordinary bolt connection: wall-beams, purlins, knee. Design of drainage, electrical, heating, ventilation, air conditioning, power should be subject to safety requirements for steel structures of other professions,

23、 it is forbidden to weld hanging load and increased roof and columns. Construction prepared and the construction layout first section material prepared and the processing production prepared according to Zhejiang more Palace steel limited and Wuhan intelligent elevator limited by signed of contract

24、file and the Institute provides of steel design blueprint, I company and the Organization Technology Department, production department, procurement Department, bid do Engineering Department, related production sector for drawings triage, and according to owners requirements timely design out product

25、ion and the processing detail and for has related professional sector of strictly triage, specific work process following: Bid do bid notice Technology Department add up do procurement department production department quality Department Engineering Department Technology Department production and the

26、 processing detail proposed Hou, by add up do coordination the sector of supporting work, and by figure line by varieties, and specifications, and quality for classified, and notification Procurement Department for material of market survey and procurement, by quality Department according to by purc

27、hased material of specifications varieties for quality review and test, not qualified of material varieties and specifications strongly ban for the engineering in the, After passing inspection informed the workshop of production of timber according to strict production details of production, worksho

28、p organized by the General Manager before the production technology and security sector technical safety training, safety education company to strictly three-level disclosure, training of qualified personnel is strictly prohibited to post production, production personnel must be listed to work, you

29、must have the corresponding certificate. Road workers must have the certificate, and regular assessments should be carried out, not a skilled operator posts is strictly prohibited. Production of various items of equipment, appliances and other, non-professional is strictly prohibited actions and str

30、ict regulations, strong rewards, be eliminated. Production line set on person, title, responsibilities, and performance and safety comprehensive assessment. Material procurement process strictly handling the4参考文献.15第第 1 章章 绪论绪论1.1 设计背景在信号处理中,滤波占有十分重要的地位。数字滤波是数字信号处理的基本方法。数字滤波与模拟滤波相比有很多优点,它除了可避免模拟滤波器固

31、有的电压漂移、温度漂移和噪声等问题外,还能满足滤波器对幅度和相位的严格要求。低通有限冲激响应滤波器(低通FIR滤波器)有其独特的优点,因为 FIR系统只有零点,因此,系统总是稳定的,而且容易实现线性相位和允许实现多通道滤波器。DSP(数字信号处理器)与一般的微处理器相比有很大的区别,它所特有的系统结构、指令集合、数据流程方式为解决复杂的数字信号处理问题提供了便利,本文选用TMS320C54X作为DSP处理芯片,通过对其编程来实现FIR滤波器。对数字滤波器而言,从实现方法上,有 FIR 滤波器和无限冲激响应(IIR)滤波器之分。由于FIR滤波器只有零点,因此这一类系统不像IIR系统那样易取得比较

32、好的通带与阻带衰减特性。但是FIR系统有自己突出的优点:系统总是稳定的;易实现线性相位;允许设计多通带(阻带)滤波器。其中后两项是IIR系统不易实现的。1.2 设计要求利用C语言在CCS环境中编写一个FIR滤波器程序,并能利用已设计好的滤波器对常用信号进行滤波处理。1.3 设计思路简介在TMS320C55x系统开发环境CCS(Code Composer Studio)下对FIR滤波器的DSP实现原理进行讨论。利用C语言设计相应的滤波器,通过实验仿真,从输入信号和输出信号的时域和频域曲线可看出在DSP上实现的FIR滤波器能完成预定的滤波任务。第 2 章 系统开发平台与环境1.1 CCS 开发环境

33、CCS提供了配置、建立、调试、跟踪和分析程序的工具,它便于实时、嵌入式信号处理程序的编制和测试,它能够加速开发进程,提高工作效率。CCS提供了基本的代码生成工具,它们具有一系列的调试、分析能力。CCS支持如下图1.1所示的开发周期的所有阶段。图 1.1第 3 章 FIR 滤波器设计过程3.1 FIR 滤波器设计总框图FIR 滤波器设计总框图如图设计概念性规划编程和编译创建工程文件、编写源代码和配置文件调试语法检查、探测点设置和日志保存等分析实时调试、统计和跟踪开始初始化DSP产生输入数据读入新数据并存放到栈顶滤波处理保存滤波结果到输出单元待滤波的样本点数处理完成结束否是Following pa

34、rts of ordinary bolt connection: wall-beams, purlins, knee. Design of drainage, electrical, heating, ventilation, air conditioning, power should be subject to safety requirements for steel structures of other professions, it is forbidden to weld hanging load and increased roof and columns. Construct

35、ion prepared and the construction layout first section material prepared and the processing production prepared according to Zhejiang more Palace steel limited and Wuhan intelligent elevator limited by signed of contract file and the Institute provides of steel design blueprint, I company and the Or

36、ganization Technology Department, production department, procurement Department, bid do Engineering Department, related production sector for drawings triage, and according to owners requirements timely design out production and the processing detail and for has related professional sector of strict

37、ly triage, specific work process following: Bid do bid notice Technology Department add up do procurement department production department quality Department Engineering Department Technology Department production and the processing detail proposed Hou, by add up do coordination the sector of suppor

38、ting work, and by figure line by varieties, and specifications, and quality for classified, and notification Procurement Department for material of market survey and procurement, by quality Department according to by purchased material of specifications varieties for quality review and test, not qua

39、lified of material varieties and specifications strongly ban for the engineering in the, After passing inspection informed the workshop of production of timber according to strict production details of production, workshop organized by the General Manager before the production technology and securit

40、y sector technical safety training, safety education company to strictly three-level disclosure, training of qualified personnel is strictly prohibited to post production, production personnel must be listed to work, you must have the corresponding certificate. Road workers must have the certificate

41、, and regular assessments should be carried out, not a skilled operator posts is strictly prohibited. Production of various items of equipment, appliances and other, non-professional is strictly prohibited actions and strict regulations, strong rewards, be eliminated. Production line set on person,

42、title, responsibilities, and performance and safety comprehensive assessment. Material procurement process strictly handling the63.2 FIR 滤波器设计的原理设a i(i=0,1,2,N-1)为滤波器的冲激响应,输入信号为x(n),则FIR滤波器的输入输出关系为: FIR滤波器的结构如图3.2所示:1z1z1z1za0a12Na1NaX(n)X(n-1)X(n-2)X(n-N+1)y(n)图 3.2 FIR 滤波器的结构3.3 FIR 滤波器的设计方法循环缓冲算法

43、:对于N级的FIR滤波器,在数据存储器中开辟一个称之为滑窗的N个单元的缓冲区,滑窗中存放最新的N个输入样本。每次输入新的样本时,一新样本改写滑窗中的最老的数据,而滑窗中的其他数据不需要移动。利用片内BK(循环缓冲区长度)寄存器对滑窗进行间接寻址,环缓冲区地址首位相邻。下面,以N=5的FIR滤波器循环缓冲区为例,说明循环缓冲区中数据是如何寻址的。5级循环缓冲区的结构如图3.3所示,顶部为低地址。x(n)x(n-1)x(n-2)x(n-3)x(n-4)x(n)x(n-1)x(n-2)x(n-3)x(n+1)x(n)x(n-1)x(n-2)x(n-2)x(n-1)数据存储器数据存储器数据存储器顶部底

44、部图 3.3 循环缓冲区的结构当第一次执行完之后,间接寻址的辅助寄存器指向40)()(iiinxanyxARx(n-4)。然后,从 I/O 口输入数据x(n+1),将原来存放x(n-4)的数据存储单元改写为x(n+1)。接着,进行第二次乘法累加运算,40)1() 1(iiinxany最后指向x(n-3)。然后从 I/O 口输入数据x(n+2) ,将原来存放 x(n-4)的xAR数据存储器单元改写为x(n+2)。第 4 章 系统软件设计4.1 程序源代码4.1.1 FILTER.c 代码:#include DSP28_Device.h#include filter.h#include ext_i

45、nf.hunsigned int DataLong=1024;unsigned int i,j;unsigned int k= 0;unsigned short Ad_data2048;short Ad_data_signed2048;short filter_result1024;unsigned int convcount = 0;volatile unsigned int adconvover =0;interrupt void ISRTimer2(void);interrupt void ad(void);void main(void)/*初始化系统*/Following parts

46、of ordinary bolt connection: wall-beams, purlins, knee. Design of drainage, electrical, heating, ventilation, air conditioning, power should be subject to safety requirements for steel structures of other professions, it is forbidden to weld hanging load and increased roof and columns. Construction

47、prepared and the construction layout first section material prepared and the processing production prepared according to Zhejiang more Palace steel limited and Wuhan intelligent elevator limited by signed of contract file and the Institute provides of steel design blueprint, I company and the Organi

48、zation Technology Department, production department, procurement Department, bid do Engineering Department, related production sector for drawings triage, and according to owners requirements timely design out production and the processing detail and for has related professional sector of strictly t

49、riage, specific work process following: Bid do bid notice Technology Department add up do procurement department production department quality Department Engineering Department Technology Department production and the processing detail proposed Hou, by add up do coordination the sector of supporting

50、 work, and by figure line by varieties, and specifications, and quality for classified, and notification Procurement Department for material of market survey and procurement, by quality Department according to by purchased material of specifications varieties for quality review and test, not qualifi

51、ed of material varieties and specifications strongly ban for the engineering in the, After passing inspection informed the workshop of production of timber according to strict production details of production, workshop organized by the General Manager before the production technology and security se

52、ctor technical safety training, safety education company to strictly three-level disclosure, training of qualified personnel is strictly prohibited to post production, production personnel must be listed to work, you must have the corresponding certificate. Road workers must have the certificate, an

53、d regular assessments should be carried out, not a skilled operator posts is strictly prohibited. Production of various items of equipment, appliances and other, non-professional is strictly prohibited actions and strict regulations, strong rewards, be eliminated. Production line set on person, titl

54、e, responsibilities, and performance and safety comprehensive assessment. Material procurement process strictly handling the8InitSysCtrl();/*关中断*/DINT;IER = 0 x0000;IFR = 0 x0000;/*初始化PIE中断*/InitPieCtrl();/*初始化PIE中断矢量表*/InitPieVectTable(); /初始化cputimer InitCpuTimers(); /*设置中断服务程序入口地址*/EALLOW;PieVect

55、Table.TINT2 = &ISRTimer2;PieVectTable.ADCINT = &ad;EDIS; /*开中断*/IER |= M_INT1; /ADC中断EINT; ERTM;/*设置CPU*/DINT;ConfigCpuTimer(&CpuTimer2, 150, 22); StartCpuTimer2(); /*开中断*/IER |= M_INT14;EINT;InitAdc();for(;)if (adconvover=1) /*fir滤波处理*/ for(i=0;i=16); _nassert(n=16); for(j=0;jm;j+) acc=

56、0; for(i=0;i=m) break; else y0=(long)xi+j*(long)hi; acc=acc+y0; *y+=(short)(accs); 第 5 章 系统仿真5.1 仿真设置1.fir_filter(Ad_data_signed,hfir,filter_result,ORDER_FIR,DataLong,ROUND_FIR)和 adconvover=0处设置断点2.在Graph Property Dialog中设置Start Address和Display Type如图5.1、图5.2、图5.3、图5.4Following parts of ordinary bol

57、t connection: wall-beams, purlins, knee. Design of drainage, electrical, heating, ventilation, air conditioning, power should be subject to safety requirements for steel structures of other professions, it is forbidden to weld hanging load and increased roof and columns. Construction prepared and th

58、e construction layout first section material prepared and the processing production prepared according to Zhejiang more Palace steel limited and Wuhan intelligent elevator limited by signed of contract file and the Institute provides of steel design blueprint, I company and the Organization Technolo

59、gy Department, production department, procurement Department, bid do Engineering Department, related production sector for drawings triage, and according to owners requirements timely design out production and the processing detail and for has related professional sector of strictly triage, specific

60、 work process following: Bid do bid notice Technology Department add up do procurement department production department quality Department Engineering Department Technology Department production and the processing detail proposed Hou, by add up do coordination the sector of supporting work, and by figure line

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论