文档介绍:学士学位论文(设计)
题目:
出租车计价器系统的研究与设计
姓名:
张婷婷
学号
0**********
专业:
电子信息工程
指导教师:
文凤春
职称
副教授
目录
1概述 1
1
单片机的概述 1
2 总体设计方案的论证与比较 3
总体设计方案的论证与比较 3
4
设计总框图 4
3 硬件设计 6
硬件设计概述 6
AT89S51介绍 7
8
显示原理 11
AT24C02 掉电存储单元的设计 14
按键单元的设计 15
4 系统的软件设计 19
模块介绍 19
主程序模块 19
21
里程计数中断服务程序 23
中途等待中断服务程序 23
23
25
5系统调试与测试结果分析 26
使用的仪器仪表 26
系统调试 26
6 结论 29
致谢 30
参考文献 31
出租车计价器系统的研究与设计
摘要
本文介绍了一种以AT89C51单片机为核心的多功能出租车计价器。该计价器具有单程,往返,白天,夜间,等待等多种模式的计价方式。有显示功能,发票打印功能,防作弊措施。文中在整体方案选择上对两个方案进行了对比,并阐述了硬件配置及性能特点,分为计量模块、显示模块、打印模块、防作弊模块;软件设计采用汇编语言编写,系统程序固化在单片机内部的EEPROM 存储器中, 程序包括主程序和若干子程序。主程序的功能是开机后负责管理和调用子程序, 子程序共有4个, 分别是键盘扫描子程序、计量子程序、读日历时钟子程序及显示子程序。在对各芯片在出租车计价器中所起的作用进行分析基础上对总体设计方案进行了分析。
关键词
单片机,多功能,出租车计价器
Abstract
In this paper, a taximeter based on a processor AT89C51 is reported. This taximeter have many functions such as single, back and forth, wait, day and night cost. And it has display function, type invoice function, step for avoiding practice fraud. In this paper, a full description of hardware disposal, characterize, plan of software is described in detail. In this paper,two programs are enumerated,hardware include metric module,display module,print module,avoiding practice fraud module;plan of software adopt assembler,every procedure solidifys in EEPROM in processor includes main procedure and several filial procedures,the function of main procedure is taking charge of managing and transferring filial procedures that includes keyboard scan,metric peocedure,calendar clock procedure and display on analyzing function of every processor in taximeter total plan is a nalysed.
Keywords
AT89C51,multifunctional,Taximeter
1 概述
汽车计价器是乘客与司机双方的交易准则,它是出租车行业发展的重要标志,是出租车中最重要的工具。它关系着交易双方的利益。具有良好性能的计价器无论是对广大出租车司机朋友还是乘客来说都是很必要的。因此,汽车计价器的研究也是十分有一个应用价值的。
我国在70年代开始出现出租车,但那时的计费系统大都是国外进口不但不够准确,价格还十分昂贵