资源描述:
《xx数字滤波器的设计及dsp实现》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、FIR高通数字滤波器的设计及DSP实现班级:学号:姓名:现场操作(30分)书面报告(70分)成绩Matlab设计(20分)DSP程序(20分)格式规范(10分)总分等级一、Matlab设计:1.设计目的(FIR高通滤波器设计)2.设计要求:在N1ATLAB课程中,熟悉软件的使用以及HR滤波器的设计原理,锻炼程序的设计能力和整体思想1.设计内容:设计HR高通滤波器:通带截止频率15KHZ,釆样频率lOOKHz。2.设计原理:数字滤波器的设计问题就是寻找一组系ai和bi,使得其性能在某种意义上逼近所要求的I寺性。如果在3平®上去逼近,就
2、得到模拟滤波器,如果在z平面上去逼近,得到数字滤波器。数字滤波器是将输入的信号序列,按规定的算法进行处理从而得到所期望的输出序列。一个线性位移不变系统的输出序列y(n)和输入序列x(n)之间的关系,应该满足常系数线性差分方程为输入序列,/(/;)为输出序列,为滤波器系数,为滤波器的阶数。3.程序代码:wc=0.3氺pi;b=firl(80,wc,’high’);freqz(b);figure;stem(b,’.’);linc([0,25],[0,0]);xlabcl(’n’);ylabel(’h(n)’);M=round(10000
3、0*b);4.实现数据:51,-46,39,-31,20,-4,-17,45,-80,123,-172,228,-287,347,-404,453,-490,507,-500,463,-390,277,-120,-84,335,-633,975,-1357,1772,-2213,2670,-3133,3591,-4031,4442,-4812,5131,-5390,5580,-5697,-5697,5580,-5390,5131,-4812,4442,-4031,3591,-3133,2670,-2213,1772,-1357,97
4、5,-633,335,-84,-120,277,-390,463,-500,507,-490,453,-404,347,—287,228,一172,123,-80,45,一17,—4,20,-31,39,—46,51二.输入信号产生.•1.信号函数:Y=sin(0.03*pi*n)+sin(0.2*pi*n)+sin(0.4*pi*n)2.matlab程序:n=0:l:200;y=round(1000*(sin(0.03*pi*n)+sin(0.2*pi*n)+sin(0.4*pi*n))+1000);plot(n,y);fid=f
5、open(’sin.txt’,’w’);fprintf(fid,’%d’,y);fclose(fid);3.产生的离散数据:500,1316,1363,821,502,727,950,625,73,106,905,1700,1722,1152,803,994,1181,818,227,219,976,17281708,1095,704,854,1000,599,-29,-71,655,1378,1332,697,287,422,557,149,-482,-524,206,939,905,287,-104,54,217,-162,
6、-761,-767,0,772,778,201,-147,54,259,-77,-634,-600,206,1015,1057,512,194,422,650,334,-207,-160,655,1468,1510,963,637,854,1067,732,169,189,976,1757,1765,1181,817,994,1166,789,183,161,905,1644,1612,988,586,727,866,458,-176,-222,500,1222,1176,542,134,273,414,12,-612,-644,9
7、5,839,817,211,-166,6,183,-181,-765,-757,24,811,831,268,-67,146,363,37,-510,-468,345,1160,1207,666,350,578,806,488,-57,-15,794,1600,1634,1077,741,946,1147,799,222,228,1000,1767,1761,1162,783,946,1104,713,95,61,794,1524,1482,851,443,578,713,303,-332,-378,345,1071,1029,40
8、1,0,146,296,-95,-708,-728,24,781,773,182,-181,6,197,-152,-722,-700,95,894,927,375,50,273,498,179,一363,-316三.DSP程序:ASM