毕业设计_简易低频信号源设计.doc
文本预览下载声明
摘 要
信号发生器是指产生所需参数的电测试信号的仪器。按信号波形可分为正弦信号,函数信号,脉冲信号和随机信号发生器等四大类。信号发生器又称信号源或振荡器。在生产实践和科技领域中有着广泛的应用。各种波形曲线均可以产生三角函数方程式来表示。能够产生多种波形,如三角波、锯齿波,正弦波等。该设计方案提出的是利用单片机作为控制器,用中断查表法完成波形数据的输出,再用D/A转换器输出规定的波形信号。方波信号直接由单片机的端口输出。结合功能要求情况,使用单片机作为控制器,使用DAC0832作为D/A转换器。功能按键使用单片机的3个端口。使能输出频率有较好的稳定性,元器件比较常见,价格低廉,电路设计方便。
关键字:单片机 D/A转换器 低频信号源
Abstract
Signal generator is to produce the required parameters of electrical test instruments of signals. Waveforms can be divided into sinusoidal signal function signals, pulse and random signal generator and other four categories. Signal generator, also known as the signal source or oscillator. In production and has been widely used in the fields of science and technology. Various waveforms can produce trigonometric equations. Can produce a variety of wave, triangle wave, sawtooth wave, sine wave, and so on. The design options are used as controller, interrupt table look-up method complete the output waveform data, and d/a converters output signals provided. Square wave output directly from the port. Combined with functional requirements, using as controller, DAC0832 is used as a d/a converter. Function key use the 3 ports. Enabled output frequency has a better stability, more common components and low price, and circuit design.
Keywords: monolithic d/a converter for low frequency signal generator
目 录
摘 要 I
Abstract II
1 任务描述 1
1.1任务主要内容及要求 1
1.2 对设计说明书,论文撰写内容,格式,字数的要求 1
2 设计方案 2
2.1 设计总体思路 3
3系统硬件电路的设计 3
3.1 控制部分 3
3.2数模转换部分 3
3.2.1 DAC0832芯片介绍 3
3.2.2 DAC0832引脚介绍 3
3.2.3DAC0832工作方式 4
4软件部分 5
4.1 主程序 5
4.2 初始化函数 5
4.3 键扫描子程序 6
4.4 波形数据产生子程序 7
4.5 波形查找表程序 8
4.5.1 三角波查找表 8
4.5.2 正弦波查找表 9
5 调试及性能分析 11
小结 12
致谢 13
参考文献………………………………………………………………………………………………………..14
附录……………………………………………………………………………………………………………..15
1 任务描述
1.1设计主要内容及要求
基于单片机的简易低频信号源的设计。
1)简要说明
用单片机设计出一个简易低频信号源。此多路数字电压表完成产生正弦波、三角波和方波功能。
2)任务和要求
设计一个简易低频信号源,该低频信号源基本功能:能输出0.1-50Hz的正弦波、三角波和方波信号,其中正弦波和三角波信号可以用按键选择输出,输出信号的频率可以在0.1-50Hz范围内任意调整。
由于要求的输出信号频率较低,因此考虑使用单片机作为控制器,用中断查表发完成波形数据的
显示全部