摘要:本论文基于了51式单片机来实现毕业设计要求——出租车计费器的设计与仿真。该系统在实现电路设计基本功能的基础上,还可以根据白天和黑夜,中途等待这种情况来调整单价和初始价格,同时当仪表不工作时,可作为电子钟为司机安排提供方便。57635
本次设计论文主要分为两大部分,系统的硬件设计和软件设计。系统的硬件系统由里程技术模块、空车等待模块、计费模块、显示模块和电源电路等部分构成,电源电路为51单片机及其他电路模块提供+5V的电压。在以51单片机为中心的基础上,附加了霍尔传感器来测距,实现对出租车计价的统计;对于掉电的时候保存系统所测的单价以及系统时间等一系列的信息这一措施,选用了十分适合它的AT24C02存储芯片。其次在软件方面使用Keil C51软件编制源程序并加以调试,结合Proteus硬件仿真软件仿真和调试,实现系统的功能,并最终满足了毕业设计的基本要求。
毕业论文关键词: 51单片机;计费器;霍尔传感器;AT24C02存储芯片
Design and Simulation of a taxi meter based on 80C51 MCU
Abstract:
In this paper, based on 51 single chip microcomputer type to the design of the graduation design requirements, the taxi is realized with the simulation. In the realization of the system circuit design, on the basis of the basic function, can also according to the day and night, halfway to wait this situation is to adjust the unit price and the initial price, at the same time when the instrument does not work, can be used as electronic clock arrange provide convenient for the driver.
This design paper mainly pided into two parts, hardware design and software design of the system. In the hardware method of the 51 single-chip microcomputer of reliable performance, simple circuit, the cost is relatively low let I chose it as the main chip design. System hardware system consists of mileage technology module, empty waiting for module, billing module, digital tube display and the power supply circuit and other parts, power supply circuit for the 51 single-chip microcomputer and other circuit module provides a + 5 v voltage. In the 51 microcontroller as the center, on the basis of hall sensor was attached to range, realize to taxi valuation of statistics; For power unit price as well as the measurement and control system to preserve the system when the measure time and so on a series of information, choose the very suitable for its AT24C02 memory chips. Next on software use Keil C51 and debugging software source program, combined with the Proteus simulation software simulation and hardware debugging, realize the function of the system, and ultimately meet the basic requirements of graduation design.
Keywords: 51singlechip;taximeter;hall sensor;AT24C02 memory chips
目录
摘要: ii
Abstract: ii
目录 iv
1 绪论 1
1.1 课题的目的和意义 1
1.3 单片机的简述 2
1.4 本课题的工作内容 3
2 主要元器件 5
2.1 主芯片AT89C51的硬件资源 5
2.1.1 单片机的概念 5
2.1.2 89C51引脚图 6
2.1.3 I/O口注意事项 8