欢迎来到三一办公! | 帮助中心 三一办公31ppt.com(应用文档模板下载平台)
三一办公
全部分类
  • 办公文档>
  • PPT模板>
  • 建筑/施工/环境>
  • 毕业设计>
  • 工程图纸>
  • 教育教学>
  • 素材源码>
  • 生活休闲>
  • 临时分类>
  • ImageVerifierCode 换一换
    首页 三一办公 > 资源分类 > DOC文档下载  

    基于TMS320VC5402的自适应FIR滤波器的设计毕业论文外文翻译.doc

    • 资源ID:3939366       资源大小:253.50KB        全文页数:14页
    • 资源格式: DOC        下载积分:8金币
    快捷下载 游客一键下载
    会员登录下载
    三方登录下载: 微信开放平台登录 QQ登录  
    下载资源需要8金币
    邮箱/手机:
    温馨提示:
    用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)
    支付方式: 支付宝    微信支付   
    验证码:   换一换

    加入VIP免费专享
     
    账号:
    密码:
    验证码:   换一换
      忘记密码?
        
    友情提示
    2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
    3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
    4、本站资源下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。
    5、试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。

    基于TMS320VC5402的自适应FIR滤波器的设计毕业论文外文翻译.doc

    附录AImplementation of Adaptive FIR Filter Based on TMS320VC5402Wang Xiaojuan Zhang Ze(Department of Automation, College of Sciences of Technology,Inner Mongolia University, Hohhot 010021 China, )AbstractThe article introduced the design and implementation of the adaptive FIR filter based on DSP (Digital Signal Processor). Firstly, simulate experiment of the adaptive FIR filter structure and algorithm is carried out by MATLAB, and adaptive filtering of the input signal added Gauss noise is performed. Simulation waves are given, and the reference data for the DSP designing is provided. On this foundation, TMS320VC5402 DSP chip is selected as the center processor to design and implement the adaptive FIR filter. The hardware system design module, the software system design flow chart and the related assembly code are given. The uniformity of simulation results and measurement results and the filter effect is satisfied.Keywords: Adaptive FIR filter, TMS320VC5402, LMS algorithm.1 IntroductionAdaptive filter is the one of the modern filter. It is an important application of adaptive signal processing that was developed in the 1940s. Adaptive filter has been used widely in system identification, noise canceller, adaptive line enhance, adaptive equalization of communication channel, linear predication, adaptive array antenna and so on. Adaptive filter is opposite to fixed coefficients filter. During digital signal processing, a number of unpredictable signals, noises or time-varying signals often need to process, it is impossible to achieve optimal filtering for fixed coefficient filter, so adaptive filter must be designed to track the change of signal and noise. The unique structure and instruction of TMS320VC5402 DSP provide the convenient condition for designing adaptive filter.2 Principle of Adaptive FilterAdaptive filter consists of two basic parts: the filter which applies the required processing on the incoming signal which is to be filtered, and an adaptive algorithm, which adjusts the coefficients of that filter to somehow improve its performance. When adaptive filter is designed, the autocorrelation function of signals and noises can not be known in advance. During the filtering, with the autocorrelation function of signals and noises changing slowly over time, filter can automatically adapt and adjust to meet the requirements of the minimum mean squared error.Fig 1 Structure of Adaptive FilterFig 1 shows the structure of adaptive filter. The objective is to filter the input signal, X(n), with an adaptive filter in such a manner that it matches the desired signal, d(n). The desired signal, d(n), is subtracted from the filtered signal, Y(n), to generate an error signal, e(n).3 Structure of Filter and LMS Algorithm3.1 Structure of Adaptive FIR FilterSeveral types of filter structures can be implemented in the design of the adaptive filters such as Infinite Impulse Response (IIR) or Finite Impulse Response (FIR). In this application note, only transversal structure FIR structure is implemented. Transversal structure of adaptive FIR Filter is given by Fig 2 and the filter output signal y(n) is given byFig 2 Transversal Structure of Adaptive FIR FilterWhere is input vector, is weight vector. T denotes Transpose, N is the order of filter.3.2 LMS AlgorithmThe basic idea of LMS algorithm is that adjusting the filters coefficients minimize the mean-square error between its output and its desired response, such system output is best estimate of useful signal.The basic LMS algorithm is given byWhere W(n) is the weight value at this time, W(n+1) is the weight value at next time,µ >0 is called the step-size.Convergent condition of LMS algorithm is 0<µ<1/ , is the maximal eigenvalue of correlation matrix of input vector X(n).4 Filter Design with MATLABWhen designing digital filter, MATLAB is usually used to carry on the assistance design and the simulation.According to above design philosophy, a 10-order adaptive noise canceller was designed. Input signal, where , , dealing with 100 sample. Desired output of filter is ,µ=0.002.The partial codes of the adaptive FIR filter design with MATLAB as follows:M-length(x); y-zeros(1,M);H-zeros(1,N);e-zeros(1,M);for n-N:M %adaptive algorithmy(n)-h*x1' %output signale(n)-d(n)-y(n); %calculate errorh-h+u*e(n)*x1; %adjust weightendSimulation waveform are given in Fig 3The algorithm can be verified and input data of analog filter can be provided for designing of the DSP assemble language through MATLAB simulation at the same time.5 Application of Adaptive FIR Filter in TMS320VC54025.1 hardware system based on TMS320VC5402 TMS320VC5402 is 16-bit, fixed-point DSP chip ,and it is the fifth generation of products of TI Company, its core supply is 1.8v and IO supply is 3.3v; the working speed may reach 100MIPS; on-chip peripherals contain: an enhanced 8-bit host-port interface (HPI8), two multi-channel buffered serial ports (McBSPs), two hardware timers and so on.Fig 4 shows the structure of hardware design system. The system consists of TMS320VC5402 and other peripherals.Fig 4 Structure of systemThe TLC320AC01 is analog interface circuit(AIC) .This device integrates a 14-bit-resolution ADC and DAC, a band-pass switched-capacitor antialiasing input filter, a low-pass switched-capacitor output-reconstruction filter. The internal circuit configuration and performance parameters are determined by reading control information into the eight available data registers; ADC channel and a DAC channel operate synchronously, the data transfer is in2s-complement format; EPROM is 32K×8bit, with TMS320VC5402 compose of 32KB Bootloader in the address range 8000h0FFFFh; SARAM and TMS320VC5402 constitute 32K external program memory in the address range 48000h48FFFh and 16K external data memory in the address range 40000h7FFFFh.5.2 Software system based on TMS320VC5402The Integrates DSP development environment is CCS (Code Compo ser Studio) that is provided by TI. CCS cooperates with simulator XDS510. The adaptive FIR filter software design uses the assembly language to complete. Fig 5 shows the low chart of software program design. BK is FIR circular buffer size, and block-repeat counter (BRC) is set 99. The initialization of hardware contains: clock, interrupt, RAM, McBSP0, AC01 and timer on chip, then endless loop is running in the main program until interrupt of timer comes. Initialization of AC01 uses the synchronous serial port and skillfully applies command idle 1. After the initialization data is transmitted then the system waits for the transmission interrupt of the serial port to guarantee safe transmission of data.The LMS, ST|MPY, and RPTBD instructions on the 54x can reduce the execution time of code for adaptive filtering. LMS algorithm is given by LMS Xmem , Ymem.The LMS instruction can be explained by MACXmem+ ,Ymem+,B; B-B+(*coeff+ × *input +)| ADD Xmem ,16, A ; A-(*coeff+A) << 16Where Xmem points to coefficient, and Ymem points to signal. The LMS algorithm calculates the filter output and updates each coefficient in the filter in parallel.Due to TMS320VC5402 is fixed-point DSP, so input data, refer data and step-size need to take format Q.15, then these data must be changed Q.15 fixed-point format, respectively multiply by . Circular addressing and overflow would be noted in assemble program. Fig 5 Flow chatUsing MATLAB verify algorithm, and obtaining sample values of input signal and desired signal, copying these data to assemble program, compile assemble file, parts of assemble codes given by:loop: LD #0,BSTM #8,BRC ;Repeat 256 timesRPTBD lms end-1MPY *input,A ;A-u*e*xLMS *coeff,*input+ ;B-B+coeff*input, A-A+0-A>>16ST A,*coeff+0% ; load coefficient to coff_buffer|MPY *input,ALMS *coeff,*input+ ;filtering, B-accumulatefiltered output y, A-final coefficientlms end:STH A,*coeff+0% ;store final coefficientSTH B,*output ;store the filtered outputLD *refer+,A ;load refer dataSUB *output+,A ;compute errorSTL A,*errorLD delta,TMPY *error+,A ; compute u*e(n)STH A,deltauLD deltau,T ;T=u*eMAR *+input(#-9) ;modify input buffer pointer,BANZ loop,*AR6-complete: nopThen compiling, assembling and linking to create the COFF files for TMS320VC5402, and loading the files to DSP target system to run by simulator, using debugger to debug. Measuring wave has be gain as followsComparing Fig 6(b) with Fig 6(c), we get that it is automatic adjustment through about 5 seconds after system starts, their error reduces gradually, the system converges, convergence rate is dependent on the appropriate choice of 􀈝, and we can obtain from Fig 6(d) that the longer the response time is, the smaller the error is. Accordingly the filter effect is better.6 ConclusionIn this paper, adaptive FIR filter was designed by the combination of MATLAB simulation and the hardware system of TMS320VC5402, and it makes fully use of the special structure and instruction. The method has been proved to be effective and feasible by the simulation results and measure results.References1 Simon Haykin. Adaptive Filter Theory M. Beijing: Publishing House of Electronics Industry, 2002.2 Guo Senmao, Yan Yunsheng. Digital Signal Processors M. Publishing House of tsinghua university. 2005.3 Ma Weifu, Lei Yong, Teng Huan. Achievement of Adaptive Filtering with Lms algorithm and DSP J.Journal of Sichuan University (Natural Science Edition).Vol.41,Oct,2004.4 Sun, Xu. Kuo, Sen M. Active narrowband noise control systems using cascading adaptive filters J. IEEE Transactions on Audio Speech and Language Processing; 15(2), FEB 2007.5 Zhi ZY, Han RC, Pan F, Zuo L, Yu SY. Implementation of a kind of FIR filter based on TMS320F240 DSP J.6th International Symposium on Test and Measurement; Vol. 1-9,Conference Proceedings, 2005.Author BiographyWang Xiaojuan: Graduate student, with Department of Automation, College of Sciences and Technology of Inner Mongolia University and majoring in signal process and intelligence system.附录B基于TMS320VC5402的自适应FIR滤波器的设计王晓娟 张泽(中国,呼和浩特010021,内蒙古大学,科学技术学院,自动化系)摘要本文介绍基于DSP (数字信号处理器)的自适应FIR滤波器的设计与实现 。首先,用MATLAB进行了自适应FIR滤波器的结构和算法的模拟实验,其中自适应滤波器的输入信号包括高斯噪声。模拟波形,给出了为设计DSP的参考数据。在此基础上, 选取TMS320VC5402的DSP芯片为中心处理器设计与实现自适应FIR滤波器。并且给出了硬件系统的设计模块,软件系统设计的流程图及相关的汇编代码。仿真结果的均匀性和测量结果和过滤器的效果是满意的关键词 自适应FIR滤波器,TMS320VC5402,LMS算法。1 引言自适应滤波器是一个现代的过滤器。这是自适应信号处理的一个重要应用,这项技术发展于20世纪40年代。自适应滤波器已被广泛使用在系统辨识,噪声消除,自适应谱线增强,自适应均衡的沟通渠道,线性预测,自适应阵列天线等领域。自适应滤波器对应于固定系数滤波器。在数字信号处理,一些不可预知的信号,噪音或时间变信号往往需要过程,这是不可能实现的最优滤波固定系数滤波器,所以自适应滤波器的设计必须要跟踪的变化信号和噪声。独特的结构和指令TMS320VC5402的DSP的提供方便条件的设计自适应滤波器。2 自适应滤波的原则 自适应滤波器构成由两个基本部分组成:一是过滤器,应用于对处理外来的信号进行处理,也就是过滤,二是自适应算法,也就是调整系数的过滤器,在某种程度上改善其效果。当设计自适应滤波器时,信号的自相关函数和噪声不能在事先知道。在过滤时,信号的自相关函数和噪声的变化缓慢,随着时间的推移,过滤器可以自动适应和调整,以满足最低平均误差平方的要求。图1显示自适应滤波器的结构。目的是过滤输入的信号,X(n),自适应滤波器以与期望信号d(n) 相匹配的这种方式工作。理想的信号d(n),从过滤信号Y(n)中减去,以产生一个错误的信号e(n)。图1结构自适应滤波器3过滤器的结构和LMS算法3.1结构自适应FIR滤波器 设计的自适应滤波器,可以实现几种类型的过滤器结构,如无限脉冲响应(IIR)或有限脉冲响应(FIR)。在本文中,只介绍横向结构的杉木结构。自适应FIR滤波器的横向结构由图2给出,过滤器的输出信号y(n)而且是权重向量。T指偏移量,n是过滤器的阶数。 图2 横向结构的自适应FIR滤波器3.2 LMS算法LMS算法的基本思想是调整过滤器的系数,以达到尽量减少实际输出与期望之间的误差的目的,这样的系统的输出是有用信号的最乐观的估计。 基本LMS算法,如下式所示其中,W(n)是这一时刻的权值,W(n+1)为下一时刻的权值, > 0称为步。LMS算法的收敛条件是0<µ<1/ ,其中是相关矩阵的输入向量X(n)的最大特征值。 4滤波器的设计与MATLAB 在设计数字滤波器时,通常用MATLAB来对设计和模拟进行辅助。 根据上述的设计理念,设计一个10阶自适应噪声抵消器。输入信号,其中, ,处理100个样本。理想过滤器的输出是,µ=0.002。 基于MATLAB设计的自适应FIR滤波器的部分代码如下:M-length(x); y-zeros(1,M);H-zeros(1,N);e-zeros(1,M);for n-N:M 1-x(n:-1:n-N+1);y(n)-h*x1' e(n)-d(n)-y(n); h-h+u*e(n)*x1; end仿真波形如图3所示该算法可核实和数据输入的模拟滤波器可提供设计的DSP汇编语言,通过MATLAB仿真在同一时间内。 5应用自适应FIR滤波器在TMS320VC5402的 5.1硬件系统基于TMS320VC5402 TMS320VC5402是16位,定点DSP芯片,它是TI公司第五代的产品,其核心电源为1.8 V和IO 电源为3.3V;工作速度可达到100MIPS;片上外设包括:增强的8位主机接口(HPI8) ,两个多通道缓冲串行端口(McBSPs) ,两个硬件定时器等。 图4显示硬件设计系统的结构。该系统由TMS320VC5402与其它外围设备组成。待添加的隐藏文字内容2图4结构系统该TLC320AC01是模拟接口电路(AIC)。此器件集成了14位分辨率的ADC和DAC ,带通开关电容抗锯齿输入滤波器,低通开关电容输出重建滤波器。内部电路的配置和性能参数可以通过设定多通道控制寄存器来进行;渠道ADC和渠道DAC的运作是同步的,数据传输是二进制补码格式; EPROM的大小为32K×8bit; TMS320VC5402的32 KB的引导地址范围为8000h-0ffffh ; SARAM和TMS320VC5402的32K的外部程序存储器在地址范围48000h -48fffh和16k外部数据存储器在地址范围为40000h -7ffffh 。5.2软件系统基于TMS320VC5402 DSP的集成开发环境是CCS(Code Compo ser Studio),是TI公司所提供的。 CCS与模拟器XDS510一起使用。自适应FIR滤波器的软件设计使用汇编语言完成。图5给出了软件程序设计流程图。 图5流程图BK是FIR循环缓冲区的大小,块重复计数器(BRC)设为99。硬件的初始化包含:时钟,中断,内存, McBSP0,AC01和片上计时器,然后主程序无限循环运行,直到中断定时器的到来。使用同步串行端口初始化AC01,并巧妙地适用于指挥闲置1 。后初始化数据传输系统,然后等待传输中断的串行端口,以保证安全的数据传输。运行在TMS320VC5402的LMS, ST|MPY, and RPTBD指令,可以减少自适应滤波代码的执行时间。LMS算法如下所示LMS Xmem , Ymem 该LMS指示可以解释为MACXmem+ ,Ymem+,B; B-B+(*coeff+ × *input +)| ADD Xmem ,16, A ; A-(*coeff+A) << 16  由于TMS320VC5402是定点的DSP ,所以输入数据,相关数据和步长需要采取Q15格式,然后这些数据必须改变为Q15固定点格式,分别乘以215。在组装程序时要指出循环寻址和溢出。 用MATLAB验证算法,并取得输入信号和期望信号的样本值,复制组装程序中的这些数据,汇编程序,其程序如下所示:loop: LD #0,BSTM #8,BRC ;Repeat 256 timesRPTBD lms end-1MPY *input,A ;A-u*e*xLMS *coeff,*input+ ;B-B+coeff*input, A-A+0-A>>16ST A,*coeff+0% ; load coefficient to coff_buffer|MPY *input,ALMS *coeff,*input+ ;filtering, B-accumulatefiltered output y, A-final coefficientlms end:STH A,*coeff+0% ;store final coefficientSTH B,*output ;store the filtered outputLD *refer+,A ;load refer dataSUB *output+,A ;compute errorSTL A,*errorLD delta,TMPY *error+,A ; compute u*e(n)STH A,deltauLD deltau,T ;T=u*eMAR *+input(#-9) ;modify input buffer pointer,BANZ loop,*AR6-complete: nop然后编译,组装和链接,以生成TMS320VC5402的COFF文件,并载入DSP目标系统模拟器由运行,使用调试器调试。测量波如下所示比较Fig 6(b) 和Fig 6(c),我们可以得到,通过约5秒钟系统启动后,自动调整,其误差逐渐减少,该系统收敛,收敛速度依赖于合适方法,我们可以从Fig 6(d)知道,反应时间越长,误差越小。因此,过滤效果越好。6结论在本文中,采用TMS320VC5402的硬件系统结合MATLAB仿真的方法设计的自适应FIR滤波器,使得特殊结构和指令得到充分的利用。由模拟结果和测量结果,已证明该方法是有效和可行的。参考文献1 Simon Haykin, Adaptive Filter Theory M.北京电子工业出版社, 2002 。2 郭森茂,闫生.数字信号处理器模式M.清华大学出版社,2005年。3 马伟夫,雷雍,欢腾.实现自适应滤波的LMS算法和DSP J.四川大学学报(自然科学版). Vol.41 , 2004年10月。4 许嘉璐,郭志森.窄带主动噪声控制系统的级联自适应滤波器J.汇刊音频语音和语言处理,15 (2) , 2007年2月。 5 志正英,潘男等.实现一种基于TMS320F240 DSP的FIR滤波器J. 第6次国际研讨会上测试与测量会议论文集, 2005年1月9日。

    注意事项

    本文(基于TMS320VC5402的自适应FIR滤波器的设计毕业论文外文翻译.doc)为本站会员(laozhun)主动上传,三一办公仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知三一办公(点击联系客服),我们立即给予删除!

    温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。




    备案号:宁ICP备20000045号-2

    经营许可证:宁B2-20210002

    宁公网安备 64010402000987号

    三一办公
    收起
    展开