DSP软件编程与算法实现e
- 格式:ppt
- 大小:1.52 MB
- 文档页数:46


制导与引信GUIDANCE & FUZE第41卷第4期2020年12月Vol. 4 1 No. 4Dec. 2020文章编号:1671-0576(2020)04-0033-05基于1553B 的DSP 在轨编程设计与实现张衡,顾泽凌,杨明远,赵建华,李鸿志(上海无线电设备研究所,上海201109)摘要:为了满足星载信号处理机快速稳定的在轨编程应用需求,基于1 553B 接口实现了数字信号处理器(DSP)在轨编程与重构功能。
对要修改的DSP 程序进行编译,获取所需跳转指令和功能程序的十六进制机器码,通过1 553B 接口将功能程序机器码注入DSP 在轨编程 专用地址。
经过内存下载确认无误后,将新的跳转指令机器码注入待替换的跳转指令所在地址,发送启用指令,即可触发新的功能程序。
经过实验室仿真验证,该方法可以快速稳定地实 现功能程序的替换与启用,为星载信号处理机DSP 的在轨编程提供了设计参考。
关键词:数字信号处理器;1 553B ;在轨编程;跳转指令;十六进制机器码中图分类号:TP311文献标志码:ADOI : 10.3969/j.issn.l 671-0576.2020.04.007Design and Realization of On-board Programming forDSP Based on 1553BZHANG Heng , GU Ze-Ung , YANG Ming -yuan , ZHAO Jian -hua , LI Hong-zhi(Shanghai Radio Equipment Research Institute, Shanghai 201109, China)Abstract : In order to meet the requirements of high-rate and stable on-boardprogramming for sate l ite signal processing apparatus , on-board programming andreconstruction for digital signal processor (DSP) are realized based on 1 553B interface. TheDSPprogram to be modifiediscompiledto obtain the hex machine codes ofthejump instructionandthefunctionprogram.Thefunctionprogram machinecodesareinjectedintothe on-board programming specific address of DSP through the 1 553B interface. After the memory data which just been downloaded is confirmed to be correct , the new jump instruction machinecodesareinjectedintotheaddressoftheoldjumpinstructionwhichwi lbereplaced.Then ,the new function program can be triggered by sending the startinstruction.Thesimulationresultsshowthatthe methodcanreplaceandstartthefunction program quickly and stably , which provides a design reference for DSP on-board programminginsate l itesignalprocessingapparatus.Key words : DSP; 1 553B ; on-board programming ; jump instruction ; hex machine code收稿日期:2020-09-03作者简介:张 衡(1982—),男,硕士,高级工程师,主要从事星载信号处理技术研究。
基本算术运算一﹑实验目的加、减、乘、除是数字信号处理中最基本的算术运算。
DSP 中提供了大量的指令来实现这些功能。
本实验学习使用定点DSP 实现16位定点加、减、乘、除运算的基本方法和编程技巧。
二﹑实验原理1﹑定点DSP 中数据表示方法C54X 是16位的定点DSP 。
一个16位的二进制数既可以表示一个整数,也可以表示一个小数。
当它表示一个整数时,其最低位(D0)表示02,D1位表示12,次高位(D14)表示142。
如果表示一个有符号数时,最高位(D15)为符号位,0表示正数,1表示负数。
例如,07FFFH 表示最大的正数32767(十进制),而0FFFFH 表示最大的负数-1(负数用2的补码方式显示)。
当需要表示小数时,小数点的位置始终在最高位后,而最高位(D15)表示符号位。
这样次高位(D14)表示12-,然后是22-,最低位(D0)表示152-。
所以04000H 表示小数0.5,01000H 表示小数125.023=-,而0001H 表示16位定点DSP 能表示的最小的小数(有符号)152-=0.000030517578125。
在后面的实验中,除非有特别说明,我们指的都是有符号数。
在C54X 中,将一个小数用16位定点格式来表示的方法是用152乘以该小数,然后取整。
从上面的分析可以看出,在DSP 中一个16进制的数可以表示不同的十进制数,或者是整数,或者是小数(如果表示小数,必定小于1),但仅仅是在做整数乘除或小数乘除时,系统对它们的处理才是有所区别的,而在加减运算时,系统都当成整数来处理。
2﹑实现16定点加法C54X 中提供了多条用于加法的指令,如ADD ,ADDC ,ADDM 和ADDS 。
其中ADDS 用于无符号数的加法运算,ADDC 用于带进位的加法运算(如32位扩展精度加法),而ADDM 专用于立即数的加法。
ADD 指令的寻址方式很多,其详细使用说明请参考《TMS320C54X 实用教程》。
简述dsp的应用软件开发流程Developing software applications for Digital Signal Processors (DSP) requires a systematic approach to ensure the efficiency and reliability of the final product. 在为数字信号处理器(DSP)开发软件应用程序时,需要采取系统化的方法,以确保最终产品的效率和可靠性。
The first step in the DSP application software development process is to clearly define the project requirements. 首先,DSP应用软件开发过程的第一步是明确定义项目需求。
This involves understanding the specific functionality and performance goals of the application, as well as any constraints or limitations that may impact the development process. 这包括了解该应用程序的特定功能和性能目标,以及可能影响开发过程的任何限制或限制。
Once the project requirements have been established, the next step is to design the software architecture. 一旦确定了项目需求,下一步是设计软件架构。
This involves defining the overall structure of the application, including the various components and how they interact with each other. 这涉及定义应用程序的整体结构,包括各种组件以及它们之间的交互方式。