摘要:随着我国经济和科技的发展,信号发生器已成为测试仪器中至关重要的一类,因此开发信号发生器具有重大的意义。传统的信号发生器采用专用芯片,不仅成本高,而且控制方式不灵活。本系统是基于AT89C51单片机的信号发生器,采用STC89C51 单片机作为控制核心,而在外围采用数字/模拟转换电路(DAC0832)、运放电路(LM358)、按键和LCD液晶显示电路等,通过按键控制来产生方波、锯齿波、三角波、正弦波,同时用LCD液晶显示出对应的波形。文中简单的介绍了DAC0832数模转换器的结构原理和使用方法,单片机STC89C51的基础理论,以及与电路设计涉及的各类芯片,并重点介绍了基于单片机控制D/A转换器产生上述几种信号的硬件电路设计和软件编程。94357
毕业论文关键词:单片机 信号发生器 D/A转换器 运算放大
Abstract: With the development of economy and science and technology in our country, the signal generator has become a very important category in the test instrument。Therefore, the development of signal generator is of great significance。The traditional signal generator uses the special chip, not only the cost is high, but also the control mode is not flexible。This system is a signal generator based on AT89C51 MCU, using STC89C51 microcontroller as control core and using digital/analog conversion circuit (DAC0832), op amp circuit (LM358), keyboard and LCD liquid crystal display circuit in the peripheral, through the button to generate square wave, sawtooth wave, triangle wave, sine wave, with LCD liquid crystal display the corresponding waveform。This paper simply introduces the structure and principle of DAC0832 digital to analog converter and method of use, the basic theory of SCM STC89C51, as well as various types of chips involved in circuit design, and mainly introduces the hardware circuit design and software programming of the D/A converter based on single chip microcomputer。源C于H优J尔W论R文M网WwW。youeRw。com 原文+QQ752-018766
Key words: The single chip computer The signal generator D/ A conversion Operational amplifier
目 录
1 绪论 4
1。1 系统的设计背景 4
1。2 系统的目的及意义 4
1。3 系统的研究内容 4
2 总体方案设计 5
2。1 系统方案的选择 5
2。2 控制芯片的选择 6
2。3 系统框图 6
3 系统硬件设计 7
3。1 单片机介绍 7
3。2 各部分电路原理 9
4 系统软件设计 14
4。1 主程序流程图 15
4。2 子程序流程图 16
5 系统测试 21
5。1 调试环境 21
5。2 调试过程 21
5。3 调试结果 23
总 结 24
参考文献 25
致 谢 26
附录A 实物图 27
附录B 仿真图 28
附录C 程序清单