北京理工大学珠海学院 2020 届本科生毕业设计基 于 51 单 片 机 的 出 租 车 计 价器基 于 51 单 片 机 的 出 租 车 计 价 器摘 要这款计价器设计应用场景是用于出租车运营,要求有计程计价的性能。计价器由STC89C52单片机为主体,通过单片机丰富的借口连接,以复位电路,时钟电路,键盘电路等外围芯片为辅助,组成一个整体进行工作。复位电路的意义是重启单片机, 任何一款能正常使用的计价器都必备的功能,必要时也能摆脱操作错误的窘境,通过复位电路的功能可以重新进行工作。作为计时部分的12MHz 晶体时钟电路的用途,是为计价器提供具有高的精度的系统时钟源。使用了Proteus 等仿真软件,对计价器的软硬件部分模拟运行,用于调试。通过连接上电源,字符型液晶 1602可以显示三种收费:最低起步距离内的起步价,超出最低里程后,按公里数以及中途等候时间向,乘客收费。根据应用场景的不同,可以使用按键在里程收费,起步价,等候时间三种模式之间切换。仿照出租车在载客运营的行为模式,暂停与结束。 与至相关的运行时间和暂停时间等信息可以在1602液晶上查看到,总成本和总距离可以通过计算得出来。STC89C52控制器单片机为主体,P0端口与LCD 模块1602的显示芯片连接,P1端口为键盘模块的连接端口,按北京理工大学珠海学院 2020 届本科生毕业设计键负责输入。关键词:AT89S52 ;1602液晶;出租车计价器;DS1302;K24C02Taximeter based on 51 microcontrollerABSTRACTThe application scenario of the meter design is for taxi operation, which requires the performance of the meter to have the range pricing. Meter by STC89C52 MCU as the main body, customs clearance MCU rich excuses connection, togertherwith clock circuit keyboard circuit,reset circuit and other peripheral chips as the auxiliary, constitute a whole to work. The significance of the reset circuit is to restart the MCU, any one of the normal use of the meter are essential functions, when necessary can also get rid of the operating error dilemma, through the function of the reset circuit can work again. The purpose of the 12MHz crystal clock circuit as part of the...