文档详情

基于单片机出租车的计价器大学生毕业论文(设计)(设计).doc

发布:2016-04-30约字共24页下载文档
文本预览下载声明
毕业论文设计 课题名称: 基于单片机出租车的计价器 学生姓名: 李 国 正 学 院: 电子信息学院 专 业: 应用电子基础 班 级: 电子1211 指导教师: 熊 杰 2014年 11 月 3 日 目 录 1 绪论 3 2 系统设计要求及功能 4 2.1 设计要求 4 2.2 系统主要功能 4 3 系统方案选择与论证 5 3.1 总体方案设计 5 3.1.1 总体方案选择与论证 5 3.1.2 总体设计框图 5 3.2 部分芯片选择与论证 5 3.2.1 单片机选择与论证 5 3.2.2 显示部分方案选择与论证 6 4 硬件电路设计 7 4.1 系统芯片概述 7 4.1.1 单片机概述 7 4.1.2 数码管概述 8 4.1.3 74LS373芯片概述 10 4.1.4 74HC245概述 10 4.2 系统电路设计 12 4.2.1 主控电路设计 12 4.2.2 驱动电路设计 12 4.2.3 显示部分电路设计 13 5 软件设计 14 6 系统调试及结果分析 15 6.1 系统调试 15 6.2 性能分析 15 总结 16 参考文献 17 致 谢 18 附件 19 出租车计价器的设计与制作 摘要:该设计的是一个基于单片机STC89C52的出租车自动计费系统,附有复位电路,时钟电路,键盘电路等。复位电路是单片机的初始化操作,除了正常的初始化外,为摆脱困境,通过复位电路可以重新开始。时钟电路采用12MHz的晶振,作为系统的时钟源,具有较高的准确性。在上电时四位数码管显示最初的起步价,通过按键可以调整起步价,总收费由起步价、里程收费和等待时间收费组成。通过按键模拟出租车的运行,停止。在数码管上可以显示运行的时间,运行时暂停的时间,通过计算可以得出总共的费用和总的路程。设计中是以STC89C52单片机为核心控制器,配以简单的按键显示电路,最终实现了模拟出租车计价器的设计。 关键词:单片机STC89C52,数码管,出租车计价器 Abstract: This design is a based on microcontroller STC89C52 cab design, automatic billing with reset circuit, clock circuit, keyboard circuit, etc. Is reset circuit of single chip microcomputer initialization operation, in addition to the normal initial non-greeks, for out of the woods, by reset circuit can start again. The clock circuit adopts 12 MHZ crystal vibration, as the system clock source, has higher accuracy. When the electricity four digital tube display the original fare, mileage charge two, through the button can adjust the fare, mileage charge, waiting time charge. Through button simulation run of the taxi, stop. On the digital tube can display the running time, suspended at runtime, through calculation can be concluded that the total cost and the total distance. Here mainly STC89C52 single-chip microcomputer as the core controller, P0 mouth by digital tube display, P1 mouth pick up keys, through the pressed key input, the P2 mouth by digital tube display how much charge. Keywords: STC89C52 LED The taximeter system 1 绪论 汽车计价器是乘客与司机双方的交易准则,它是出租车行业发展的重要标志,是出租车中最重要的工具。它关系着交易双
显示全部
相似文档