文章导读
总览 评价 陈晨 1, , 肖攸安 2,* ( 1、 武汉理工大学信息工程学院; 2、 武汉理工大学信息工程学院,武汉市 430070; ) 摘要: 本文介绍了两路相位可调方波信号发生器的原理与设计。实现了系统的硬件设计和软件设计,并运用Proteus仿真软件对所设计的系
陈晨1,, 肖攸安2,*
(
1、武汉理工大学信息工程学院; 2、武汉理工大学信息工程学院,武汉市 430070; )
摘要:
本文介绍了两路相位可调方波信号发生器的原理与设计。实现了系统的硬件设计和软件设计,并运用Proteus仿真软件对所设计的系统进行调试和仿真,利用定时器来实现方波输出,相位变化,最后对设计的系统进行性能分析(精度、实用性、成本等)。本设计最终产生两路频率相位可调的方波信号。输出方波的频率范围为1Hz-200Hz,频率误差比小于0.5%。用"增加"、"减小"2个按钮改变方波给定频率,按钮每按下一次,给定频率改变的步进步长为1Hz,当按钮持续按下的时间超过2秒后,给定频率以10次/秒的速度连续增加(减少),输出方波的频率在数码管上显示。相位最小步进值为1度,也可以行10度步进,且可以进行左移,右移。开机默认输出频率为5Hz。
关键词:
单片机编程;信号发生器;Proteus;方波;频率相位可调
CHEN Chen1,, XIAO Youan2,*
(
1、School of Information Engineering,Wuhan University of Technology; 2、School of Information Engineering,Wuhan University of Technology,Wuhan 430070; )
Abstract:
This paper presents the principle and design of two phase adjustable square wave unit. The whole work includes the design of both hardware and software of the system and then, by using Proteus software, the system is debugged and simulated. The final result of this work is generating the two phase adjustable the square wave signal. The frequency range of the output square wave signal is 1Hz-200Hz, the frequency error rate is less than 0.5%. Using the "increase "and "decrease" buttons, the frequency of the square wave can be changed. Each time the button being pushed, the frequency is changed by 1Hz. If the button being pushed longer than 2 seconds, the frequency will increase of decrease by the rate of 10 times per second. The output square wave will be showed on the Digitron。The minimum of the phase is 1 degree. It can also be 10 degrees and can move leftward or rightward. The start-up default output frequency is 5Hz.
Tag:
点此返回栏目查看更多>>>参考论文