文档详情

设计两路相位可调方波信号发生器武汉理工大学单片机课程设计.doc

发布:2018-12-14约1.33万字共30页下载文档
文本预览下载声明
课程设计任务书 学生姓名: 陈疏影 专业班级:电信1305 指导教师: 王绪国 工作单位: 信息工程学院 题 目: 设计并实现两路相位可调方波信号发生器 初始条件: 具备模拟电子电路的理论知识;具备单片机的设计能力;具备模拟电路的基本调试手段;自选相关电子器件;可以使用实验室仪器调试。 要求完成的主要任务: (包括课程设计工作量及其技术要求,以及说明书撰写等具体要求) 1、输出两路方波信号 2、键盘控制频率和两信号的相位差 3、频率范围和变化步长值自定 4、相位范围0~360° 5、相位差变化步长值自定 6、用双踪示波器观察 7、能做到频率和相位差两参数独立变化更好 时间安排: 一月六号答辩 指导教师签名: 年 月 日 系主任(或责任教师)签名: 年 月 日 摘要 单片机集成度高、功能强、可靠性高、体积小、功耗地、使用方便、价格低廉等一系列优点,目前已经渗入到人们工作和生活的方方面面。单片机的应用领域已从面向工业控制、通讯、交通、智能仪表等迅速发展到家用消费产品、办公自动化、汽车电子、PC机外围以及网络通讯等广大领域。 本文介绍了两路相位可调方波信号发生器的原理与设计。利用定时器来实现方波输出,相位变化,最后对设计的系统进行性能分析(精度、实用性、成本等)。本设计最终产生两路频率相位可调的方波信号。用增加、减小2个按钮改变方波给定频率,按钮每按下一次,给定频率改变的步进步长为1Hz,当按钮持续按下的时间超过2秒后,给定频率以10次/秒的速度连续增加(减少),输出方波的频率在数码管上显示。相位最小步进值为18度,且可以进行左移,右移。开机默认输出频率为10Hz。 关键词:信号发生器;方波;频率相位可调 Abstract Microcontroller is high level integrated , strong function, high reliability, small size, power consumption, convenient, low price, and a series of advantages, has penetrated into peoples work and life. The application field of singlechip has from for industrial control, communications, transportation, intelligent instruments. 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 18 degree and can move leftward o
显示全部
相似文档