📄 exp5.html
字号:
<html xmlns:v="urn:schemas-microsoft-com:vml"xmlns:o="urn:schemas-microsoft-com:office:office"xmlns:w="urn:schemas-microsoft-com:office:word"xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=iso-8859-1"><meta name=ProgId content=Word.Document><meta name=Generator content="Microsoft Word 9"><meta name=Originator content="Microsoft Word 9"><link rel=File-List href="exp5_files/filelist.xml"><link rel=Edit-Time-Data href="exp5_files/editdata.mso"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}o\:* {behavior:url(#default#VML);}w\:* {behavior:url(#default#VML);}.shape {behavior:url(#default#VML);}</style><![endif]--><!--[if gte mso 9]><xml> <o:DocumentProperties> <o:Author>Bob</o:Author> <o:Template>Normal</o:Template> <o:LastAuthor>Bob</o:LastAuthor> <o:Revision>2</o:Revision> <o:TotalTime>1</o:TotalTime> <o:Created>2001-03-18T01:27:00Z</o:Created> <o:LastSaved>2001-03-18T01:28:00Z</o:LastSaved> <o:Pages>5</o:Pages> <o:Words>903</o:Words> <o:Characters>5152</o:Characters> <o:Lines>42</o:Lines> <o:Paragraphs>10</o:Paragraphs> <o:CharactersWithSpaces>6327</o:CharactersWithSpaces> <o:Version>9.3821</o:Version> </o:DocumentProperties></xml><![endif]--><style><!-- /* Style Definitions */p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0pt; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";}p {font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";}@page Section1 {size:612.0pt 792.0pt; margin:72.0pt 90.0pt 72.0pt 90.0pt; mso-header-margin:36.0pt; mso-footer-margin:36.0pt; mso-paper-source:0;}div.Section1 {page:Section1;} /* List Definitions */@list l0 {mso-list-id:376200581; mso-list-type:hybrid; mso-list-template-ids:-448520188 -1036730354 1226202700 272682144 -746313928 142393426 -1227347908 -227215164 956758324 -1009347616;}@list l1 {mso-list-id:882988158; mso-list-type:hybrid; mso-list-template-ids:1109405960 -2070543154 -1498639760 930407350 1790320300 355247114 -1478820998 443681750 2104779656 -205864098;}@list l2 {mso-list-id:1218975144; mso-list-type:hybrid; mso-list-template-ids:493147160 1589669478 -1410826410 -1456014934 -1234913762 351323062 -989849636 -1641777638 1490605880 831266662;}@list l3 {mso-list-id:1982999813; mso-list-type:hybrid; mso-list-template-ids:-1156426598 268450944 1506035418 -1662603734 -60013268 964325554 -1229584052 161762724 -575499754 -568410792;}ol {margin-bottom:0pt;}ul {margin-bottom:0pt;}--></style><!--[if gte mso 9]><xml> <o:shapedefaults v:ext="edit" spidmax="1026"/></xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext="edit"> <o:idmap v:ext="edit" data="1"/> </o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=blue style='tab-interval:36.0pt'><div class=Section1><p><strong><span style='font-size:18.0pt'>Experiments for Chapter 5</span></strong></p><p style='margin-right:36.0pt;margin-left:36.0pt'><a href="exp5.zip">DownloadChapter 5 experimental software programs</a></p><p><a href="#top"><span style='font-size:7.5pt'>Back to Top</span></a> <input type=button value="go back" onclick="history.go(-1)"></p><div class=MsoNormal align=center style='text-align:center'><hr size=3 width="100%" align=center></div><p><strong><span style='font-size:13.5pt'>Different Approaches to FIR FilterImplementation</span></strong></p><p style='margin-right:72.0pt;margin-left:72.0pt'>There are 3 experiments inthis chapter:</p><p style='margin-right:108.0pt;margin-left:144.0pt;text-indent:-18.0pt;mso-list:l0 level1 lfo1;tab-stops:list 36.0pt'><![if !supportLists]>1.<spanstyle='font:7.0pt "Times New Roman"'> </span><![endif]>Experiment5A - Block FIR Filter Implementation Using the TMS320C55x</p><p style='margin-right:108.0pt;margin-left:144.0pt;text-indent:-18.0pt;mso-list:l0 level1 lfo1;tab-stops:list 36.0pt'><![if !supportLists]>2.<spanstyle='font:7.0pt "Times New Roman"'> </span><![endif]>Experiment5B - Symmetric FIR Filter Implementation </p><p style='margin-right:108.0pt;margin-left:144.0pt;text-indent:-18.0pt;mso-list:l0 level1 lfo1;tab-stops:list 36.0pt'><![if !supportLists]>3.<spanstyle='font:7.0pt "Times New Roman"'> </span><![endif]>Experiment5C - FIR Filter Implementation Using Dual_MAC</p><p style='margin-right:72.0pt;margin-left:72.0pt'>These experiments demonstratedifferent approaches to a lowpass FIR filter implementation using theTMS320C55x assembly language. For simplicity, the signal source is generatedusing a software sinusoid generator <a href="exp5/signal_gen.c"><spanstyle='font-family:"Courier New"'>signal_gen.c</span></a> given in Table E5-1.The input data file <a href="exp5/input5.dat"><span style='font-family:"Courier New"'>input5.dat</span></a>can be used for the rest of the experiments.</p><p style='margin-right:72.0pt;margin-left:72.0pt'> </p><form><p align=center style='margin-right:72.0pt;margin-left:72.0pt;text-align:center'>TableE5-1 The software signal generator for Experiment 5A, 5B, and 5C.</p><p align=center style='margin-right:72.0pt;margin-left:72.0pt;text-align:center'><TEXTAREA ROWS="7" COLS="70" NAME="signal_gen.c">/* signal_gen.c - Generate sine waves as test data in Q15 	 prototype: void signal_gen(int *, int) arg0: - data buffer pointer for output arg1: - number of samples */ #include <math.h> #define T 0.000125 /* 8000 Hz sampling frequency */ #define f1 800 /* 800 Hz frequency */ #define f2 1800 /* 1800 Hz frequency */ #define f3 3300 /* 3300 Hz frequency */ #define PI 3.1415926 #define two_pi_f1_T (2*PI*f1*T) /* 2*pi*f1/Fs */ #define two_pi_f2_T (2*PI*f2*T) /* 2*pi*f2/Fs */ #define two_pi_f3_T (2*PI*f3*T) /* 2*pi*f3/Fs */ #define a1 0.333 /* Magnitude for wave 1 */ #define a2 0.333 /* Magnitude for wave 2 */ #define a3 0.333 /* Magnitude for wave 3 */ static unsigned int n=0; void signal_gen(int *x, int N) { float temp; int i; 	 for (i=0; i<N; i++) { temp = a1*cos((double)two_pi_f1_T*n); temp += a2*cos((double)two_pi_f2_T*n); temp += a3*cos((double)two_pi_f3_T*n); n++; x[i] = (int)((0x7fff*temp)+0.5);		 } } </TEXTAREA></p><p align=center style='margin-right:72.0pt;margin-left:72.0pt;text-align:center'> </p><p style='margin-right:72.0pt;margin-left:72.0pt'>The DSP linker command fileis arranged such that the Experiment 5B and 5C can take the advantages ofsymmetric FIR and dual-MAC architecture of the C55x DSP. The command file <ahref="exp5/exp5.cmd"><span style='font-family:"Courier New"'>exp5.cmd</span></a>is given in Table E5-2.</p>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -