- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
C51交通灯多任务控制系统设计
C51交通灯多任务控制系统设计
近几年来,城市化进程和社会的发展越来越快,解决城市的交通拥挤问题也就越来越紧迫。本设计利用系列单片机,通过RTX—51Tiny实时多任务操作系统来完成道路交通灯的控制系统。该系统由七个任务组成:任务0:用于初始化单片机串口,同时启动所有其他的任务,然后停止本任务;任务1:用于整个系统的串行命令处理;任务2:用于系统时钟计算和控制;任务3:如果系统运行时间在设置的工作时间段之外,黄色灯闪烁,其余灯停止工作;任务4:如果系统运行时间在设置的工作时间段之内,控制交通灯的循环交替变化;任务5:查询行人通行按钮是否按下,如果按钮按下则向任务4发送信号,使主路交通灯变为红色,行人交通灯变为绿色;任务6:监视串口是否有ESC字符,如果有则向任务1发送一个信号,终止时间显示命令。
通过keil vision 3和pros软件的联合仿真,本设计可实现白天交通灯受系统的控制,按照预定的时间间隔交替的变化,在晚上的时候,黄灯一直闪烁,其他的灯不工作,当行人通行按钮被按下时,主路的交通灯会变成红灯禁止车辆通过,行人交通灯会变成绿灯进入行人过马路状态的功能。
Multitasking C51 traffic control system design
Abstracts
In recent years, the development of urbanization and the society more and more quickly, solve the urban traffic congestion problem is more and more urgent. This design using AT89S55 series microcontroller, through RTX - 51Tiny real-time multitasking operating system to complete the road traffic control system. This system consists of seven tasks: Task 0: used for initialization of MCU, all other serial startup of the task, then stop this task, Task 1: serial order processing, Task 2: used for calculation and control system clock, Task 3: if the system run in the setting time period, the work, the yellow lights flashing lights to stop working, Task 4: if the system is set to work within the period, the control of traffic lights of the alterations ;Task 5 : whether the button is pressed, if the button down to the task of the four transmitted signal, the main road traffic lights turned red and pedestrian traffic light turned green ;Task 6 : monitoring string mouth are esc characters, if there is a task sends a signal to one another, terminating commands. time shows
Through vision and proteus keil software combination of three simulation, this design can be realized by the traffic control system day, according to the predetermined time interval, the changes in the night alternate, yellow lights flashing, other lights have no job, when pedestrians button is pressed when the traffic light into red hills, a ban on vehicle traffic ligh
文档评论(0)