汽车尾灯控制电路设计论文资料

合集下载

汽车尾灯课程设计论文

汽车尾灯课程设计论文
1、按一下SWO按键,LED[0]开始以1 Hz的频率闪烁。再按一下
该按键,LED[O]灭,模拟汽车左转行驶状态。
2、按一下SW1按键,LED[4]开始以1Hz的频率闪烁,再按一下该
按键,LED[4]灭,模拟汽车右转行驶状态。
3、按一下SW2按键,LED[1],LED[5]亮,模拟汽车刹车时的状态。
当汽车正常行驶时所有的指示灯都不亮,当汽车向左转时,汽车左边的指示灯LLED1亮,当汽车向右转时,汽车右边的指示灯RLED1亮,当汽车刹车时,左右的LLED2、RLED2亮,当汽车夜间行驶时,汽车左右的LLED3、LLED4、RLED3、RLED4一直亮。
其他要求:
(1)晶振为12 MHz
(2)采用CPLD器件,为ALTERA的EPM7064SL-44
assign RLED3=((NIGHT==n)?1'b0:1'b1);
assign RLED4=((NIGHT==n)?1'b0:1'b1);
endmodule
四、仿真及调试
五、优化与改进
一开始按键保持不能实现,最终采用乒乓式按键状态保持法,也就是按键每按一次,有脉冲的下降沿触发寄存器的状态发生一次翻转。
4、按一下 SW3按键,LED[2], LED[3], LED[6], LED[7]亮,模拟汽车夜间行驶状态。再按一下该按键,LED[2],LED[3],LED[6], LED[7]灭。
2、所需用的设备、仪器
PC机、实验箱、下载电缆、电路板、EP1C6Q240C8主控芯片、EPM7064SL-44主控芯片,QUARTUS II软件。
六、任务完成情况说明
功能
完成情况
汽车左转弯
指示灯LED0亮

汽车尾灯控制电路设计

汽车尾灯控制电路设计

汽车尾灯控制电路设计
汽车尾灯控制电路是汽车电子系统中非常重要的一部分,它控制装配在汽车后尾部的
尾灯的工作状态,以确保安全行驶。

下面,我们对其电路逻辑做了详细介绍。

汽车尾灯控制电路主要采用了定时器与光敏电阻来检测汽车的尾灯是否正常工作,从
而确保汽车的安全性。

首先,电路的输入部分包括一个定时器,它用来控制该电路的功能。

此外,一个光敏电阻被用来检测夜间汽车是否开启尾灯,以便检测汽车的安全行驶。

此外,还配备有一个按钮开关,用来控制尾灯是否打开。

电路的输出部分主要包括定时器,它负责检测汽车夜间走行时,尾灯是否开启。

当汽
车夜间行驶时,该定时器将开始计时,一旦计时到达指定时间,它将使汽车尾灯开启。

另外,光敏电阻将检测出汽车是否已经熄灭尾灯,一旦检测到尾灯已熄灭,定时器将停止计时,尾灯也将被关闭。

此外,按钮开关也可以控制汽车的尾灯的工作状态。

当汽车在夜间行驶时,拥有尾灯
的按钮可用于手动控制尾灯的工作状态。

总而言之,汽车尾灯控制电路是以定时器,光敏电阻及按钮开关为核心的控制系统。

它可以有效地帮助汽车保持夜间行驶的安全,以期在黑夜行驶的路上,可以有效的显示汽
车和其他车辆的位置,有效保护行人和其他车辆的安全。

数电课程设计方案——汽车尾灯控制电路论文

数电课程设计方案——汽车尾灯控制电路论文

