文档详情

基于AVR单片机多功能函数信号发生器.doc

发布:2017-02-03约3.03万字共49页下载文档
文本预览下载声明
编号: 毕业设计说明书 题 目: 基于AVR单片机多功能 函数发生器的设计 院 (系): 电子工程学院 专 业: 测控技术与仪器 学生姓名: 学 号: 指导教师: 职 称: 题目类型: 理论研究 实验研究 工程设计 √工程技术研究 软件开发 2010 年 5 月 18 日 摘要 多功能函数发生器即信号发生器,是一种常用的的信号源,广泛地应用于电子电路、自动控制系统和教学实验领域。目前使用的信号发生器大部分是函数信号发生器,其中特殊波形发生器价格昂贵。因此采用直接数字频率合成技术来实现函数发生器,成本较低,具有较高的研究价值。 本设计是以AVR单片机(M64)为核心器件,用R2R电阻网络设计D/A转换器,使其具有可以产生三角波、方波、正弦波的函数发生器,波形可以进行调频和调幅,而调频主要是用软件的方法实现DDS的算法,从而达到改变频率的目的。并用4×4矩阵键盘来选择各种波形的输出和频率的设置,以及用TG12864液晶来显示选择的波形、频率和幅度。 系统实现了方波,三角波和正弦波的输出,频率范围为200~1MHz,幅度为0~5V。系统稳定,容易调试,成本较低,具有一定的使用价值。 关键词:AVR单片机; R2R网络; TG12864液晶; DDS算法; Abstract As we know, a multi-function generator is a signal generator,and it is a common signal source, which is widely used in the field of electronic circuits, controlling systems, and teaching experiments. Most of the currently signal generator is the function signal generator.Waveform generator is very expensive. Therefore, the function generator uses the direct digital frequency synthesis technology which the cost is low and of high value. Bases on AVR microcontroller , as the core device, the design makes of the the sine wave function generator by using the R2R resistor network to form the D/A.So it can generate the triangle wave, the square wave, waveform frequency and amplitude which can be changed.To achieve the purpose of changing frequency, it uses the software method to implement the algorithm of DDS. The 4 × 4 matrix keyboard to select the output of various waveforms and the frequency setting, using TG12864 LCD to display the waveforms ,selecting frequency and amplitude. Finally, this system has the implementation of the output of square wave, the triangular wave and the sine wave. The frequency range from 200Hz to 1MHz,from 0 to 5V in amplitude.So we can drop the conclusion that the system is easy ad
显示全部
相似文档