没有合适的资源?快使用搜索试试~ 我知道了~
【原创】【毕业设计论文-范本】基于单片机的交通灯控制系统设计与实现.doc
1 下载量 171 浏览量
2023-07-07
15:01:36
上传
评论
收藏 682KB DOC 举报
温馨提示
试读
49页
【原创】【毕业设计论文-范本】基于单片机的交通灯控制系统设计与实现.doc
资源推荐
资源详情
资源评论
I
基于单片机的交通灯控制系统设计与实现
目 录
摘 要 ........................................................II
1 交通灯的发展及应用 .............................................1
2 控制器系统设计 .................................................2
2.1 交通管理的方案 ..............................................2
2.2 系统设计原理 ................................................3
3 芯片的选择与简介 ...............................................6
3.1 AT89C52 芯片简介 ............................................6
3.2 8255 芯片简介 ...............................................9
3.3 数码管 ....................................................11
4 控制器的软件设计 ..............................................12
4.1 计数器初值计算 .............................................12
4.2 软件延时 ...................................................13
4.3 AT89C52 并行口的扩展 .......................................14
5 程序设计 ......................................................16
5.1 流程图 .....................................................16
5.2 程序清单 ...................................................18
6 看门狗硬件电路 ................................................22
6.1 软件看门狗 .................................................22
II
6.2 硬件看门狗 .................................................23
7 系统的调试与运行方案 ..........................................25
7.1 实验步骤 ...................................................25
7.2 系统内存分配和 I/0 接口 .....................................26
7.3 实验程序原代码 .............................................27
8 结 论 .........................................................30
致 谢 ........................................................31
参考文献 ........................................................32
III
IV
摘 要
近年来随着科技的飞速发展,单片机的应用正在不断地深入发展,
同时带动传统控制检测的更新。在实时检测和自动控制的单片机应用系
统中,单片机往往是作为一个核心部件来使用,仅单片机方面的知识是
不够的,还应该根据具体硬件结构,以及针对具体应用对象特点的软件
结合,加以完善。
十字路口车辆穿梭,行人熙攘,车行车道,人行人道,有条不紊。那
么靠什么来实现这井然秩序呢?靠的是交通信号灯的自动指挥系统。交
通信号灯控制方式很多。本系统采用 AT89C52 系列单片机和可编程并行
I/O 接口芯片 8255A 为中心器件来设计交通灯控制器,实现了能根据实际
车流量通过 AT89C52 芯片的 P1 口设置红、绿灯燃亮时间的功能;为了系
统稳定可靠采用了 MAX629“看门狗”芯片,避免了系统因为死机而停止
工作的情况发生;显示时间直接通过 8255 的 PA、PB 口输出;交通灯信
号通过 PC 口输出;交通灯的点亮采用 VT 双向晶闸管来控制,直接采用
220V 交流电源驱动,系统实用性强、操作简单、扩展性强。
关键词:单片机,看门狗 MAX629,交通灯,控制器
1
Abstract
With the rapid development of science and technology in recent years,
SCM applications are continued development, and promote the traditional
control testing update. In real-time detection and automatic control of
microcomputer application system, the microcontroller is often used as a core
component, only the knowledge of SCM is not enough, it should be based on
the specific hardware architecture, and application-specific software features
object combination, to be improved .
Crossroads shuttle vehicles, pedestrians bustling, car dealers lane,
one pedestrian and orderly. Then rely on to achieve this discipline of the order
it? Relies on the automatic traffic signal control system. Many traffic lights
control. The system uses AT89C52 microcontrollers and programmable
parallel I / O interface chip 8255A is designed for the center of traffic light
controller device to realize according to the actual traffic flow through the
port P1 AT89C52 chip set of red, green kindle function of time; to Stable and
reliable system uses MAX629 "watchdog " chip, to avoid the system crashes
and stops working because of the situations; display time directly through the
8255 PA, PB output port; traffic signal output through the PC port.
Keywords: microcontroller, the watchdog MAX629, traffic lights,
controller
剩余48页未读,继续阅读
资源评论
黑色的迷迭香
- 粉丝: 712
- 资源: 4万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功