毕业设计论文
基于STC89C52单片机出租车计价器设计
摘 要
随着城市建设日益加快,象征着城市面貌的出租车行业也将加速发展。现在各大中城市出租车行业都已普及自动计价器,所以计价器技术的发展有很好的前景。尽管小城市尚未普及,但计价器的普及也是毫无疑问的,所以未来汽车计价器的市场还是十分有潜力的。
出租车计价器是单片机的一种典型应用。基于单片机的计价器是由单片机和外部电路组成。包括检测模块,控制模块,人机模块。里程检测模块由A44E构成,控制模块包括STC89C52单片机和AT24C02,人机模块包括独立键盘和LED动态显示。
系统性能指标 1.设定价格;
2.显示当前单价、行驶里程和总金额; 3.里程精确到0.1公里。
通过多次调试系统性能达到设计要求。
关键词:STC89C52,霍尔传感器A44E ,I2C总线,动态显示
I
II
Design of Taximeter Based on STC89C52
ABSTRACT
With the rapid development of city constriction, the taxi industry which symbolizes the cityscape also accelerated progress. Nowadays the automatic taximeter widely used in taxi industry in many cites. Therefore, the development of automatic taximeter is doomed. Although automatic taximeter is not spread in some towns, there is no doubt that it would be popularized. Thus, in future the business of automatic taximeter is still potential.
One typical application of single chip computer is automatic taximeter. The is composed of single chip computer and peripheral circuits which consist of Detection Unit, Processing Unit and Human Computer Interaction Unit. The Detection Unit is based on Hall-effect sensor. The Processing Unit contains STC89C52 and AT24C02. Human Computer Interaction Unit is composed of keyboard and LED.
The function of this system includes as follows: 1. Set the unit price;
2. Display the unit price, total amount and mileage. 3. Accuracy: 0.1km.
III
After repeatedly debugging, the performance of this system is reached the design requirements.
KEY WORDS: STC89C52, Hall-effect sensor, A44E, I2C Bus, Dynamic display
IV
目 录
前 言 ................................................................................................ 1 第1章 系统工作原理 ....................................................................... 4
1.1 1.2
功能要求 ............................................................................ 4 基本原理 ............................................................................ 5
第2章 硬件设计 .............................................................................. 7
2.1 单片机最小系统单元 ........................................................... 7 2.2 霍尔传感器单元 ................................................................... 9 2.3 掉电存储单元 ..................................................................... 11 2.4 键盘调整单元 ..................................................................... 13 2.5 显示单元............................................................................. 15 第3章 软件设计 ............................................................................ 19
3.1 系统主程序 ......................................................................... 19 3.2 里程计数中断程序 ............................................................. 20 3.3 中途等待中断程序 ............................................................. 21 3.4 计算程序............................................................................. 23 3.5 显示程序............................................................................. 24 3.6 键盘程序............................................................................. 25 第4章 调试改进过程及运行结果分析 ......................................... 28
V
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说综合文库[完整版]基于STC89C52单片机出租车计价器设计毕业论文设计40论文在线全文阅读。
相关推荐: