1、摘要 I 摘 要 信号发生器是一种常用的信号源,广泛地应用于电子电路、自动控制系统和教 学实验等领域。目前使用的信号发生器大部分是函数信号发生器,且特殊波形发生 器的价格昂贵。 所以本设计使用的是 AT89C51 单片机构成的发生器, 可产生三角波、 方波、正弦波等多种特殊波形和任意波形,波形的频率可用程序控制改变。在单片 机上加外围器件键盘,通过键盘控制波形频率的增减以及波形的选择,并用了 LCD 显示频率大小。在单片机的输出端口接 DAC0832 进行 D/A 转换,再通过运放进行 波形调整,最后输出波形接在示波器上显示。本设计具有线路简单、结构紧凑、价 格低廉、性能优越等优点。 关键词:
2、信号发生器;AT89C51;波形调整;DAC0832; LCD 显示 II Abstract Signal-generator is a kind of signal source in common use, broadly applied at the electronics electric circuit, auto control system and teaching experiment etc. Currently used mostly function signal generator signal generator, waveform generator and a s
3、pecial price of expensive . So the dissertation is usage of the AD9851 single-chip microcomputer constitute of wave-form generator, which can generate triangle wave, square wave, sine wave etc variety wave-form, the period of wave can be controlLCD by procedure, at outer circle spare part of the mac
4、hine, plus independence type keyboard , which can control wave increase or decrease of form-frequency and the choice of wave-form, at the same time LCD display frequency size. The output of the machine connect DAC0832 to carry on a DA conversion,again pass operation amplifier to put an end exportati
5、on wave-form. This design has advantage of simple circuit, tightly packed structure, cheap price, superior function etc. Keywordssignalgenerator;AT89C51;wave-form adjustment;DAC0832; LCD display 目录 III 目 录 摘 要 I Abstract II 第 1 章 绪论 . 1 1.1 课题背景 1 1.2 目的意义 . 1 1.3 设计要求和任务 2 第 2 章 信号发生器的方案研究 . 3 2.1
6、总体方案论证与设计 . 3 2.2 模块结构划分 3 第 3 章硬件电路的设计 5 3.1 基本原理 5 3.2 各模块具体设计 5 3.2.1 单片机介绍 5 3.2.2 AT89C51 单片机介绍 5 3.2.3 按键电路 8 3.2.4 显示电路. 10 3.2.5 D/A 转换电路 . 11 3.2.6 放大及 I/V 转换波形输出电路. 13 第 4 章软件设计和系统调试 14 4.1 软件的总体设计 14 4.2 软件设计主流程图 . 14 4.3 波形设计 15 4.4 软件仿真 17 第五章 结论 . 21 参考文献 . 22 致谢. 错误错误!未定义书签。未定义书签。 附录 25 第 1 章 绪论 1 第 1 章 绪论 1.1 课题背景课题背景 随着电子测量及其他部门对各类信号发生器的广泛需求及电子技术的迅 速发展,促使信号发生器种类增多,性能提高。尤其随着 70 年代微处理器的出 现,更促使信号发生器向着自动化、智能化方向发展。现在,许多信号发生器 带有微处理器,因而具备了自校、自检、自动故障诊断和自动波形形成和修正 等功能,可以和控制计算机及其他测量仪器一起