1、 课程设计报告课程设计报告 设计题目: 简易波形发生器 学 院: 理学院 专业班级:08 电子信息科学与技术(1)班 学 号: 姓 名: 电子邮件: 时 间: 2010 年 12 月 成 绩: 指导教师: 课课 程程 设设 计(报告)任计(报告)任 务务 书书 题 目 简易波形发生器 任务与要求 以单片机为主控制器,扩展适当的接口电路,制作一个简易波 形发生器,通过示波器观察所得的信号波形。通过功能选择,使信 号发生器分别输出阶梯波、正弦波、三角波和方形波。学会查询文 献资料,撰写论文的方法,并提交课程设计报告和实验成品。 开始日期 2010 年 12 月 7 日 完成日期 2010 年 12
2、 月 23 日 简易波形发生器简易波形发生器 摘要:摘要:本系统是基于 STC89C52 单片机的波形发生器。采用 STC89C52 单片机 作为控制核心,外围采用数字/模拟转换电路(DAC0832)和按键等。通过按键 控制可产生方形波、三角波、正弦波和阶梯波。其设计简单、性能优良,具有一 定的实用性。文中简要介绍了 DAC0832 数模转换器的结构原理和使用方法, STC89C52 的基础理论, 着重介绍了如何利用单片机控制 D/A 转换器产生上述信 号的硬件电路和软件编程。 关键词:关键词:波形发生器、STC89C52、DAC0832 Abstract: Waveform The syst
3、em is a generator based on single chip computer. STC89C52 is used as a control microcontroller core. The system is composed by digital/analog conversion (DAC0832) and buttons. .It can generate the square, triangle,sine and step wave. It is very practical. This paper introduces different signals that
4、 are produced by STC89C52 SCM and DAC0832, and briefly introduces the structure principle and usage of DAC0832, the basic theory of STC89C52. This paper emphasized how to use SCM to control the hardware circuit and software program of the signals above which produced by DAC0832 as well. Key words: waveform generator, STC89C52, DAC0832 1 1 引言引言 波形发生器也称函数发生器,作为实验信号源,是现今各种电子电路