基于单片机的信号源设计毕设论文

基于单片机的信号源设计

基于单片机的信号源设计

Based on Single-chip Microcontroller 's Signal Sources Design

基于单片机的信号源设计

基于单片机的信号源设计

[摘 要] 本系统是基于AT89C51单片机控制的信号源设计,可输出电压值为0~5V,频率为0~1000Hz的方波、锯齿波、三角波和正弦波等四种波形信号。通过外围芯片实现数据的转换控制,利用数码管来实现对输出波形的信号参数进行实时显示。本系统输出的各种信号,均由软件产生各种数据,再经过D/A0832转换后输出波形信号。本设计输出的信号源,适用于多种低频信号源的使用场所。采用这种方法设计的信号发生器具有成本廉价和显示效果好, 系统的抗干扰性强、设计灵活方便等优点,有着广阔的市场前景。

[关键字]单片机;AT89C51;信号源;D/A转换

Based on Single-chip Microcontroller 's Signal Sources Design

Electronic Information Project Major YANG Xiao-pan

Abstract: This system is the supply signal sources design which controls based on AT89C51 single-chip microcontroller, but the output voltage value is 0~5V, the frequency is the 0~1000Hz square-wave, the saw-tooth wave, the triangular wave and the sine wave and so on four kind of profile signals. Realizes the data switching control through the periphery chip, realizes using the nixietube to the output wave shape signal parameter carries on the real time display. This system output's each kind of signal, has each kind of data by the software, again transforms after D/A0832 output wave shape signal. This design output's signal sources, is suitable for many kinds of low frequency signal sources use places. Uses this methods design the signal generating device to have the cost to be inexpensive and the demonstration effect is good, system's anti-jamming is strong, merits and so on design nimble convenience, have the broad market prospect.

Key words: Single-chip microcontroller; AT89C51; Signal sources; D/A transformation

基于单片机的信号源设计

目 录

1 前言······································································································· 1

1.1背景 ································································································ 1 1.2 研究的意义与目的 ············································································· 1 2 信号源的硬件设计 ···················································································· 2

2.1 硬件总体设计 ··················································································· 2

2.1.1 主控芯片的选择 ········································································ 2 2.1.2 D/A转换芯片 ·········································································· 5 2.1.3 显示部分芯片 ··········································································· 6 2.2 系统硬件电路设计 ············································································· 8

2.2.1 D/A转换部分 ············································································ 8 2.2.2 显示模块 ················································································· 9 2.2.3 人机接口电路 ·········································································· 10 2.2.4 单片机时钟及复位电路 ······························································ 10 2.2.5 电源电路 ················································································ 11 2.2.6 整体硬件电路 ·········································································· 12

3 系统程序的设计 ···················································································· 12

3.1 系统主程序 ····················································································· 13 3.2 方波相关子程序 ··············································································· 13

3.2.1 方波程序总流程 ······································································· 13 3.2.2 方波产生程序 ·········································································· 14 3.2.3 显示程序 ················································································ 14 3.3 锯齿波子程序 ·················································································· 14 3.4 三角波子程序 ·················································································· 15 3.5 正弦波子程序 ·················································································· 16 4. 系统的调试及系统分析············································································· 16

4.1 系统的调试 ····················································································· 16 4.2 信号源的模拟仿真 ············································································ 17

4.2.1 仿真工具 ················································································ 17 4.2.2 设计仿真原理图 ······································································· 17

结束语······································································································ 18 参考文献 ·································································································· 19 附录 ········································································································· 20 致 谢······································································································ 23

联系客服:779662525#qq.com(#替换为@) 苏ICP备20003344号-4