1、 基于单片机出租车计费系统 1 摘 要 随着经济的发展,带动汽车行业快速发展,出租车日益普遍化,在市场经济 的环境下,出租车计费的公平性也成了大家在意的话题。了解在出租车上应用的 计费系统,对我们日常出行有所帮助。 本设计主要分为三章,第一章主要分析并实现了 255 的计数功能,主要是利 用计数器对外部传感器检测的脉冲计数;第二章主要分析并实现 50000 计数功 能,主要也是利用计数器对外部传感器检测的脉冲计数,当车速很快时在一秒时 间内就会产生很多脉冲,这样就可以防止溢出的情况;第三章主要分析和实现出 租车机会系统以及它所用实现的外部硬件电路和软件。 本出租车计费系统由单片机 AT89C5
2、1 和一些外围电路组成, 具有结构简单、 操作方便、显示清晰、功能强大等特点。 本方案使用液晶 LCD_1602 作为显示器,可以显示数字使系统信息一目了 然。比较真实地模拟出租车的空车、载客、到站及对各状况的费用的计算、统计 和显示等功能。 本系统涉及到的理论知识有: AT89C51 单片机工作原理及应用,液晶的使 用,出租车计费系统的原理和实现方法。 关键词:单片机 AT89C51 、 出租车计费系统 、 LCD_1602 基于单片机出租车计费系统 2 Abstract With the development of economy, the rapid development of au
3、tomobile industry, the taxi increasingly common, in the environment of market economy, fairness taxi billing became people care about the topic. Understand the accounting system in the taxi, on our daily travel help. This design is mainly divided into three chapters, the first chapter mainly analyze
4、s and realizes 255 count features, mainly is the pulse count detection of external sensor using counter; the second chapter mainly analysis and the realization of the 50000 counting function, mainly is the use of pulse counting counter the external sensor detection, when the speed very quickly when
5、in a second time in a lot of pulse, so that we can prevent overflow; taxi opportunity system and its external hardware circuit and the software implementation of the third chapter mainly analysis and implementation. The taxi billing system is composed of MCU AT89C51 and peripheral circuit, has the a
6、dvantages of simple structure, convenient operation, clear display, powerful features. This scheme uses LCD_1602 as a liquid crystal display, can display numbers enables the system information stick out a mile. A real simulation of empty taxis, passenger, arrival of the situation and the cost calculation, statistics and display function. Theory of knowledge involved in this system are: AT89C51 single-chip microcomputer principle and application, the use of liquid crystal, principle and realizat