1、 DSP 结课报告 题 目:基于 DSP 的 DDS 信号发生器的设计 院 系: 信息与控制学院 专 业: 电子信息工程 班级学号: xxx 学生姓名: xxx 成 绩: I 摘 要 在 21 世纪的今天,信号发生器已经广泛地应用于雷达应用,通信系统的仿真与测试 等国防、科研和工业领域。而随着社会的不断进步和科研的不断深入,对信号发生器的波 形可编程性、波形的精度与稳定性等性能提出了更高的要求。基于 DSP 的信号发生器正是 以其编程的高度灵活性,波形的高精度与高稳定性等特点而脱颖而出,具有极大的应用价 值和广泛的应用前景。 该信号发生器主要由 TMS320C5402 和 AT89C51 两大
2、部分组成。在 DSP 芯片上完成对波 形的编程,在单片机上完成控制显示等功能,充分发挥芯片各自的优势。该信号发生器的 硬件设计中 TMS3205410 和 AT89C51 采用主机接口 HPI 进行通信, DSP 接受来自单片机的命 令,根据频率控制字得到相位累加器的累加值,最后将相位累加器的结果高 16 位送地址 线,到 ROM 表中取得正弦波的离散值,送到 D/A 转换器进行数模转换,得到所需要波形。 该信号发生器的软件编程主要采用模块化的设计思想,把程序细化成易于实现的小模 块。编程的语言主要采用执行效率高的汇编语言,C 和汇编语言混合使用的方式灵活的编 写程序。 通过软硬件的联合调试最
3、终正弦波的产生,并成功的实现了其波形频率的可调性。 关键字:信号发生器;TMS320C5410;AT89C51;主机接口 HPI II Abstract Nowadays in the 21st century, the signal generator has been widely used in national defense, scientific research and industrial fields such as radar applications, the simulation and testing of communication systems. With th
4、e developing of society and the deepening of scientific research, the waveform of the programmable and the accuracy and stability properties signal generator is needed for higher improved than before. DSP-based signal generator which is famous for its highly flexibility in its programming, highly-pr
5、ecision waveform characteristics with highly stability and come to the fore, has a great value and extensive application prospects in future. This signal generator is mainly composed of TMS320C5402 and AT89S51. complete the programming for wave generate on the digital signal processor and complete c
6、ontrol and display function on the Microprogrammed Control Unit ,fully exert the advantages of chip. In the hardware design of the signal generator TMS3205410 and AT89S51 communicate by HPI interface, DSP microcontroller Accept orders from the chip, According to the frequency control characters Obtain phase accumulators accumulative value according to the frequecy contronl word , and then send the high 16 bit result of Phase accumulators to addres