第 1 页 共 46 页
1
摘 要
根据8051单片机的特点及交通灯在实际控制中的特点,本文提出一种用单片机自动
控制交通灯及时间显示的方法。同时给出了软硬件设计方法,设计过程包括硬件电路设
计和程序设计两大步骤,对在单片机应用中可能遇到的重要技术问题都有涉足。本文对
十字路口状态预设为两种,一种是正常状态,另一种是故障或紧急状态,并分别用黄、
红、绿色灯的不同组合来表示。本文介绍了控制基本原理以及控制的表现,同时也介绍
了城市交通信息系统的设计目标, 开发途径及其系统结构与功能和数据地理编码、建库,
同时, 论述了系统中交通现状、交通管理、交通规划及背景信息查询模块的建造及应用。
介绍了用于城市交叉路口的三色程控交通信号时间显示器的研制方案,对其电源供电、
发光二极管构成的负载结构、灯色时间检测都给出了精巧合理的优化结构,大幅度地提
高了产品可靠性并降低了制造成本。
关键词:8051单片机;交通灯;自动控制;时间显示器;软件;硬件;定时器;延时;
外部中断
Abstract
According to the feature of SCM8051 and the characteristics of traffic lights in real
control,the article puts forward the method of using sigle-chip microcomputer to control
automatically the traffic signal lights and time-show.The method of realization of hardware
has also been given,the whole process included hardware circuit designing and program
designing,in which some important technique problem that may meet during the use of
Singlechip involved.In this paper,the state of crossing was designed as two states.One is
normal,another breackdown or urgent,which are expressed with different colour lamp named
yellow、red and green.The basic principle and method of controlling are introduced.In this
paper, the design goals, development ways, system structure, system functions, geographic