1、目 录 中文摘要I 英文摘要II 1.设计介绍及课题研究1 1.1 设计语言 C 语言的介绍1 1.2 设计软件 Proteus 的介绍1 1.3 LED 灯介绍1 1.4 设计要求1 1.5 方案设计2 2.汽车尾灯和刹车灯控制电路硬件设计2 2.1 硬件设计系统框架2 2.1.1 单片机技术简介3 2.1.2 系统主要芯片和元器件的介绍和应用4 2.1.3 系统原理图8 2.1.4 开关电路及最小系统8 2.1.5 LED 显示电路9 2.2 电源电路9 2.2.1 基本原理9 2.2.2 采用 LM317 可调三端稳压电源10 2.2.3 电源电路原理图10 3.程序编写11 3.1 程
2、序编写流程11 3.2 程序编写11 3.3 设计功能调试效果15 4.总结18 参考文献19 I 摘 要 本论文介绍了一种简便运用单片机控制汽车尾灯的设计方法,控制电路设计以 STC89C52 单片机为核心,模拟汽车尾灯进行智能控制,用 6 个 LED 灯模拟汽车尾灯, 5 个独立按键分别对左转,右转,刹车,夜间行驶,出现故障五种情况进行有效控制。 这是一种芯片控制多个不同电路而实现所需功能的有效方式,该设计通过运用我们学 过的单片机,c 语言,模拟电路知识设计汽车尾灯现实控制电路。在设计汽车尾灯控 制器电路中,让我了解了 LED 驱动电路特性,并提出解决方案,综合运用了在课程中 学习的 5
3、1 单片机知识,最终确定设计方案。在实际汽车尾灯电路设计中,有许多方法 设计汽车尾灯控制。但以 STC89C52 单片机为核心的控制电路,以发光二极管 LED 为显 示电路,以按键为操作控制电路简单,制作方便,性能可靠。 关键词:STC89C52,LED 灯,汽车尾灯,c 语言。 II AbstractAbstract This paper introduces a simple use of single-chip microcomputer to control thecar taillight design method, the design of control circuit wi
4、th STC89C52 single chip as the core, simulation of automobile tail light intelligent control, simulation of automobile tail light with 6 LED lights, 5 independent buttons to turn left, turn right, brake, driving at night, failure in five cases were effectively controlled. This is an effective way to control many different circuit to realize the required function, this design using our learned C language, microcontroller, analog circuitdesign knowledge taillight realit