毕业设计 基于mcs-51单片机带密码锁可调时交通灯的设计.doc
毕业设计 基于mcs-51单片机带密码锁可调时交通灯的设计,毕业设计 基于mcs-51单片机带密码锁可调时交通灯的设计目 录摘要1引 言3第一章 mcs-51系列单片机简介11.1 单片机简介11.2 单片机的优点11.3 mcs-51单片机的内部组成31.4 mcs-51单片机的引脚功能4第二章 硬件电路的设计72.1 系统的总体设计方案72.2显示器及接口72.2驱动电路9...
内容介绍
此文档由会员 bfxqt 发布毕业设计 基于MCS-51单片机带密码锁可调时交通灯的设计
目 录
摘要 1
引 言 3
第一章 MCS-51系列单片机简介 1
1.1 单片机简介 1
1.2 单片机的优点 1
1.3 MCS-51单片机的内部组成 3
1.4 MCS-51单片机的引脚功能 4
第二章 硬件电路的设计 7
2.1 系统的总体设计方案 7
2.2显示器及接口 7
2.2驱动电路 9
2.3非易失性存储器特点介绍 11
2.4 时钟电路 12
2.5按键电路 13
第三章 中断简介 13
3.1中断的概念 13
3.2中断控制 14
3.3中断响应 15
3.4 中断返回 15
第四章 软件设计 16
4.1设计说明 16
4.2设计思想 16
4.3流程图 17
结 论 20
致 谢 21
附录A 22
附图B 31
参考文献 32
基于MCS-51单片机带密码锁可调时交通灯的设计
摘要; 随着市场经济的飞速发展,人们生活水平的不断提高,人口数量和城市公交车的增多,以及私家车的出现,这使日益发展的城市变的更拥挤,交通的便利便成了首要解决的问题。为营造一个团结,和谐的社会,在现在高频率,快节奏的社会中保障交通的四通八达,已成为一个不可忽视的问题。
使用交通灯,便可使交通得以有效管制,对于疏导交通流量、提高道路通行能力,减少交通事故有明显效果。所以我们考虑设计一个交通灯控制系统。经过考虑与分析,并结合城乡交通的实际情况,我们根据附近的交通灯,做出了一种简单实用的城市交通灯控制系统的设计方案。
考虑到主干道和支干道人流量的不同,我们想到了调时,即主干道和支干道的左走和直走红绿灯可以调。而且交通灯是我们生命安全的一个不可忽视的保障,所以我们加上密码锁是很必要的;再者由于单片机芯片的驱动能力有限,所以就要加上驱动电路部分;接着我们要设计出交通灯的硬件电路图;最后就可根据硬件电路图编程了。根据设计要求可实现交通灯的加密、调时,能符合人流量的可变性和随机性。
关键词: 单片机;中断;显示;E²PROM
The design for a adjustable traffic light of coded lock base on MCS-51 MCU
Abstract; With the rapid development of market economy, it is the continuous improvement of living standards, population size and the number of city buses, as well as the emergence of private cars, which makes the growing city has become more crowded, the traffic has become the primary solution to facilitate the problem. In order to create a united, harmonious society, in the now high-frequency, fast-paced society, the protection of traffic extending in all directions, has become a problem that can not be ignored.
The use of traffic lights, will be able to effectively control traffic, for ease traffic flow, improve the road capacity, the effect of significantly reducing traffic accidents. Therefore, we consider the design of a traffic light control system. After consideration and analysis, combined with the actual situation of urban and rural transportation, according to the traffic lights, make a simple and practical urban traffic lights control system design.
First of all, taking into account the main road and branch roads in different traffic, when we think of the tune, that is a main road and branch roads go the left and straight ahead traffic lights can be adjusted. And traffic lights is one of our safety protection can not be ignored, so we add locks it is necessary; Moreover chips as a result of single-chip drive capability is limited, so we should add some drive circuit; then we have to design a traffic light circuit diagram of the hardware; final circuit can be programmed in accordance with the hardware. following on the MCS-51 single-chip chipset model and the traffic lights were introduced in more detail. can be achieved in accordance with design requirements of the encryption of traffic lights, when adjusted to meet the flow of people and random variability.
Key words: microcontroller; interrupt; display; E²PROM