摘要:随着科学和技术的发展,起源于上个世纪的单片机也越来越多的被应用到了我们的生活中,小到家用电器,大到物联网,都能看到它活跃的身影,在私家车普及率如此之高的今天,使用单片机控制的车灯更是无处不在31951
本课题的题目是是基于单片机的模拟汽车信号灯Proteus仿真设计,主要讲述了一个如何使用Proteus仿真来设计一个模拟的汽车信号灯的工作状态,通过计算机的模拟程序,来重新还原汽车信号灯的控制逻辑,经过一系列的调试,在单个开关控制车灯开启、信号灯关闭、复数个开关控制车灯、以及汽车信号灯的优先级、判断等方面取得了成功,成功解决了因为使用复数个开关而导致的信号灯互相冲突的问题,解决了原本就冲突的信号灯的互相控制的问题。得出了汽车信号灯的一系列控制规则。
毕业论文关键词: 单片机;Proteus仿真;车灯
Design of analog signal lamp in automobile Proteus simulation based on MCU
Abstract: with the development of science and technology, origin in the last century the MCU also more and more is applied to our lives, to household appliances, networking, can see its active form, in private car penetration rate so high today, using single chip computer to control the lamp is ubiquitous
The title of this paper is based on SCM simulation of automobile signal lamp proteus simulation design, mainly tells the story of a how to use proteus simulation to design a simulation of automobile signal lamp working condition, through the computer simulation program to restore automobile signal lamp control logic, after a series of debugging, in a single switch for controlling the opening of the lamp, signal lamp closed, a plurality of lights switch control, and auto lights priority, judgement, etc has been successful, successfully resolved the occur as a result of using a plurality of switch signal lamp conflict with each other, to solve the original conflict of signal controlled each other problems. Draw a series of control rules of automobile lights.
Keywords: SCM, Proteus simulation, lights
目录
摘要 i
Abstract i
目录 ii
1 绪论 1
1.1 模拟汽车信号灯PROTEUS仿真设计的背景和意义 1
1.1.1 汽车的信号灯简介 2
1.1.2 国内汽车信号灯的发展及现状 2
1.1.3 单片机的发展及应用 4
1.1.4 AT89C52单片机简介 5
2 分析 7
2.1 系统原理 7
2.2 单一控制分析 7
2.2.1 转弯(左转+右转) 7
2.2.2 刹车 7
2.2.3 停靠 7
2.2.4 紧急情况 7
2.3 其他 7
2.3.1 开关的优先级 7
2.3.2 取消操作 8
2.3.3 闪烁操作 8
3 设计 9
3.1 库函数介绍 9
3.1.1 REG52.H 9
3.1.2 Stdio.h 9
3.1.3 intrins.h 9
3.2 变量介绍 9
3.2.1 端口定义 9
3.2.2 函数定义 10
3.2.3 变量定义 10
3.3 模块介绍 10
3.3.1 检查模块 10
3.3.2 亮灯模块 12
3.3.3 闪烁模块 14
3.3.4 延时模块 14
3.4 其他软件功能介绍 15
3.4.1 复数开关操作 15
3.4.2 优先级介绍 15
3.5 硬件部分介绍 16 基于单片机的模拟汽车信号灯Proteus仿真设计+源代码:http://www.youerw.com/zidonghua/lunwen_28286.html