1、湖南工业大学电气与信息工程学院单片机课程设计 基于单片机出租车计费系统 1 摘 要 随着经济的发展,带动汽车行业快速发展,出租车日益普遍化,在市场经济的环境下,出租车计费的公平性也成了大家在意的话题。了解在出租车上应用的计费系统,对我们日常出行有所帮助。 本设计主要分为三章,第一章主要分析并实现了 255 的计数功能,主要是利用计数器对外部传感器检测的脉冲计数;第二章主要分析并实现 50000 计数功能,主要也是利用计数器对外部传感器检测的脉冲计数,当车速很快时在一秒时间内就会产生很多脉冲,这样就可以防止溢出的情况;第三章主要分析和实现出租车机会系统以及它所用实现的外部硬件电路和软件。 本出租
2、车计费系统由单片机 AT89C51 和一些外围电路组成,具有结构简单、操作方便、显示清晰、功能强大等特点。 本方案使用 液晶 LCD_1602 作为显示器,可以显示数字使系统信息一目了然。比较真实地模拟出租车的空车、载客、到站及对各状况的费用的计算、统计和显示等功能。 本系统涉及到的理论知识有: AT89C51 单片机工作原理及应用, 液晶的使用 ,出租车计费系统的原理和实现方法。 关键词 :单片机 AT89C51 、 出租车计费系统 、 LCD_1602 湖南工业大学电气与信息工程学院单片机课程设计 基于单片机出租车计费系统 2 Abstract With the development o
3、f economy, the rapid development of automobile 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 chap
4、ters, the first chapter mainly analyzes 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 detect
5、ion, when the speed very quickly when 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 AT8
6、9C51 and peripheral circuit, has the advantages 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, arriva
7、l 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 realization method of the taxi billing system. Keywords :single chip microcomputer AT89C51, taxi billing system, LCD_1602