摘要
设计一款基于单片机的出租车计价器。该出租车计价器以AT89S51为核心部件,采用单片机最小系统,结合DS1302时钟电路、AT24C02掉电保护电路和LED数码管显示,实现行车路程的显示、计费和调价等功能。其中,路程测量采用霍尔开关传感器A44E,它将行车路程变为标准脉冲输入单片机,单片机根据脉冲个数计算出总里程和价格。
Designs a taximeter system based on AT89S51 singlechip minimum system. The hardware of the system includes DS1302, AT24C02 and LED. Its function which contains such as setting price of each mile, total fare, displaying the time etc, can be achieved by singlechip. Its working principle is achieved by the AT89S51 by means of pulse signal detected by sensor A44E, puts pulse signal into the AT89S51 causing interruption. According to the numbers of pulse signal, singlechip figures out the total mileage and price.
出处
《现代计算机》
2014年第1期64-67,共4页
Modern Computer