基于单片机的出租车计价器设计与实现4spccra5.docVIP

  • 0
  • 0
  • 约1.07万字
  • 约 24页
  • 2018-09-11 发布于湖北
  • 举报

基于单片机的出租车计价器设计与实现4spccra5.doc

基于单片机的出租车计价器设计与实现4spccra5

毕业设计报告 题 目:基于单片机的出租车计价器的 设计与实现 院 系: 专 业: 班级学号: 学生姓名: 指导教师: 成 绩: 2014 年 06 月 25日 摘 要 出租车计价器的硬件设计以STC89C52单片机为核心控制元件,利用灵敏的光电传感器对车轮的转数进行采集从而对行驶距离进行测量,输出采用LCD12864液晶显示器作为显示器件,可以显示路程信息,还可以设置计价的费用、等时费用、起价费用等,可以适合不同的车型。 系统软件设计的主要部分有:主程序模块、运行里程计数中断程序、定时中断程序、中途等待中断程序,显示子程序和键盘程序。 本电路设计的计价器所具备的重要方面有:显示数据电路、光电传感器电路、按键输入电路、单片机最小系统电路与报警模块构成。本电路设计的里程表不但能实现基本的里程计数,而且还能设置轮胎的直径,可以计算里程并能够实时显示乘客所花费的价格,同时使用LCD12864作为显示器件,方便使用。 关键词:单片机;光电传感器;液晶显示器 Abstract With STC89C52 Single-chip Microcomputer (SCM) as the core hardware control elements, the taxi meter uses sensitive photoelectric sensors to count the number of revolutions of the wheel so as to measure the distance. In terms of output, LCD12864 display is leveraged as the display device, which can set denominated costs, isochronous costs, and starting fees and fit different models. The software design for the system mainly includes the main program module, mileage count interrupt service program, timer interrupt service program, mid-way wait interrupt service program, display subroutine service program and keyboard service program. The main function of the meter designed in this circuit mainly contains data and photoelectric sensor display, key input circuit, smallest single-chip module circuit and alarm system. The meter can not only achieve the basic mileage count, but also be able to set the diameter of the tire, calculate the mileage and display the real-time price passengers need to pay. Meanwhile, LCD12864 is used as the display device and is easy to use. Keywords: Single-chip Microcomputer; Photoelectric Sensor; Display 目 录 TOC \o 1-3 \u 1 硬件部分设计 PAGEREF _Toc19931 1 1.1 硬件结构设计 1 1.2 电源电路介绍 2 1.3 电平转换电路 2 1.4 液晶显示接口电路 3 1.5 彩灯驱动电路 3 1.6 按键部分电路 4 1.7 最小系统部分电路 5 1.7.1 复位电路设计 6 1.7.2 晶振电路实际 6 2 软件部分设计 7 2.1 主程序模块 7 2.2 中断子函数 8 2.3 显示子函数 9 3 系统测试 10 3.1 硬件部分测试10 3.2 软件部分测

文档评论(0)

1亿VIP精品文档

相关文档