个人收集整理仅供参考学习(一)设计要求假设汽车尾部左右两侧各有3个指示灯 ( 用发光二极管模拟) 1. 汽车正常运行时指示灯全灭;2. 右转弯时 ,右侧 3个指示灯按右循环顺序点亮; 3. 左转弯时左侧3个指示灯按左循环顺序点亮; 4. 临时刹车时所有指示灯同时闪烁 .(二)汽车尾灯控制电路设计原理(1)列出尾灯与汽车运行状态表 ( 见表 1-1)汽车尾灯和汽车运行状态关系表(1-1 )开关控制运行状态左尾灯右尾灯S1 S0D4 D5 D6D1 D2 D30 0正常运行灯灭灯灭0 1右转弯灯灭按 D1 D2 D3 顺序循环点亮1 0左转弯按 D4 D5 D6顺序循环点亮灯灭1 1临时刹车所有地尾灯随时钟CP同时闪烁(2)设计总体框图由于汽车左右转弯时, 三个指示灯循环点亮, 所以用三进制计数器控制译码器电路顺序输出低电平, 从而控制尾灯按要求点亮. 由此得出在每种运行状态下, 各指示灯与各给定条件(S1、S0、 CP、Q1、Q0)地关系 , 即逻辑功能表如下表(1-2 )所示 ( 表中 0表示灯灭状态 ,1 表示灯亮状态). b5E2RGbCAP汽车尾灯控制逻辑功能表(1-2 )个人收集整理仅供参考学习由尾灯控制逻辑功能表得出总体框图, 如下图( 2-1 )所示 .汽车尾灯控制电路原理框图(2-1 )(3)设计单元电路a. 三进制计数器电路可由16进制计数器 74LS161构成 , 如下图所示 .GNDU193A QA1429VCC4B QB1330GND5C QC12U20D611D QDVCC7ENPRCO15105V ENT9~LOADGND1~CLR74LS00D 312CLKGNDV174LS161D200Hz345Vb. 汽车尾灯电路如图( 3-1 )所示 , 其显示驱动电路由 6个发光二极管和 6个反相器构成;译码电路由 3-8线译码器 74LS138和 6个与非门构成 .74LS138 地三个输入端A2、A1、A0分别接 S1、Q1、Q0,而 Q1Q0是三进制计数器地输出端 . 当S1 = 0、 S0 = 1, 使能信号 A=G=1,计数器地状态为 00,01,10 时 ,74LS138 对应地输出端 0Y,1Y,2Y 依次为 0有效(4Y,5Y,6Y信号为“ 1”无效 ), 即反相器 G1~G3地输出端也依次为0, 故指示灯 D1→D2→D3按顺序点亮示意汽车右转弯 . 若上述条件不变 , 而 S1=1、 S0=0, 则 74LS138对应地输出端4Y、 5Y、 6Y依次为 0有效 , 即反相器 G4~G6地输出端依次为 0, 故指示灯 D4→D5→D6按顺序点亮 , 示意汽车左转弯. 当 G=0,A=1时 ,74LS138 地输出端全为 1,G6~G1地输出端也全为1, 指示灯全灭灯;当G=0,A=CP时 , 指示灯随 CP地频率闪烁 . p1EanqFDPw个人收集整理仅供参考学习汽车尾灯电路(3-1 )c. 开关控制电路. 设 74LS138和显示驱动电路地使能端信号分别为G和 A, 根据总体逻辑功能表分析及组合得 G、 A与给定条件 (S1 、 S0、CP)地真值表 , 如表( 3-2 )所示 .DXDiTa9E3d S1,S0,CP 与 G,A 逻辑功能表( 3-2 )由表( 3-2 )经过整理得逻辑表达式为由上式可得开关控制电路个人收集整理仅供参考学习(4)汽车尾灯总体电路VCCR1R2R3R4R5R6VCC5V200|?200|?200|?200|?200|?200|?789101112LED1LED2LED3LED4LED5LED6131415161718U1D U2D U3D U4D U5D U6D74LS04D74LS04D 74LS04D 74LS04D 74LS04D74LS04DXSC1 653421Ext Trig+U7D U8D U9D U11D U10D U12D 74LS00D74LS00D 74LS00D 74LS00D 74LS00D74LS00D_ AB+_+_21222325192024U14D5 4 3 2 10774LS00D1 1 1 1 11 90 123 4 5 67YYYYYYYY26U13A B74LS138D2 21 G GU15D 28GND A B C G ~ ~GND74LS04DU191 2 364 5GNDGND 293627VCC314U20D GND 4A QA1330GND B QB12U16D U18D U17C5C QC61174LS86D74LS00D 74LS10DD QD7ENP RCO1574LS00D5V VCC ENT103132GND1~CLR VCC9~LOADGNDR7J2R8VCC 2CLK VCCV1200m|?200|?VCC 200 Hz74LS161D5V J15V5 V Key = A Key = S34GND GNDGND GND( 二) 汽车尾灯控制电路仿真运行( 图中 S1=A,S0=S)( 1)当汽车正常运行时,S1=S0=0, 使 G=0,A=1,74LS138 地输出端全为1,G6~G1 地输出端也全为1, 指示灯全灭灯 . RTCrpUDGiTVCCR1R2R3R4R5R6VCC5V200|?200|?200|?200|?200|?200|?789101112LED1LED2LED3LED4LED5LED6131415161718U1D U2D U3D U4D U5D U6D74LS04D74LS04D74LS04D74LS04D74LS04D74LS04DXSC1 653421U7D U8D U9D U11D U10D U12D 74LS00D74LS00D74LS00D74LS00D74LS00D74LS00DExt Trig+_ AB+_+_21222325192024U14D 543 2 1074LS00D 111 1 11 9701234567YYYYYYYY26U13A B74LS138D221 G G U15D28A B C G ~ ~GND GND74LS04DU1912364 5GNDGND 3627VCC3143029U20D GNDA QA4B QB13GND U16D U18D U17C 5C QC126D QD1174LS86D74LS00D 74LS10D7ENP RCO 1574LS00DVCC5V10ENT31932GND~LOADVCC35 1~CLRR7J2R8GND VCC 2CLK VCCV1200m|?200|?VCC 200 Hz74LS161D5V J15V5 V Key = A Key = S34GND GNDGND GND( 2)当汽车左拐时 ,S1=1,S0=0 时 , 使得 A=G=1, 74LS138 对应地输出端 4Y 、 5Y 、 6Y 依次为 0 有效 , 即反相器G4~G6地输出端依次为 0, 故指示灯 D4→D5→D6 按顺序点亮 , 示意汽车左转弯 . 5PCzVD7HxAVCCR1 R2 R3 R4 R5R6 VCC5V200|? 200|? 200|? 200| ? 200|? 200|? 7 8 9 10 11 12LED1 LED2 LED3 LED4 LED5LED6 13 14 15 16 1718U1D U2D U3D U4D U5D U6D74LS04D 74LS04D 74LS04D 74LS04D 74LS04D 74LS04DXSC16 5 3 4 2 1Ext Trig+U7DU8DU9DU11DU10DU12D74LS00D74LS00D 74LS00D 74LS00D 74LS00D74LS00D_A B+_+_21222325192024U14D 5 4 3 2 1 09 71 1 1 1 1 174LS00D0 1 2 3 4 5 6 7YYYYYYYY26U13A B74LS138D2 21 G GU15D 28 GNDA B C G ~ ~GND1 2 36 4 574LS04DU19GNDGND3627VCC3 A QA 1429U20DGND4BQB1330GND 12U16D U18D U17C5 CQC6 D QD1174LS86D 74LS00D 74LS10D74LS00D7 ENP RCO 155V VCC 1031ENT32GND9~LOADVCC1 35~CLRJ2GND2CLKVCCR7R8 VCCV1200m| ?200|? VCC200 Hz74LS161D5V J1 5V 5 VKey = AKey = S34 GND GNDGNDGND(3)当汽车右拐时 ,S1=0,S0=1 时 , 使能信号 A=G=1,计数器地状态为 00,01,10 时 ,74LS138 对应地输出端0Y,1Y,2Y依次为0 有效 (4Y,5Y,6Y信号为“ 1”无效),即反相器G1~G3 地输出端也依次为0, 故指示灯D1→D2→D3 按顺序点亮示意汽车右转弯. jLBHrnAILgVCCR1R2R3R4R5R6VCC5V200|?200| ?200| ?200|?200| ?200|?789101112LED1LED2LED3LED4LED5LED6131415161718U1D U2D U3D U4D U5D U6D74LS04D74LS04D74LS04D74LS04D74LS04D74LS04DXSC1653421Ext Trig+U7D U8D U9D U11D U10D U12D 74LS00D74LS00D74LS00D74LS00D74LS00D74LS00D_ AB+_+_21222325192024U14D 5432109774LS00D 1111110 123 4 5 6 7YYYYYYYY26U13A B74LS138D22A B C1 G GU15DG ~ ~28GND GND74LS04DU19123645GNDGND 362731429U20DA QAVCC30GND 4B QB13GND U16D U18D U17C5C QC126D QD 1174LS86D74LS00D 74LS10D71574LS00DENP RCOVCC5V10ENT31932 GND~LOAD VCC135~CLRVCC R7J2R8GND2CLK VCC V1200m| ?200| ?VCC 200 Hz74LS161D5V J15V5 V Key = A Key = S34GND GNDGND GND个人收集整理仅供参考学习( 4)当汽车刹车时 ,S1=S0=1 时 ,G=0,A=CP, 指示灯随 CP 地频率闪烁 .VCCR1 R2 R3 R4 R5 R6200|? 200| ? 200| ? 200|? 200| ? 200|?7 8 9 10 11 12 LED1 LED2 LED3 LED4 LED5LED6 131415161718U1D U2D U3D U4D U5DU6D74LS04D74LS04D 74LS04D 74LS04D 74LS04D74LS04D6 5 34 2 1U7DU8DU9DU11DU10DU12D 74LS00D74LS00D 74LS00D 74LS00D 74LS00D74LS00D2122232519 2024U14D5 4 3 2 1 09 7 74LS00D1 1 1 1 1 10 1 2 3 4 5 6 7YYYYYYYY26U13A B74LS138D2 2A B C1 G GU15DG ~ ~28 GND1 2 36 4 5 GND74LS04DU19GND3627314 29U20DVCC4 A QA 13 30GNDB QB 12 U16D U18D U17C5 CQC6 DQD1174LS86D 74LS00D 74LS10D7 ENP RCO 1574LS00DVCC5V10 ENT3193235GND~LOADVCC1 ~CLRVCCR7J2R8GND2CLKVCCV1200m| ?200| ? VCC200 Hz74LS161D5V J15V5 VKey = AKey = S34GND GNDGNDGNDVCC5VXSC1Ext Trig+_AB+_+_GNDGND(三)元器件列表名称参数及数量发光二极管六支译码器74LS138 一片计数器74LS161 一片TTL 反向器74LS04 七个与非门74LS00 十个异或门74LS86 一个电阻200 欧八个直流电源VCC-5V 四个信号发生器方波( 5V,200HZ)开关两个(四)设计总结:这次设计是通过查阅各种资料、与同学讨论以及独立思考设计出来地.在设计过程中,我用到了本学期所学过地同步计数器74LS161 和译码器74LS138. 因此 ,我对它们地功能和运用有了更深一步地了解.同时通过Multisim软件对电路进行模拟仿真,从而使设计结果得到了验证.通过这次课程设计环节,使我了解到模拟电路和数字电路之间地联系,使我对单元功能电路地理解和运用能力有了一定地提高.优点:基本实现汽车在运行时尾灯点亮方式地基本情况.xHAQX74J0X设计中地不足:由于行车时都是开关控制,所以每一个开关都应该有一个消除机械振动地装置,可以用基本SR 触发器来实现.所以在时间允许地情况下,可以对这一不足进行改良,从而使整个系统更加可靠.LDAYtRyKfE(五)参考文献1.康华光、陈大钦等编《数字电子技术第四版》高等教育出版社 ,1999.62.阎石.数字电子技术基础(第五版[M]. 北京:清华大学出版社,2006.53.谢自美.电子线路设计、实验、测试[M] .北京:高等教育出版社, 2001版权申明本文部分内容,包括文字、图片、以及设计等在网上搜集整理. 版权为个人所有This article includes someparts, including text, pictures, and design. Copyright is personal ownership.Zzz6ZB2Ltk用户可将本文地内容或服务用于个人学习、研究或欣赏,以及其他非商业性或非盈利性用途,但同时应遵守著作权法及其他相关法律地规定,不得侵犯本网站及相关权利人地合法权利 . 除此以外,将本文任何内容或服务用于其他用途时,须征得本人及相关权利人地书面许可,并支付报酬 . dvzfvkwMI1Users may use the contents or services of this article for personalstudy, research or appreciation, and other non-commercial or non-profitpurposes, but at the same time, they shall abide by the provisions ofcopyright law and other relevant laws, and shall not infringe upon thelegitimate rights of this website and its relevant obligees. In addition, whenany content or service of this article is used for other purposes, writtenpermission and remuneration shall be obtained from the personconcerned and the relevant obligee.rqyn14ZNXI转载或引用本文内容必须是以新闻性或资料性公共免费信息为使用目地地合理、善意引用,不得对本文内容原意进行曲解、修改,并自负版权等法律责任. EmxvxOtOcoReproduction or quotation of the content of this article must bereasonable and good-faith citation for the use of news or informative public free information. It shall not misinterpret or modify the original intention of the content of this article, and shall bear legal liability such ascopyright.SixE2yXPq5。

汽车尾灯控制总设计电路

汽车尾灯控制总设计电路

电子线路设计实训(论文)说明书题目:汽车尾灯控制总设计电路摘要在汽车行驶过程中,汽车的尾灯会根据汽车行驶的状态相应的发生状态的变化。

假设汽车尾灯左右两侧各有三个指示灯,设计一个用于控制汽车尾灯的电路。

要求当汽车正常运行时指示灯全灭;汽车右转弯时,右侧三个指示灯按右循环顺序点亮;汽车左转弯时,左侧三个指示灯按左循环顺序点亮;汽车紧急刹车时,所有指示灯同时闪烁。

关键词:计数器;译码器;驱动电路;循环点亮AbstractIn the vehicle was in the car taillights car driving based on the state of the corresponding state changes occur. The assumption that the three lights on each side taillight design a circuit for controlling automobile taillights. Required during normal operation when the vehicle light Quagmire; car turn right, press the right circle on the right order of the three indicator lights; car turning left, the left side of the order of the three indicator lights, press the left circle; car brakes , all the lights blink.Key words: counter; decoder; drive circuit; cycle light.目录引言 (1)1电子实训目的及设计内容 (1)1.1 实训目的 (1)1.2 设计内容 (1)2 电路的设计 (2)2.1 汽车尾灯控制的设计 (2)2.1.1汽车运行与尾灯状态关系 (2)2.1.2设计单元电路 (4)2.1.3电路的工作原理 (4)2.1.4电路原理图的PCB (5)2.2 汽车尾灯控制电路的仿真 (5)3 汽车尾灯控制电路中元器件的介绍及检测方法 (6)3.1 目的 (6)3.2 仪器及元器件 (6)3.3 元器件介绍及检测方法 (6)3.3.1电阻 (6)3.3.2电容 (7)3.3.3二极管 (7)3.4 电路中所用芯片的功能 (8)3.4.1芯片555 (8)3.4.2芯片74LS138 (9)3.4.3芯片74LS290 (11)3.4.4芯片74LS00 (12)4 焊接目的及原理 (13)4.1 焊接目的 (13)4.2 焊接器材 (13)4.3 焊接原理 (13)4.3.1焊接 (13)4.3.2焊接方法 (14)4.3.3焊接注意事项 (14)5 结论 (14)谢辞 ..........................................................................错误!未定义书签。

毕业设计(论文):汽车尾灯电路的FPGA实现模板

毕业设计(论文):汽车尾灯电路的FPGA实现模板

第1章绪论1.1课题背景随着科技时代的进一步发展,人们的生活也在飞速改变,各种家用电器和设备正以极快的速度进入寻常百姓家。

汽车作为一种很重要的生活工具也没有例外地深入到人们生活的方方面面。

人们正以极大的热情努力的工作并享受由此而带来的种种便利,汽车作为高消费的生活和生产资料,在满足了人们的出行方便的同时,人们更加注重汽车本身的舒适性、可控性、便捷性和安全性。

而作为汽车行车很重要的一部分——车灯控制方式很是重要。

而作为汽车控制的各种操作,几乎都反映在灯的明亮和熄灭上,也是可以起到警告的作用。

而作为尾灯,它有着很大的作用,无论是行车之中还是车辆在驻留的时候,都是必须有各种不同的反映的,于是,汽车尾灯的设计是很重要的。

而基于传统的机械和纯电路的控制方式,由于它完全取决于尾灯系统所采用的硬件来保证它的正常工作,而一旦电路老化或者因为机械振动而引起的接触问题以及机械元件变形而不能及时触发电路电源开关,这类问题是经常发生,而除了选用更好的硬件系统元件几乎没有别的可靠的方法来进行避免这类故障的发生,于是,选用智能型的元件来进行系统的设计,增加系统的稳定性和可控制性是非常必须的。

而随着EDA技术的日益成熟,有电路自动控制车尾灯的方式是可行的。

基于EDA系统的电路控制方式是可靠的和可以预测的控制方式,其安全性很高,属于智能控制的范畴。

于是,在汽车上实行这种车灯控制方式是一种变化和进步,增加了汽车行车安全性,降低了汽车的故障率。

1.2研究的目的及意义目的是一方面使我们能够进一步理解课程内容,基本掌握EDA技术和系统知识,增加集成电路应用知识,培养我们的实际动手能力以及分析、解决问题的能力。

另一方面也可以是我们更好地巩固和加深对基础知识的理解,学会设计中小型数字系统的方法,独立完成调试过程,增强我们理论联系实际的能力,提高电路分析和设计能力。

通过实践引导我们在理论指导下有所创新,为专业课的学习和日后工程实践奠定基础。

(汽车行业)汽车尾灯控制电路设计毕业设计

(汽车行业)汽车尾灯控制电路设计毕业设计
图 2-1 汽车尾灯控制电路整体框图 通过三线-八线译码器(74HC138)对开关控制电路(K1、K2、K3)给出的信号(即汽 车运行的不同状态)译码,转向的控制用译码后的相应的高低电平控制对应十六进制计数 器(74LS161)的使能端,控制其工作和否,然后由 555 定时器构成的多谐振荡器作为 脉冲产生电路产生壹定频率的脉冲信号作为计数器(74LS161)的触发信号,使计数器 循环计数,从而由计数器的输出端根据需要通过和、或门后直接驱动相应转向的各尾灯循
环点亮;刹车的控制由编码后的相应电平和脉冲信号通过和门后直接驱动所有车灯闪亮;
汽车正常运行时各灯不接受控制信号即全灭。即完全实现了本次设计的所有要求。
第3章单元电路设计
3.1 开关控制译码电路设计
开关控制电路作用是给译码电路提供输入信号,该电路的设计采用三个开关 K1、K2、K3
的断开和闭合进行译码输入信号的控制。通过三个开关的闭合和否,形成不同的电平组合
代码 A3、A2、A1 的取值无关。当 S1=1 且 S2+S3=0 时,译码器才进行译码,译码器
输出低电平有效。译码器输出由输入代码 A3、A2、A1 决定,对于任壹组输入二进制代
码,输出中只有壹个和该代码相对应的输出为 0,其余输出均为 1。
开关控制译码电路如图 3-2 所示。
图 3-2 开关控制译码电路
平用来对计数器和驱动电路控制。
3.2 脉冲产生电路设计
脉冲电路是由 555 定时器构成的典型多谐振荡器,此处脉冲产生器主要用来提供计数器
的计数脉冲和为刹车时闪烁提供脉冲。
555 定时器的 1~8 端口分别为 1-接地端,2-触发端,3-脉冲输出端,4-异步置 0 端,
5-输入控制端,6-阈值电压输入端,7-放电输出端,8-电源输入端。用 555 定时器构

汽车尾灯控制电路设计 (3)精选全文

汽车尾灯控制电路设计 (3)精选全文

可编辑修改精选全文完整版电子设计自动化大作业题目汽车尾灯控制电路设计学院泉城学院班级电气工程及其自动化 3班姓名李栋学号 ***********二O一0年六月二十日题目:汽车尾灯控制电路设计一、设计要求:汽车尾部左右两侧各有3个指示灯(用发光管模拟),要求是:1. 汽车正常行驶时,尾灯全部熄灭。

2. 当汽车右转弯时,右侧3个指示灯按右循顺序点亮。

3. 当汽车左转弯时,左侧3个指示灯按左循顺序点亮。

4. 临时刹车时,所有指示灯随着cP时钟脉冲同步闪烁。

二、设计思路1 汽车尾灯显示状态与汽车运行状态的关系为了区分汽车尾灯的4种不同的显示模式,需设置2个状态控制变量。

假定用开关K1和K0进行显示模式控制,可列出汽车尾灯显示状态与汽车运行状态的关系,如表1.1所示。

表1.1汽车尾灯和汽车运行状态2汽车尾灯控制器功能描述在汽车左右转弯行驶时由于3个指示灯被循环顺序点亮,所以可用一个三进制计数器的状态控制译码器电路顺序输出高电平,按要求顺序点亮3个指示灯。

设三进制计数器的状态用Q1和Q0表示,可得出描述指示灯D1、D2、D3、D4、D5、D6与开关控制变量K1、K0,计数器的状态Q1、Q0以及时钟脉冲CP之间关系的功能表如表2.2所示(表中指示灯的状态“1”表示点亮,“0”表示熄灭)。

表2.2汽车尾灯控制器功能表控制变量计数器状态汽车尾灯K1 K0 Q1 Q0 D1 D2 D3 D4 D5 D60 0 d d 0 0 0 0 0 00 1 0110 0 10 1 01 0 00 0 00 0 00 0 01 0 0110 0 00 0 00 0 01 0 00 1 00 0 11 1 d d cp cp cp cp cp cp根据以上设计分析与功能描述,可以得出汽车尾灯控制器的结构框图,如下图所示。

根据以上设计分析与功能描述,可得出汽车尾灯控制器的结构框图。

整个电路可由秒脉冲电路、开关控制电路、三进制电路、译码与显示驱动电路、尾灯状态显示5部分组成。

汽车尾灯的设计与制作论文

汽车尾灯的设计与制作论文

摘要汽车在人们生活中已经越来越普遍,而汽车尾灯作为汽车的一个重要组成部分,对行车安全起着至关重要的作用。

作为课程设计的题目,既能贴近现实生活,也能提高我们将所学知识应用于实际问题的能力,设计与制作汽车尾灯,更让我们了解到所学理论知识的重要性,在以后的学习中努力。

我们设计的汽车尾灯内容为:正常行驶时指示灯全灭;右转弯时,右侧3个指示灯循环点亮;左转弯时,左侧3个指示灯循环点亮;临时刹车时,所有指示灯同时闪烁。

这一设计很有意义。

关键词:提高能力汽车尾灯循环汽车尾灯的设计与制作1 总体设计思想根据要设计的内容,电路大致分为五个部分:脉冲信号产生电路、三进制计数电路、译码电路、开关控制电路、驱动显示电路。

这五个部分间的关系为:2 逻辑功能图2.1尾灯和汽车运行状态关系表由于汽车左转弯时,三个灯循环点亮,所以用三进制计数器控制译码电路顺序输出低电平,从而控制尾灯按要求点亮。

由此得出在每种运行状态下,各指示灯与各给定条件(S1、S2、CP、Q1、Q0)的关系,即逻辑功能表如表所示(表中0表示灯灭状态,1表示灯亮状态)。

2.2设计总体框图3 单元电路设计3.1时钟脉冲发生器方案一:石英晶体振荡器;此电路的振荡频率仅取决于此应晶体的串联谐振频率fs,而与电路中的R、C 的值无关。

所以此电路能够得到频率稳定性极高的脉冲波形,它的缺点就是频率不能调节,而且频带窄,不能用于宽带滤波。

但由于没有与课程联系很紧密,所以不采用此电路。

方案二:由555定时器构成的多谐振荡器如下电路图,可以产生矩形脉冲发生器。

由于555定时器内部的比较器灵敏度高,输出驱动电流大,功能灵活,而且采用差分电路形式,它的振荡频率受电压和温度的影响很小。

与课程联系密切,所以采用此方案。

再由于此电路对时钟脉冲没有严格的要求,故我把电阻、电容的值设定为比较合适并常见的值。

电容充电过程的初始状态为1/3Vcc,终止状态为2/3Vcc,稳定状态为Vcc,充电的时间常数为ζ1=(R1+R2)C2。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

1 引言在日新月异的21世纪里,电子产品得到了迅速发展。

许多电器设备都趋于人性化、智能化,这些电器设备大部分都含有CPU控制器或者是单片机。

单片机以其高可靠性、高性价比、低电压、低功耗等一系列优点,近几年得到迅猛发展和大范围推广,广泛应用于工业控制系统、通讯设备、日常消费类产品和玩具等。

并且已经深入到工业生产的各个环节以及人民生活的各个方面,如车间流水线控制、自动化系统等、智能型家用电器(冰箱、空调、彩电)等。

用单片机来控制的小型电器产品具有便携实用,操作简单的特点。

本文设计的汽车尾灯控制电路属于小型智能电子产品。

利用单片机进行控制,实时时钟芯片进行记时,外加掉电存储电路和显示电路。

此设计具有相当重要的现实意义和实用价值。

2 系统概述本设计以AT89S52单片机为核心,构成单片机控制电路,完成对它们的自动调整和掉电保护。

人机接口由四个按键来实现,用这四个按键对汽车左转,右转,停车和检测进行控制。

软件控制程序实现所有的功能。

整机电路使用+5V稳压电源,可稳定工作。

系统框图如图2-1所示,其软硬件设计简单,可广泛应用于长时间工作的系统中。

图2-1 系统框图3 方案选择由于汽车尾灯控制电路的种类比较多,因此方案选择在设计中是至关重要的。

正确地选择方案可以减小开发难度,缩短开发周期,降低成本,更快地将产品推向市场。

3.1 方案1——基于AT89S52单片机的汽车尾灯控制电路设计直接用AT89S52单片机来实现汽车尾灯控制电路设计。

AT89S52是一种带8K字节闪烁可编程可擦除只读存储器的低电压,高性能CMOS 8位微处理器,俗称单片机。

单片机的可擦除只读存储器可以反复擦写1000余次。

由于将多功能8位CPU和闪烁存储器组合在单个芯片中,ATMEL的AT89S52是一种高效微控制器,为很多嵌入式控制系统提供了一种灵活性高且价廉的方案。

用单片机来实现汽车尾灯控制电路设计,无须外接其他芯片,充分利用了单片机的资源。

3.2 方案2——基于电子元件的汽车尾灯控制电路设计用电子元件接的汽车尾灯控制电路,电路复杂,接点较多,电路稳定性差。

汽车左右和刹车仿真电路汽车尾灯控制电路设计总体框图4 系统硬件电路的设计按照系统设计功能的要求,初步确定设计系统由主控模块、键盘接口模块、显示模块共3个模块组成,电路系统构成框图如图4-1所示。

主控芯片使用52系列AT89S52单片机,图4-1 汽车尾灯控制电路系统构成框图4.1 系统核心部分——闪电存储型器件AT89S524.1.1 AT89S52具有下列主要性能[5]:·8KB可改编程序Flash存储器(可经受1000次的写入/擦除周期)·全静态工作:0Hz~24MHz·三级程序存储器保密·128×8字节内部RAM·32条可编程I/O线·2个16位定时器/计数器·6个中断源·可编程串行通道·片内时钟振荡器4.1.2 AT89S52的引脚及功能AT89S52单片机的管脚说明如图4-2所示。

图4-2 AT89S52的管脚(1) 主要电源引脚①VCC 电源端②GND 接地端(2) 外接晶体引脚XTAL1和XTAL2①XTAL1 接外部晶体的一个引脚。

在单片机内部,它是构成片内振荡器的反相放大器的输入端。

当采用外部振荡器时,该引脚接收振荡器的信号,既把此信号直接接到内部时钟发生器的输入端。

②XTAL2 接外部晶体的另一个引脚。

在单片机内部,它是上述振荡器的反相放大器的输出端。

采用外部振荡器时,此引脚应悬浮不连接。

(3) 控制或与其它电源复用引脚RST、ALE//PROG、/PSEN和/EA/VPP①RST 复位输入端。

当振荡器运行时,在该引脚上出现两个机器周期的高电平将使单片机复位。

②ALE//PROG 当访问外部存储器时,ALE(地址锁存允许)的输出用于锁存地址的低位字节。

即使不访问外部存储器,ALE端仍以不变的频率(此频率为振荡器频率的1/6)周期性地出现正脉冲信号。

因此,它可用作对外输出的时钟,或用于定时目的。

然而要注意的是:每当访问外部数据存储器时,将跳过一个ALE脉冲。

在对Flash 存储器编程期间,该引脚还用于输入编程脉冲(/PROG)[6]。

③/PSEN 程序存储允许(/PSEN)输出是外部程序存储器的读选通信号。

当AT89S52/LV52由外部程序存储器取指令(或常数)时,每个机器周期两次/PSEN有效(既输出2个脉冲)。

但在此期间内,每当访问外部数据存储器时,这两次有效的/PSEN 信号将不出现。

④/EA/VPP 外部访问允许端。

要使CPU只访问外部程序存储器(地址为0000H~FFFFH),则/EA端必须保持低电平(接到GND端)。

当/EA端保持高电平(接VSS端)时,CPU则执行内部程序存储器中的程序。

(4) 输入/输出引脚 P0.0~ P0.7、P1.0~P1.7、P2.0~ P2.7 和P3.0~P3.7①P0端口(P0.0~ P0.7) P0是一个8位漏极开路型双向I/O端口。

作为输出口用时,每位能以吸收电流的方式驱动8个TTL输入,对端口写1时,又可作高阻抗输入端用。

②P1端口(P1.0~ P1.7) P1是一个带有内部上拉电阻的8位双向I/O端口。

P1的输出缓冲器可驱动(吸收或输出电流方式)4个TTL输入。

对端口写1时,通过内部的上拉电阻把端口拉到高电位,这时可用作输入口。

作输入口时,因为有内部的上拉电阻,那些被外部信号拉低的引脚会输出一个电流。

③P2端口(P2.0~P2.7) P2是一个带有内部上拉电阻的8位双向I/O端口。

P2的输出缓冲器可驱动(吸收或输出电流方式)4个TTL输入。

对端口写1时,通过内部的上拉电阻把端口拉到高电位,这时可用作输入口。

P2作输入口使用时,因为有内部的上拉电阻,那些被外部信号拉低的引脚会输出一个电流。

④P3端口(P3.0~P3.7) P3口管脚是8个带内部上拉电阻的双向I/O口,可接收输出4个TTL门电流。

当P3口写入“1”后,它们被内部上拉为高电平,并用作输入。

作为输入,由于外部下拉为低电平,P3口将输出电流,这是由于上拉的缘故。

P3口也可作为AT89S52的一些特殊功能,这些特殊功能见表4-1[7]。

表4-1 P3端口的特殊功能4.5 键盘电路本设计共采用按键4个,分别与单片机的P2.0、P2.1、P2.2、P2.3口相连,分别对应汽车左转,汽车右转,刹车和检测的功能。

7 结论本设计硬件电路较简单,所用器件较少,电路中使用了AT89S52单片主要芯片,实现了预计功能。

在对芯片的管脚功能和用法有充分的了解后,根据设计要求设计硬件电路,然后通过软件编程,用按键进行控制,用发光二极管进行显示。

汽车尾灯控制电路可以正常显示汽车的左转,右转,停车和检测功能,基本完成了预期要实现的目标。

参考文献1.康华光主编,电子技术基础(数字部分),高等教育出版社2.标准集成电路数据手册TTL电路,电子工业出版社致谢不知不觉,六周的毕业设计结束了。

我的毕业论文已整理完毕,电路调试进展良好。

毕业设计的完成意味着我的大学学习生活即将结束,从此我将进入一个新的人生旅途、开始一段崭新的生活——工作。

在此,我衷心地感谢所有在我做毕业设计期间帮助过我的人。

首先我要感谢我的指导老师李杰的大力帮助和支持。

在整个设计过程当中,李老师在大局上指导我毕业设计的每一进程,还在百忙中抽空为我答疑解难,帮我分析讲解毕业设计中所遇到的问题。

不仅如此,李老师还无私的给我提供了丰富的学习资源和良好的学习环境,为我的毕业设计带来了很大方便。

同时在我完成毕业设计的过程中提供了很多指导性的意见,使我受益匪浅。

另外,李老师渊博的学识、严谨的治学态度和为人给了我很大的教育,这些将使我终身受益。

在此,我衷心感谢李老师给予我的帮助和教育。

此外,我还要感谢夏九和李国华同学给予我的无私的帮助,他们在程序编写和调试过程中给予了我莫大的帮助。

在此,我真诚地感谢他们。

最后,我要感谢我的母校——天津工程师范学院,在校期间,这里给我留下了美好的回忆。

特别是在我即将踏上工作岗位的同时,毕业设计整个过程给了我这样一个锻炼的机会,使我加深了对以前知识的理解和巩固,拓宽了知识面,也提高了我对所学知识的综合应用能力。

我要对母校说:母校有我三五载,我爱母校一万年。

祝愿母校的将来更美好!附录1:汽车尾灯控制电路设计电路原理图附录2 主程序org 00hajmp startORG 001BH ;定时器T1中断程序入口LJMP time1 ;跳至INTT1执行org 0030hstart: mov TMOD,#10hmov IE,#88hMOV TH1,#00hMOV TL1,#00hmov r7,#03h;setb TR1turn: jnb p2.0,is_keyjnb p2.1,is_keyjnb p2.3,is_keyorl p1,#0ffh;is_key : jb p2.3,no_check;anl p1,#0c0h;jmp turnno_check:jmp turntime1: push accmov TH1,#010hmov TL1,#00hjb p2.0,leftdjnz r7,returnmov r7,#3xrl p1,#3fhleft: jb p2.1,rightdec r7;mov p1,#0fbh next1: cjne r7,#3,next2;mov p1,#0fdh; next2: cjne r7,#0,right;mov p1,#0fehmov r7,#9;right: jb p2.2,returndec r7;cjne r7,#6,next11;mov p1,#0f7h next11: cjne r7,#3,next21;mov p1,#0efh; next21: cjne r7,#0,return;mov p1,#0dfhmov r7,#9;return: pop accretiend英文资料及中文翻译6 TRANSMISSIONS OF DIGITAL DATA:INTERFACES AND MODEMS(From Introduction to Data Communications and Net Working,Behrouz Forouzan)Once we have encoder our information into a format that can be transmitted, the next step is to investigate the transmission process itself. Information-processing equipment such as PCs generate encoded signals but ordinarily require assistance to transmit those signals over a communication link. For example, a PC generates a digital signal but needs an additional device to modulate a carrier frequency before it is sent over a telephone line. How do we relay encoded data from the generating device to the next device in the process? The answer is a bundle of wires, a sort of mini communication link, called an interface.Because an interface links two devices not necessarily made by the same manufacturer, its characteristics must be defined and standards must be established. Characteristics of an interface include its mechanical specifications (how many wires are used to transport the signal); its electrical specifications (the frequency, amplitude, and phase of the expected signal); and its functional specifications (if multiple wires are used, what does each one do?). These characteristics are all described by several popular standards and are incorporated in the physical layer of the OSI model.6.1 DIGITAL DATA TRANSMISSIONOf primary concern when considering the transmission of data from one device to another is the wiring. And of primary concern when considering the wiring is the data stream. Do we send one bit at a time, or do we group bits into larger groups and, if so, how? The transmission of binary data across a link can be accomplished either in parallel mode or serial mode. In parallel mode, multiple bits are sent with each clock pulse. In serial mode, one bit is sent with each clock pulse. While there is only one way to send parallel data, there are two subclasses of serial transmission: synchronous and asynchronous (see Figure 6-1).Parallel TransmissionBinary data, consisting of 1s and 0s, may be organized into groups of n bits each. Computers produce and consume data in groups of bits much as we conceive of and use spoken language in the form of words rather than letters. By grouping, we can send data nbits at a time instead of one. This is called parallel transmission.The mechanism for parallel transmission is a conceptually simple one: use n wires to send n bits at one time. That way each bit has its own wire, and all n bits of one group can be transmitted with each clock pulse fromone device to another. Figure 6-2 shows how parallel transmission works for n=8.Typically the eight wires are bundled in a cable with a connector at each end.Figure 6-2 Parallel transmissionThe advantage of parallel transmission is speed. All else being equal, parallel transmission can increase the transfer speed by a factor of n over serial transmission. But there is a significant disadvantage:cost. Parallel transmission requires n communication lines (wires in the example) just to transmit the data stream. Because this is expensive, parallel transmission is usually limited to short distances, up to a maximum of say 25 feet.Serial TransmissionIn serial transmission one bit follows another, so we need only one communication channel rather than n to transmit data between two communicating devices .The advantage of serial over parallel transmission is that with only onecommunication channel, serial transmission reduces the cost of transmission over parallel by roughly a factor of n.Since communication within devices is parallel, conversion devices are required at the interface between the sender and the line (parallel-to-parallel).Serial transmission occurs in one of two ways: asynchronous or synchronous. Asynchronous TransmissionAsynchronous transmission is so named because the timing of a signal is unimportant. Instead, information is received and translated by agreed-upon patterns. As long as those patterns are followed, the receiving device can retrieve the information without regard to the rhythm in which it is sent. Patterns are based on grouping the bit stream into bytes. Each group, usually eight bits, is sent along the link as a unit. The sending system handles each group independently, relaying it to the link whenever ready, without regard to a timer.Without a synchronizing pulse, the receiver cannot use timing to predict when the next group will arrive. To alert the receiver to the arrival of a new group, therefore, an extra bit is added to the beginning of each byte. This bit, usually a 0, is called the start bit. To let the receiver know that the byte is finished, one or more additional bits are appended to the end of the byte. These bits, usually 1s, are called stop bits. By this method, each byte is increased in size to at least 10 bits, of which 8 are information and 2 or more are signals to the receiver. In addition, the transmission of each byte may then be followed by a gap of varying duration. This gap can be represented either by an idle channel or by a stream of additional stop bits.In asynchronous transmission we send one start bit (0) at the beginning and one or more stop bits (1s) at the end of each byte. There may be a gap between each byte.The start and stop bits and the gap alert the receiver to the beginning and end of each byte and allow it to synchronize with the data stream. This mechanism is called asynchronous because, at the byte level, sender and receiver do not have to be synchronized. But within each byte, the receiver must still be synchronized with the incoming bit stream. This is, some synchronization is required, but only for the duration of a single byte. The receiving device resynchronizes at the onset of each new byte. When the receiver detects a start bit, it sets a timer and begins counting bits as they come in. after n bits the receiver looks for a stop bit. As soon as it detects the stop bit, it ignores any received pulses until it detects the next start bit.Asynchronous here means “asynchronous at the byte level,” but the bits are still synchronized; their durations are the same.The addition of stop and start bits and the insertion of gaps into the bit stream make asynchronous transmission slower than forms of transmission that can operate without the addition of control information. But it is cheap and effective, two advantages that make it an attractive choice for situations like low-speed communication. For example, the connection of a terminal to a computer is a natural application for asynchronous transmission. A user types only one character at a time, types extremely slowly in data processing terms, and leaves unpredictable gaps of time between each character. Synchronous TransmissionIn synchronous transmission, t he bit stream is combined into longer “frames,” which may contain multiple bytes. Each byte, however, is introduced onto the transmission link without a gap between it and the next one. It is left to the receiver to separate the bit stream into bytes for decoding purposes. In other words, data are transmitted as an unbroken string of 1s and 0s, and the receiver separates that string into the bytes, or characters, it needs to reconstruct the information.In synchronous transmission we send bits one after another without start/stop bits or gaps. It is the responsibility of the receiver to group the bits.Without gaps and start/stop bits, there is no built-in mechanism to help the receiving device adjust its bit synchronization in midstream. Timing becomes very important, therefore, because the accuracy of the received information is completely dependent on the ability of the receiving device to keep an accurate count of the bits as they come in.The advantage of synchronous transmission is speed. With no extra bits or gaps to introduce at the sending end and remove at the receiving end and, by extension, with fewer bits to move across the link, synchronous transmission is faster than asynchronous transmission is faster than asynchronous transmission. For this reason, it is more useful for high-speed applications like the transmission of data from one computer to another. Byte synchronization is accomplished in the data link layer.6.2 DTE-DCE INTERFACAt this point we must clarify two terms important to computer networking: data terminal equipment (DTE). There are usually four basic functional units involved in the communication of data: a DTE and DCE on one end and a DCE and DTE on the other end. The DTE generates the data and passes them, along with any necessary control characters, to a DCE. The DCE does the job of converting the signal to a format appropriate to the transmission medium and introducing it onto the network link. When the signal arrives at the receiving end, this process is reversed.Data Terminal Equipment (DTE)Data terminal equipment (DTE) includes any unit that functions either as a source of or as a destination for binary digital data. At the physical layer, if can be a terminal, microcomputer, computer, printer, fax machine, or any other device that generates or consumes digital data. DTEs do not often communicate directly with one another, they generate and consume information but need an intermediary to be able to communicate. Think of a DTE as operating the way your brain does when you tal k. Let’s say you have an idea that you want to communicate to a friend. Your brain creates the idea but cannot transmit that idea to your friend’s brain by itself. Unfortunately or fortunately, we are not a species of mind readers. Instead, your brain passes the idea to your vocal chords and mouth, which convert it to sound waves that can travel through the air or over a telephone line to your friend’s ear and from there to his or her brain, where it is converted back into information. In this model, your b rain and your friend’s brain are DTEs. Your vocal chords and mouth are your DCE. His or her ear is also a DCE. The air or telephone wire is your transmission medium.A DTE is any device that is a source of or destination for binary digital data.Data Circuit-Terminating Equipment (DCE)Data circuit-terminating equipment (DCE) includes any functional unit that transmits or receives data in the form of an analog or digital signal through a network. At the physical layer, a DCE takes data generated by a DTE, converts them to an appropriate signal, and then introduces the signal onto the telecommunication link. Commonly used DCEs at this layer include modems . In any network, a DTE generates digital data and passes it to a DCE; the DCE converts the data to a form acceptable to the transmission medium and sends the converted signal to another DCE on the network. The second DCE takes the signal off the line, converts it to a form usable by its DTE, and delivers it. To make this communication possible, both the sending and receiving DCEs must use the same encoding method, much the way that if you want to communicate to someone who understands only Japanese, you must speak Japanese. The two DTEs do not need to be coordinated with each other, but each of them must be coordinated with its own DCE and the DCEs must be coordinated so that data translation occurs without loss of integrity.A DCE is any device that transmits or receives data in the form of an analog or digital signal through a network.6 数字数据传输:接口和调制解调器(选自«数据通信与网络», Behrouz Forouzan著)我们将信息编码成可以传输的格式,下一步就是探讨传输过程了。

相关文档
最新文档