简易波形发生器的设计

  • 格式:doc
  • 大小:1.21 MB
  • 文档页数:34

XXXX学院课程设计报告

课程名称: 单片机课程设计

院 系: 电气与信息工程学院

专业班级: 自动化09102班

学生姓名: X X

指导教师: X X X

完成时间: 2012年6月10日

报告成绩:

评阅意见:

评阅教师 日期

器 简易波形发生器

I 摘 要

简易波形发生器是一种常用的信号源,它广泛地应用在电子技术实验、自动控制系统和其他科研领域。本系统能够准确产生方波、正弦波、锯齿波及三角波。基于数模转换芯片DAC0832技术的简易波形发生器由六个部分组成:MCU模块、波形发生模块、静态LED数码管显示模块、键盘输入模块、在线下载模块以及电源模块。MCU模块采用STC89C51RC单片机进行数据处理,波形发生模块采用DAC0832及LM324进行波形发生及变换,静态LED数码管显示模块利用3位八段共阳极数码管及3个74LS164显示当前波形频率,键盘模块采取外部中断方式扫描键值,在线下载模块选用MAX232芯片进行单片机程序下载,电源模块使用三端稳压器为系统提供能源。运用Altium Designer软件绘制了单元电路以及总体电路图,借助Proteus仿真软件对电路进行了虚拟实验,通过仿真分析,满足了课题性能指标的要求,成功地实现了简易波形发生器的设计。

关键词 波形发生器;DAC0832;STC89C51RC;静态显示 简易波形发生器

II Abstract

Simple waveform generator is a common source, it is widely used in the experiment of

electronic technology, automatic control system and other scientific fields. The system can

accurately produce a square wave, sine wave, sawtooth wave and triangle wave. Based on the

digital-analog conversion chip DAC0832 simple waveform generator consists of six parts: MCU

module, waveform generator module, static LED digital display module, keyboard input module,

the download module and power supply. The MCU STC89C51RC microcontroller is for data

processing. The waveform generation module which made of DAC0832 and LM324 is used to

generate waveform and transform. The static LED digital display module uses three eight out

common anode digital and three 74LS164 to show the current waveform frequency. The

keyboard module to take external interrupt the scan key. Download module use a MAX232 chip

microcontroller program download. The power supply uses three-terminal regulator to provide

energy for the system. Altium Designer were used to draw a unit circuit as well as the overall

circuit. With Proteus simulation software to conduct virtual experiments on the circuit,

simulation analysis, to meet the requirements of the subject of performance indicators, the

successful implementation of a simple waveform generator design.

Keywords waveform generator ;DAC0832;STC89C51RC; static LED digital display

简易波形发生器

III 目 录

摘 要 .............................................................................................................................................. I

Abstract .......................................................................................................................................... II

第一章 简易波形发生器的方案设计 ......................................................................................... 1

1.1简易波形发生器的方案分析与比较 ................................................................................ 1

1.1.1 基于数模转换芯片DAC0832的简易波形发生器的设计 ................................ 1

1.1.2 基于MAX038函数发生器的简易波形发生器的设计 ...................................... 1

1.1.3 基于DDS波形发生技术的简易波形发生器的设计 ......................................... 2

1.2 简易波形发生器的总体结构说明 ................................................................................... 2

第二章 简易波形发生器的电路设计 ........................................................................................... 3

2.1 MCU模块 .......................................................................................................................... 3

2.1.1 STC89C51RC单片机.............................................................................................. 3

2.1.2 复位电路 ............................................................................................................... 5

2.1.3 时钟电路 ............................................................................................................... 5

2.2 DAC0832模块 ............................................................................................................... 5

2.2.1 DAC0832芯片基本介绍 ..................................................................................... 6

2.2.2 DAC0832波形发生电路 ..................................................................................... 7

2.3 静态LED数码管显示模块 ........................................................................................... 7

2.3.1 移位寄存器74LS164 ........................................................................................... 7

2.3.2 静态显示电路 ....................................................................................................... 8

2.4 键盘输入模块 ................................................................................................................... 8

2.5 在线下载模块 ................................................................................................................... 9

2.6 电源模块 ........................................................................................................................... 9