基于单片机的出租车计价器设计(毕业设计).doc
文本预览下载声明
摘 要
以单片机为核心,A04E霍尔传感器测转数。文章详细介绍了的硬件电路和软件设计。硬件部分利用霍尔元件将每转圈的脉冲数传入单片机系统,然后单片机系统将信号经过处理送显示。软件部分用C语言进行编程,采用模块化设计思想。实现对车里程的测量统计,并能将的里程数用LD实时显示。关键词:里程霍尔元件LCD显示Abstract
It is the major cities in the taxi industry has universal automatic meter now,and meter technology development is a foregone conclusion. And some small cities not yet universal, but with increasing speed up urban construction, a symbol of taxi industry will also accelerate development, and the popularity meter is no doubt, therefore, the future of the automobile market valuation is still potential. By STC89C54 as kernel, electric motor imitating wheel revolving, using A04E Hall element to measure revolution, the measure and statistic are achieved. In this article, the hardware circuit and software design of taximeter are introduced in detail. About the hardware, the pulse number is transmitted of one cycle of the electric motor into Single Chip Microcomputer system. Then the signal processed by Single Chip Microcomputer system is sent to display scream. About the software, in C language, the program is designed in the mode of modules. The system has realized the taxi mileage waiting time and total price of time and mileage counting together can be displayed on LCD.
Keywords: Mileage,Hall element,LCD,Time and mileage counting together
目 录1
1.1课题背景 1
1.2课题的主要任务及内容 2
第二章 出租车计价器系统总体方案设计 4
2.1 任务分析与实现 4
2.2 出租车计价器系统硬件方案设计 4
2.2.1 里程测量传感器的设计 5
2.2.2 方案的确定 7
2.3 出租车计价器系统软件方案设计 7
第三章 出租车计价器系统硬件电路设计 9
3.1 概述 9
3.2 传感器及其测量系统 9
3.2.1 霍尔传感器的测量原理 10
3.2.2 集成开关型霍尔传感器 11
3.3 单片机的原理及应用 12
3.3.1 单片机原理简介 12
3.3.2 单片机的引脚功能介绍 13
3.3.3 单片机中断系统介绍 16
3.3.4 单片机定时/计数功能介绍 18
3.4 单片机外围电路的设计 19
3.4.1 时钟电路的设计 19
3.4.2 复位电路的设计 20
3.4.3 显示电路的设计 22
第四章 出租车计价器系统软件程序设计 25
4.1 概述 25
4.2 出租车计价器系统总体程序设计 25
4.3 中断子程序的设计 26
4.4 数据处理子程序的设计 27
第五章 系统调试与分析 29
5.1 硬件电路的搭建 29
5.2 调试故障及原因分析 29
5.3 调试结果 29
5.3.1 候时显示 29
5.3.2 里程显示 30
5.3.3 停车总价显示 31
第六章 社会经济效益分析 32
结束语 33
致 谢 34
参考文献 35
附录Ⅰ 出租车计价器系统硬件系统原理图 37
附录Ⅱ 元件清单 38
附录Ⅲ 程序清单 39
第一章 绪论
1.1课题背景
随
显示全部