出租车计价器的设计c题-read.docVIP

  • 11
  • 0
  • 约1.18万字
  • 约 21页
  • 2018-04-08 发布于天津
  • 举报
出租车计价器的设计c题-read

绍兴市2008年“永通电脑杯” 大学生电子设计竞赛 (第七组) 2008-7-13 出租车计价器的设计(C题) 摘 要: 设计了一个基于 89S55 单片机作为核心的控制元件,附加灵敏的霍尔开关型传感器A44L测距,实现对出租车计价的统计,采用 AT24C02实现在系统掉电的时候保存单价、里程和系统时间等信息,输出采用LCD液晶显示。本电路设计的计价器不但能实现基本的计价功能,显示单价、里程、总金额的功能,而且还能根据白天、黑夜、中途等待来手动调节单价,白天与晚上系统能内部识别,同时在不计价的时候还能作为时钟为司机同志提供方便。本出租车计价器具有功能强、性能可靠、电路简单、成本低的特点,加上经过优化的程序,使其有很高的智能化水平。 关键词: 单片机控制、霍尔传感器、AT24C02、液晶 Abstrct: Based on the design of a microcontroller for 89 S52 as a core element of control, additional switch-sensitive Hall-A44L location, and the taxi-denominated statistics, AT24C02 used in the system to achieve power-down when the preservation of price, mileage and systems Time information, using LCD LCD output. The circuit design of the meter can not only achieve the basic function of pricing, show that price, mileage, the total amount of features, but also based on the day, night, waiting for the half-way to manually adjust price, while not pricing but also as a time clock Comrade provide convenience for drivers. The taxi meter is functional strong, reliable performance, circuit simple, low-cost characteristics, and optimized the procedure, it has a high level of intelligence. Key words: SCM control, Hall sensors, AT24C02, LCD 目录 摘 要: 2 1、系统设计 5 1 .1 设计要求 5 1 .1 .1任务 5 1 .1 .2 要求 5 1 .2总体设计方案 5 1 .2 .1 方案一 6 1 .2 .2方案二 6 1 .2 .3方案的论证与比较 6 1 .2 .4 系统组成 6 1 .3单元电路方案的选择与论证 7 1 .3 .1 显示模块 7 1 .3 .2 存储模块 7 1 .3 .3 电源模块 8 1 .3 .4 车轮检速及路程计算模块 9 1.4 芯片的选择 9 1 .4 .1 霍尔传感器 10 1 .4 .2 实时时钟芯片 10 1 .4 .3 液晶芯片 10 2、单元硬件电路设计 10 2.1 里程计算、计价单元的设计 10 2.2 数据显示单元的设计 11 2.3 AT24C02掉电存储单元的设计 12 2.4 时钟单元的设计 12 2.5 按键单元的设计 13 3、程序设计 13 3.1模块介绍 13 3.1.1主程序模块 13 3.1.2定时中断服务程序 14 3.1.3里程计数中断服务程序 14 3.1.4中途等待中断服务程序 14 3.1.5显示服务程序 14 3.1.6键盘服务程序 14 3.1.7 按键消抖动 14 3.2 程序流程图 14 3.2.1 主程序流程图 15 3.2.2 单价时间调整流程图 15 4.硬件调试 16 4.1 测试使用的仪器 16 4.2里程计价测试 16 4.3 掉电存储测试 18 5、系统优点及改进措施 18 6、总结 18 附录1:使用说明 18 (1)按键和开关说明: 18 (2)菜单式切换模式: 18 (3)举例说明: 19 附录2:主要元器件清单 20 附录3:整体电路原理图 21 附录4:程序清单 21 1、系统设计 1 .1 设计要求 1 .1

文档评论(0)

1亿VIP精品文档

相关文档