电工系毕业设计
摘 要
信号发生器是一种常用的信号源,如今广泛地应用于电子电路、自动控制系统和教学实验等领域。在科学研究、工程教育及生产实践中,如工业过程控制、教学实验、机械振动试验、动态分析、材料试验、生物医学等领域,常常需要用到低频信号发生器。而在我们日常生在活中,以及一些科学研究中,锯齿波、正弦波和波信号是常用的基本测试信号。
本设计以STC89C52单片机为数据处理和控制核心,在单片机的输出端口接DAC0832进行D/A转换,再通过运算放大器LM324进行波形调整,最后输出波形接在示波器上显示。可产生方波、三角波、正弦波、锯齿波四种低频波形,其中,波形的频率和幅度由程序控制,波形的选择以及波形频率和幅度的调整,可通过扩展在单片机外围的按键来控制。本设计具有线路简单、波形调整方便、结构紧凑、价格低廉、性能优越等优点。
关键词:数据处理;数模转换;信号发生器;波形调整
broadly applied at the electronics electric circuit, auto control system and teaching experiment etc. Scientific research, engineering, education and production practice, such as industrial process control, teaching experiment, mechanical vibration test, dynamic analysis, material testing, biomedical and other fields, often need to use low frequency signal generator. In our daily life in living, and some scientific research, sawtooth and sine wave, triangle wave,square wave signal is commonly used in the basic test signals.
this design uses STC89C52 as the core of data processing and control, the output port of MCU connect DAC0832 to carry on D/A transformation, then, adjusting the waveform through the operational amplifier, finally, the output waveform will be displayed in oscilloscope. It can create four low frequency waveforms, such as square wave, triangle wave, sine wave and sawtooth wave. The frequency and amplitude waveforms are controlled by software, and we can change them through the keyboard that connected with the MCU. All in all, this system has advantage of simple and compact structure, convenient adjustment of wave, low cost and superior performance, etc.
Key words :data processing; D/A transformation; signal-generator; wave adjustment
目 录
1 绪论 1
1.1 课题背景 1
1.2 研究目的和意义 1
1.3 发展历史与现状 2
2 硬件电路设计 3
2.1 设计思路 3
2.2 控制模块 4
2.3 DA转换模块 5
2.5 MCU复位电路 7
2.6 晶振电路 7
2.7 I/V转换电路 8
3 软件程序设计 10
3.1 软件设计思路 10
3.2 方波程序 12
3.3 锯齿波程序 13
3.4 正弦波程序 14
3.5 三角波程序 16
4 软件仿真 18
4.1 软件仿真 18
4.2 仿真结果 19
4. 3仿真遇到的问题 21
5 硬件安装与调试 22
5.1 硬件测试定义和目的 22
5.2 焊接 22
5.3 硬件电路调试 23
5.4 调试中出现的问题及解决方法 25
6 总结 2
您可能关注的文档
最近下载
- 部编版语文四年级下册第一单元教材解读大单元集体备课1.0版.pptx VIP
- 射血分数保留的心力衰竭诊断与治疗中国专家共识 2025解读.pptx
- 单相变压器计算单.xls VIP
- 小学操场塑胶跑道和人造草坪施工组织设计.docx VIP
- 小儿新生儿高胆红素血症诊疗指南(2025年版).docx VIP
- 高中地理二轮复习.ppt VIP
- 三段高级第11组《未来世界真奇妙》.ppt VIP
- 2026贵州毕节市七星关区融媒体中心招聘事业单位工作人员10人备考题库及答案详解1套.docx VIP
- 2025年陕西省榆林市榆阳区中考一模化学试题(原卷版+解析版).docx VIP
- 老旧社区物业管理与社区治理的协同发展模式.pdf VIP
原创力文档

文档评论(0)