基于 AT89C52 单片机的出租车计价器的设计 摘 要随着城市改革开放的进一步深化,出租车行业迅速进展,出租车计价器的市场需求量也大大增加,计价器作为出租车的一个重要组成部分,计价器的普及必将大势所趋,估计未来计价器市场将很有进展前景。与此同时计价器作为出租汽车的经营者和乘坐出租汽车的消费者之间用于公平贸易结算的工具,计价器计价准确与否,直接关系到经营者和消费者的经济利益。因此怎样设计出一种既能准确计价又能方便司机的计价器尤为重要。本课题是出租车计价器系统的设计。以出租车计价器的有用性和节约成本为起点出发,以 AT89C52 单片机为中心、通过霍尔传感器对脉冲的计数实现对里程和总金额的统计,人机交互界面输出采纳 LCD1602 液晶屏。独立按键进行复位、清零、白天黑夜模式选择功能的控制,本电路设计的计价器不但能实现基本的计价,掉电时进行数据存储,而且还能根据白天、黑夜、中途等待来调节单价,进行里程、单价、总车价相关信息的显示。关键词:单片机,出租车计价器,DS1302,AT24c02,LCD1602Based on AT89C51 taxi meter design AbstractWith the further deepening of reform and opening up of the city, the taxi industry rapid development, the taximeter market demand also increased significantly, as an important part of the taxi meter, the meter's popularity is bound to the trend of the times, it is expected that the future meter the market is promising. At the same time the meter as taxi operators and taxi consumer tools for fair trade settlement, the accuracy of the meter denominated, directly related to the economic interests of operators and consumers. Therefore, how to design a both accurate pricing but also convenient for the driver's meter is particularly important.The issue is the design of the taxi meter system. Taxi meter practicality and cost savings as the starting point, AT89C52 microcontroller as pulse count on the mileage and the total amount of statistics, interactive interface output LCD1602 LCD. Independent button reset, clear, day...