南华大学电气工程学院《单片机原理及应用》课程设计:基于STC89C52的交通灯电路设计.doc.doc

南华大学电气工程学院《单片机原理及应用》课程设计:基于STC89C52的交通灯电路设计.doc.doc

  1. 1、本文档共38页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
南华大学电气工程学院《单片机原理及应用》课程设计:基于STC89C52的交通灯电路设计.doc

PAGE PAGE 2 《单片机原理及应用》课程设计 题目: 基于STC89C52的交通灯电路设计 学院名称 电气工程学院  指导老师   班 级 学 号   学生姓名     二0一一年六月 摘要 交通在人们的日常生活中占有重要的地位,随着人们社会活动的日益频繁,这点更是体现的淋漓尽致。交通信号灯的出现,使交通得以有效管制,对于疏导交通流量、提高道路通行能力,减少交通事故有明显效果。近年来随着科技的飞速发展,单片机的应用正在不断深入,同时带动传统控制检测技术日益更新。在实时检测和自动控制的单片机应用系统中,单片机往往作为一个核心部件来使用,仅单片机方面知识是不够的,还应根据具体硬件结构软硬件结合,加以完善。 本系统采用STC89C52点单片机以及数码管为中心器件来设计交通灯控制器,实现了南北方向为主要干道,要求南北方向每次通行时间为30秒,东西方向每次通行时间为25秒。启动开关后,南北方向红灯亮25秒钟,而东西方向绿灯先亮20秒钟,然后闪烁3秒钟,转为黄灯亮2秒钟。接着,东西方向红灯亮30秒钟,而南北方向绿灯先亮25秒,然后闪烁3秒钟,转为黄灯亮2秒钟,如此周而复始。 软件上采用C语言编程,主要编写了主程序,中断程序延时程序等。经过整机调试,实现了对十字路口交通灯的模拟。 关键字:单片机STC89C52? 数码管? 交通灯 发光二极管 Abstract traffic in Peoples Daily life has important position, as people social activities have become increasingly frequent, this also reflect incisively and vividly. The emergence of the traffic lights, traffic to effectively control, for facilitating traffic flow, improve traffic capacity, reduce the number of traffic accidents have obvious effect. In recent years, with the rapid development of science and technology, the application of SCM is unceasingly thorough, it causes the traditional control test technology increasingly updates. In real-time detection and automatic control of microcomputer application system, often as a core component single-chip microcontroller, only to use knowledge is not enough, should according to specific hardware structure, software and hardware combined with improved. The system uses the microcontroller and digital tube STC89C52 points for center device to designing traffic light controller, realized the north-south direction for the main road north and south direction, requirements for 30 seconds each passage of time, time for something every passage direction of 25 seconds. Start switch, the north-south direction after 25 seconds, and a red light green light first things direction and blink 20 seconds to 3 seconds, yellow light for 2 seconds. The

文档评论(0)

bodkd + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档