51单片机出租车计费器的设计与仿真

出租车计费器系统的相关设计已经全部完成,它可以按照预期的想法对汽车的开启,停止运行,暂停等进行相关的模拟,并可以通过LCD来显示票价的数量。


摘要: 本文简单介绍了对Keil C51这一编程软件以及Proteus仿真平台上分别使用C51编程语言以及AT89C52单片机进而可以实现该数字系统。其并且还对这几个模块例如包括进行串行通信的这个模块、进行数字管显示的这一模块、进行按键控制的模块以及相关A/D转换功能的模块等的主要的并且可以进行相关的设计以及对构成的技术进行了相关性的讨论。日夜有不同的收费标准、单价路线输出2位数和总体金额输出3位数据输出也不同、启动定时开关、复位和数据显示,以及日/夜切换按钮功能也不同。难点在于需要根据实际应用需求选择合理的实施方案,如何编制和使用计算公式来提高测试的准确性和数据的收集和显示。本次设计的仪表主要采用的技术是单片机这一技术,其目的是为了能够实现出租车计费器这一仪表所具有的多样性的功能。它需要拥有性能的多样性、电路简单明了、成本价格低廉等特点。

关键词: 出租车计费器、AT89C52单片机、模块、数字系统

Design and Simulation of Taxi Meter Calculation Based on 80C51 Microcontroller

Abstract: The main point of this article is to introduce the Keil C51 programming software and the Proteus simulation platform to use the C51 programming language and the AT89C52 microcontroller. Implement this digital system. In addition, the main design methods and technologies of the serial communication module, the digital tube display module, the key control module, and the A/D conversion function module are also discussed. Day and night have different charging standards, the unit price of route output 2 digits and the total amount of output 3 data output is also different, start the timer switch, reset and data display, and day / night switch button function is also different. The difficulty lies in the need to select a reasonable implementation plan based on the actual application requirements, how to formulate and use calculation formulas to improve the accuracy of the test and the collection and display of data. This design mainly uses the single-chip microcomputer technology to realize the various functions of the taxi meter device. It needs to have the characteristics of persity, simple and clear circuit, low cost and other characteristics.

Keywords: Taxi meter;AT89C52 microcontroller ; module; digital system

目录

摘要 i

Abstract i

目录 ii

1 绪论 1

1.1 课题的选题背景 1

1.2 课题的目的与意义 2

1.3 国内外发展趋势 2

1.4 设计内容 3

2 系统功能分析 4

2.1 需求分析 4

2.2 工作原理 8

2.3 相关理论要点 10

2.3.1 时钟振荡器 10

2.3.2 中断 11

2.3.3 节点模式 11

3 出租车计费器硬件设计 12

3.1 出租车计费器概述 12

3.1.1 基本功能 12

3.1.2 功能模块结构 12

3.2 系统硬件设计 13

3.2.1 串口虚拟终端显示及串口通信 13

3.2.2 按键控制的设计 15

3.2.3 时间显示的设计 15

3.2.4 车速调节的设计 16

3.2.5 A/D转换 17

3.2.6 复位电路 17

3.2.7 总电路图 18

4 出租车计费器软件设计 20

4.1 程序流程图 20

4.2 定时中断服务程序 21

4.3 显示子程序服务程序 23

4.4 键盘服务程序 27

5 结论 29

5.1 此定时器/计数器的使用说明 29

5.2 系统调试 29

5.2.1 较常出现的软件出错类型 29

5.2.2 软件调试方法 30

5.3 总结 31

致谢 32

参考文献 33

附录 34

1 绪论

本次毕设利用AT89C52单片机这一技术进而来实现一台多功能出租车计费器的设计,它具有电路简洁、性能可靠高效、成本低等的特点。

1.1 课题的选题背景

在当今的社会上,出租车广泛出现在我们的身边。并且随着时间随着各个地方人民的生活总体水平不断的提升,每次出行时对于出租车的使用率也在不断提高当中,出租车这一行业也为每一位顾客提供更加优质的出行服务。然而,由于这个行业的特殊性,出租车行业始终会存在着购买纠纷,这无疑是困扰此行业发展的绊脚石。改善计费器制度并采用更加精良的计费器设备是解决出租车行业主要矛盾的最佳途径,为乘客提供了更方便满意的服务。