单片机课程设计题 目: 基于单片机的智能交通灯的设计 学 院 机电与信息工程学院 专 业 电子信息工程 年 级 2025 级 学 号 172025114006 、 172025114029 姓 名 张晋笙、张榜 指 导 教 师 邓凌云 成 绩 2025 年 12 月 27 日摘要随着社会主义的建设,城市的规模在不断扩大,城市的交通也在不断的提高和改进,交通的顺畅已经成为制约社会主义建设的一个重要因素。本系统采纳单片机 AT89S52 来设计交通灯控制器,实现了能根据实际车流量通过 AT89S52芯片的 P1 口设置红、绿灯燃亮时间的功能;红绿灯循环点亮,倒计时剩 5 秒时黄灯闪耀警示。本系统有用性强、操作简单、扩展功能强。 关键词: AT89S52 单片机;交通灯;倒计时;时间显示 Abstract With the construction of socialism, the city scale in expanding constantly, urban traffic is also in constant improvement and improvement, traffic flow restriction of socialist construction has bee one of the important factors. The system USES the monolithic integrated circuit ATAT89S52 to design and realize the traffic light controller can according to actual traffic through the mouth AT89S52 chip set red, green P1 burning time function; Traffic lights circulation lighted, with 5 seconds countdown yellow lights flashing warning. This system is practical, simple operation and function expansion is strong.Keywords: AT89S52 microcontroller, Traffic lights, The countdown, Time display 目录第一章 绪 论----------------------------------------------5 1.1 背景----------------------------------------------- 51.2 单片机概述 ----------------------------------------5 1.3 目的与意------------------------------------------5 1.4 方案的设计与论证-----------------------------------6第二章 总体设计---------------------------------------- 6 2.1 总体设计-------------------------------------------6 2.2 单片机的选择-------------------------------------- 7第三章 硬件设计 ----------------------------------------93.1 最小系统----------------...