原创 出租车计价器

2008-7-13 15:31 1503 1 1 分类: MCU/ 嵌入式

出租车多功能计价器<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />


      


随着出租车行业的发展,出租车行业已经是城市交通的重要组成部分,从加强行业管理以及减少与乘客的纠纷出发,以单片机为核心的智能出租车计价系统的开发就显得尤其重要。本设计采用89S51单片机为主控器,以FJ2E-D10NK霍尔传感器测距,实现对出租车的多功能的计价设计,并采用AT24C02实现在系统掉电的时候保存单价和系统时间等信息,输出采用8段数码显示管。本电路设计的计价器不但能实现基本的计价,而且还能根据白天,黑夜,中途等待来调节单价,但同时在不计价的时候还能作为时钟为司机同志提供方便。


关键词:89S51,霍尔传感器,AT<?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" />24C02


 


Abstrsct


As the taxi industry development, urban taxi industry is an important component of the traffic, strengthening management and the reduction of trade disputes with passengers proceeding to SCM smart taxi at the core of the development on the pricing system is particularly Important. This design uses 89 S51 MCU-based controller, to FJ2E-D10NK Hall sensor location, and the taxi-pricing design and realization of the system used AT24C02 Power-down price and the time saved time and other information systems, output By paragraph 8 of the digital display. of the circuit design of the meter can not only achieve the basic pricing, but also based on the day, night, waiting for the half-way to regulate the price, but not accounted for in the time for the drivers but also as a clock Comrade convenience.


Key words: 89S51, Hall sensor,  AT24C02,


 


 


 



 


 


第一章 系统方案比较与选择... 4


1.1方案论证与比较... 4


1.2主要元器件的介绍... 6


第二章 电路的系统设计... 10


2.1 设计总框图... 10


2.2 里程计算、计价单元的设计... 10


2.3 数据显示单元的设计... 11


2.4 AT24CO2掉电存储单元的设计... 13


2.5 按键单元的设计... 13


2.6 设计总体电路图... 14


第三章 程序设计... 16


3.1 主程序模块... 16


3.2 定时中断服务程序... 16


3.3 里程计数中断服务程序... 16


3.4 中途等待中断服务程序... 17


3.5 显示子程序服务程序... 17


3.6 键盘服务程序... 17


3.7 程序流程图... 18


第四章 测试分析与计算... 20


4.1.里程计价测试方法... 20


4.2.里程测量数据... 20


4.3.掉电储存测试... 21


第五章 电路的调试与安装... 22


第六章 创新与特点... 24


第七章 总结... 25


附录一:源程序... 26


附录二:共阳数码管与74LS164的连接图... 31


点击下载

PARTNER CONTENT

文章评论0条评论)

登录后参与讨论
我要评论
0
1
关闭 站长推荐上一条 /1 下一条