1、 【摘要】 交通在人们的日常生活中占有重要的地位, 随着人们社会活动的日益频繁, 这点更是体现的淋漓尽致。交通信号灯的出现,使交通得以有效管制,对于疏 导交通流量、提高道路通行能力,减少交通事故有明显效果。本系统采用单片 机 AT89C51 为中心器件来设计交通灯控制器,系统实用性强、操作简单、扩展 性强。本设计就是采用单片机模拟十字路口交通灯的各种状态显示以及倒计时 时间。软件上采用 C51 编程,主要编写了主程序,LED 数码管显示程序,中断 程序延时程序等。经过整机调试,实现了对十字路口交通灯的模拟。 关键词关键词:显示,单片机,交通灯 Abstract:Traffic in Peopl
2、es Daily life has important position, as people of social activities have become increasingly frequent, this is reflected the incisively and vividly. The emergence of the traffic lights, traffic is effectively controlled, for facilitating traffic flow, improve road capacity, reduce traffic accidents
3、 have obvious effect. The system USES AT89C51 single chip for center device to designing traffic light controller, system practical, simple operation and expandability. This design is simulated by single chip microcomputer intersection traffic lights to the various states display, and the countdown
4、time. Software is used on C51 programming, mainly to write the main program, LED digital tube show program, interruption program delay procedures, etc. After the commissioning, realize the intersection of traffic simulation. KEYWORDS: Traffic Control, Single Chip Microcomputer , 80C51 目目 录录 前言前言.1 1 1 交通灯设计方案的选择与论证交通灯设计方案的选择与论证 2 1.1 设计任务及要求论证 . 2 1.1.11.1.1任务任务: 2 1.1.2 方案选择与论证 2 1.2 设计主要内容及设计思路 3 1.3 方案组成和说明 . 4 1.4 AT89C51 简介 . 5 1.5 两位七段式数码管 8 1.5.1两位七段式数码管介绍: . 8 2 2 系统硬件设计与实现系统硬件设计与实