📄 exp4.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="exp4_files/filelist.xml"><link rel=Edit-Time-Data href="exp4_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>3</o:TotalTime> <o:Created>2001-03-18T01:23:00Z</o:Created> <o:LastSaved>2001-03-18T01:26:00Z</o:LastSaved> <o:Pages>3</o:Pages> <o:Words>525</o:Words> <o:Characters>2994</o:Characters> <o:Lines>24</o:Lines> <o:Paragraphs>5</o:Paragraphs> <o:CharactersWithSpaces>3676</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:1035540358; mso-list-type:hybrid; mso-list-template-ids:832106912 1028397304 961315040 1929168110 1929943794 -1071102750 625129668 -685207122 1757171410 544884222;}@list l1 {mso-list-id:1388996187; mso-list-type:hybrid; mso-list-template-ids:451686004 2017347108 1618739574 -1999626780 135011404 -457010500 -900432146 -1945504 -671475270 1597290138;}@list l2 {mso-list-id:1468205723; mso-list-type:hybrid; mso-list-template-ids:491003936 -1201134072 -1929719388 -104705934 2067156086 -1544417700 1624905160 -596464236 -1741535304 -950221892;}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 4</span></strong></p><p style='margin-right:36.0pt;margin-left:36.0pt'><a href="exp4.zip">DownloadChapter 4 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'>Using TMS320C55x DSP</span></strong></p><p style='margin-right:72.0pt;margin-left:72.0pt'>There are 2 experiments inthis chapter:</p><p style='margin-right:108.0pt;margin-left:144.0pt;text-indent:-18.0pt;mso-list:l2 level1 lfo1;tab-stops:list 36.0pt'><![if !supportLists]>1.<spanstyle='font:7.0pt "Times New Roman"'> </span><![endif]>Experiment4A - Implementation of DFT</p><p style='margin-right:108.0pt;margin-left:144.0pt;text-indent:-18.0pt;mso-list:l2 level1 lfo1;tab-stops:list 36.0pt'><![if !supportLists]>2.<spanstyle='font:7.0pt "Times New Roman"'> </span><![endif]>Experiment4B - Using Assembly Routines</p><p style='margin-right:72.0pt;margin-left:72.0pt'>The purpose of theexperiments in this section are to understand DFT algorithm and assemblyprogramming environment. </p><div class=MsoNormal align=center style='text-align:center'><hr size=3 width="100%" align=center></div><form><p align=center style='text-align:center'><strong><span style='font-size:13.5pt;color:blue'>Experiment 4A - Implementation of DFT</span></strong></p><p style='margin-right:72.0pt;margin-left:72.0pt'>DFT is an important conceptof digital signal processing. It is the foundation of the Fast Fourier Transformation(FFT). To compute the DFT using assembly language involves nested loops,complex data manipulation, and twiddle factor generation. </p><p style='margin-right:72.0pt;margin-left:72.0pt'>The sine-cosine generator, <ahref="exp4/sine_cos.asm"><span style='font-family:"Courier New"'>sine_cos.asm</span></a>,we implemented in Chapter 3 experiment is used for generating Twiddle factorfor the DFT function. The C function <a href="exp4/exp4a.c"><spanstyle='font-family:"Courier New"'>exp4a.c</span></a> is listed in Table E3-1for reference. The linker command file used for the experiments are given inTable E4-2</p><p align=center style='text-align:center'> </p><p align=center style='text-align:center'>Table E4-1 List of C function forExperiment 4A</p><p align=center style='text-align:center'><TEXTAREA ROWS="7" COLS="70" NAME="exp4a.c">/* Experiment 4A - exp4a.c */ #include "input.dat" #define N 128 extern void dft_128(int *, int *); extern void mag_128(int *, int *); int Xin[2*N]; int Xout[2*N]; int Spectrum[N]; void main() { int i,j; for (j=0,i=0;i<N;i++) { Xin[j++] = input[i]; /* Get real sample */ Xin[j++] = 0; /* Imaginary sample=0 */ } dft_128(Xin, Xout);	 /* DFT routine */ mag_128(Xout, Spectrum); /* Compute spectrum */ } </TEXTAREA></p><p align=center style='text-align:center'> </p><p align=center style='text-align:center'>Table E4-2 Linker command file</p>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -