欢迎来到天天文库
浏览记录
ID:25808561
大小:773.70 KB
页数:18页
时间:2018-11-22
《模拟出租车计价器的设计》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、※※※※※※※※※※※※※※※※※※※※※※※※2011级学生单片机课程设计单片机课程设计报告书课题名称模拟出租车计价器的设计姓名孟清华学号1123080616院、系、部物理与电子科学系专业应用电子技术指导教师郑文2013年11月30日一、设计任务及要求:设计任务:1.设计一款基于AT89S52单片机的出租车计价器;2.起步费10元,超过3公里后,每公里按2元收费,无附加燃油费;3.若途中存在等待时间,当等待时间超过8分钟后,按每分钟0.5元收费;4.能够显示的公里数;5.能够与打印机链接;要求:1.进行预设计,根据设
2、计的任务要求,先确定设计的硬件电路方案,然后进行硬件电路的初步设计,在计算机上画出硬件电路图,在老师的指导下进行修正硬件电路图,并对所涉及的参数进行计算。2在确定硬件的基础上,要进行软件的总体设计,包括软件主流程的设计以及各子程序的设计,同时,要写出详细的操作说明,如时间的调整方法,显示窗口的时间切换等,以配合软件的设计。3进入硬件的调试及编程工作,设计组内的同学可根据任务分工,有调试硬件各功能模块的,如键盘子程序、显示子程序等,有进行整体程序的编制的,各模块的编制过程中要注意资源的衔接,最好采用伪定义的方式采用单片机
3、的片内RAM资源。4.进入联机调试,联机调试的原则也要采用分步走的原则,各个功能模块要逐步套入,通过一个再增加一项功能,从而达到设计的总体要求,不要上来编制个最大的程序,最后无法查找错误!5.写出设计报告。指导教师签名:年月日二、指导教师评语:指导教师签名:年月日三、成绩指导教师签名:年月日1目录一.绪言··················································1二.系统设计方案比较与论证···································12.1系统整体流程
4、图········································12.2出租车计价器的控制方案论证····························12.3单片机的选择方案论证··································2三硬件电路设计··············································33.1行列式键盘的设计······································33.2数字显示电路的设计···········
5、·························43.3主要元器件选择········································4四程序流程图················································54.1主程序流程·············································54.2中断子函数·············································64.3判键子函数··············
6、······························724.4里程计算、计价单元的设计······························7五模拟出租车计价器仿真······································85.1Keil调试···············································85.2Proteus调试············································9六C语言程序设计············
7、································10七结束语····················································13八参考文献··················································13附录1系统电路原理图·········································13一、2一、绪言随着国民经济水平的不断提高出租车行业迅速发展起来,出租车已经成为大众的代步工具,是人们出行的首选,同时出租
8、车计费的准确性与人们的切身利益息息相关备受广大民众的关注。本设计以单片机AT89C51为核心控制芯片,易于编程且控制简单,而且成本低廉,设计电路简单。出租车起动后自动计费,上电后显示最初的起步价、里程计费单价、等待时间计费单价;通过按键可以调节起步价、里程计费单价等待时间计费单价;同时具有运行、暂停、停止等状态;可以显示运行时间、
此文档下载收益归作者所有