单片机课程设计出租车计价器就.pdf
《单片机课程设计出租车计价器就.pdf》由会员分享,可在线阅读,更多相关《单片机课程设计出租车计价器就.pdf(27页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、学习文档仅供参考河南理工大学单片机应用与仿真训练设计报告基于单片机的出租车计价器的设计2012 年 7 月 1 日摘要出租车已经是城市交通的重要组成部分,从加强行业管理以及减少司机与乘客的纠纷出发,具有良好性能的计价器对出租车司机和乘客来说都是很必要的。而采用模拟电路和数字电路设计的计价器整体电路的规模较大,用到的器件多,造成故障率高,难调试。而采用单片机进行的设计,相对来说功能强大,用较少的硬件和适当的软件相互配合可以很容易地实现设计要求,且灵活性强,可以通过软件编程来完成更多的附加功能。本设计的是一个基于单片机学习文档仅供参考AT89S52的出租车自动计费设计,附有复位电路,时钟电路,键盘
2、电路等。复位电路是单片机的初始化操作,除了正常的初始化外,为摆脱困境,通过复位电路可以重新开始。时钟电路采用12MHz的晶振,作为系统的时钟源,具有较高的准确性。在上电时四位共阴极5461AS数码管显示最初的起步价,里程收费,等待时间收费三种收费,通过按键可以调整起步价,里程收费,等待时间收费。通过按键模拟出租车的运行,暂停,停止。在5461AS液晶上可以显示运行的时间,运行时暂停的时间,通过计算可以得出总共的费用和总的路程。在这里主要是以AT89S52单片机为核心控制器,P0口接 5461AS液晶显示模块,P1口接按键的,通过按键输入。文档编码:CW4L7C10H9Z8 HA1X5K9O10
3、H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1
4、X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3
5、V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码
6、:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7
7、C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z
8、8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X
9、5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6学习文档仅供参考目录第一章概述.-1-1.1出租车计价器设计要求.-1-1.2系统主要功能.-1-1.3方案论证与比较.-1-第二章出租车计价系统的硬件设计.-3-2.1振荡电路.-3-2.2复位电路设计.-3-2.3键盘接
10、口电路.-4-2.4显示电路.-4-2.5路程测量部分.-5-2.6单片机各引脚功能说明.-6-2.75461AS液晶的简介.-7-第三章出租车计价系统的软件设计.-10-3.1单片机资源使用.-10-3.2中断子函数.-10-3.3判键子函数.-11-3.4显示子程序.-12-3.5总程序流程框图.-13-第四章 PROTEUS 软件仿真 .-14-4.1PROTEUS介绍.-14-4.2调试与测试 .-15-4.3里程计价测试 .-15-第五章设计体会与小结.-17-参考文献.-18-附录.-19-一源程序 .-19-二系统原理图.-24-文档编码:CW4L7C10H9Z8 HA1X5K9
11、O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5
12、ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L
13、7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文
14、档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW
15、4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10
16、H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 H
17、A1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6学习文档仅供参考第一章概述1.1 出租车计价器设计要求设计一个出租车自动计费器,计费包括起步价、行车里程计费、二部分,用5461AS液晶 显示总金额,运行时间,暂停时间,最大值为99.9 元,起步价为5.0 元,3Km
18、之内起步价计费,超过3Km,增加 2.0 元即 1KM 增加 2.0 元,用液晶显示总里程,同时用液晶显示等待时间和运行花费时间。、计费功能费用的计算是按行驶里程收费。设起步价为5.00 元。1、当里程 3km时,按起价计算费用、显示功能1、显示行驶里程:用四位数字显示,显示方式为“XXXX”,单位为 km。计程范围 0-99km,精确到 1km。2、显示等候时间:用两位数字显示,显示方式为“XX”,单位为 min。计时范围 0-59min,精确到 1min。3、显示总费用:用四位数字显示,显示方式为“”,单位为元。计价范围0-999.9 元,精确到 0.1 元。1.2 系统主要功能本出租车自
19、动计费,上电后显示最初的起步价,里程计费单价,等待时间计费单价,通过按键可以调节起步价,里程计费单价,等待时间计费单价。同时具有运行,暂停,停止等状态,可以显示运行的时间,同时可以显示暂停的时间,具有累加功能,暂停和运行时间在暂停和运行前一次的状态上计时。出租车停止后能够显示行驶的总费用。1.3 方案论证与比较方案一:采用数字电子技术,利用 555 定时芯片构成多谐振荡器,或采用外围的晶振电路作为时钟脉冲信号,采用计数芯片对脉冲尽心脉冲的计数和分频,最后通过译码电路对数据进行译码,将译码所得的数据送给数码管显示,一下是该方案的流程框图,方案一如图1-1 所示:文档编码:CW4L7C10H9Z8
20、 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5
21、K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H
22、5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X
23、4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V
24、6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:
25、CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C10H9Z8 HA1X5K9O10H5 ZH1X4L7I3V6文档编码:CW4L7C
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 单片机 课程设计 出租车 计价器
限制150内