1、 1 毕业设计(论文)毕业设计(论文) 设计(论文)题目:设计(论文)题目: 基于单片机的基于单片机的数字信号发生器设计数字信号发生器设计 电气工程电气工程 学院学院 2 基于 AT89S51 单片机的数字信号发生器 【摘 要】 智能仪器的出现, 极大地扩充了传统仪器的应用范围。智能仪器凭借其体 积小、功能强、功耗低等优势,迅速地在家用电器、科研单位和工业企业中 得到了广泛的应用。 本系统是基于 AT89S51 单片机设计的数字式波形发生器。采用 AT89S51 作 为系统的控制核心,外围电路采用数字/模拟转换电路(DAC0832) ,运放电路 (MC1458) ,按键,ISP 接口等。通过按
2、键控制切换产生正弦波,锯齿波,三 角波, 方波, 各类型信号的频率统一为 100HZ, 而幅值在-5V+5V 范围内可调。 本设计电路原理简单,性能较好,具有一定的实用性和参考价值。 【关键词】单片机 ,波形发生器 ,D/A 电路 3 DIGITAL SIGNAL GENERATOR DESIGN BASED ON AT89S51 【ABSTRACT】 The emergence of intelligent machines, which greatly expanded the scope of application of traditional instruments. Intelli
3、gent instrument, with its small size, powerful, low-power advantages of home appliances quickly, research institutes and industrial enterprises has been widely used. The system is a digital waveform generator based on single chip computer. AT89S51 is used as a control core. The system is composed by
4、 digital/analog conversion (DAC0832),imply circuit (MC1458),button ISP inferface and LED lights. It can generate square triangle and sine wave,with LED display . The frequency of various types of signal unity of 100HZ, but the amplitude in the-5V +5 V range adjustable. The circuit design is simple,
5、better performance, has some practical and reference value. 【KEY WORDS】the single chip computer , the signal generator , D/A conversion 4 目录 绪论9 1. 波形发生器现状9 2. 单片机在波形发生器中的运用9 第一章 系统设计10 1. 系统要求11 2. 系统方案选择与论证11 3. 系统设计原理与思路11 第二章 硬件电路的设计12 1. AT89S51 的介绍12 2. 资源分配15 3. 最小单片机系统的设计15 4. 各模块电路的设计17 5. ISP 接口23 第三章 软件设计24 1. 主程序的设计25 2. 锯齿波程序的设计25 3. 三角波程序的设计26 4. 正弦波程序的设计27 5. 方波程