长春师范学院 毕业设计(论文)
题目 出租车计费系统之电路的设计与实现 院系名称 计算机科学与技术 班 级 06级计算机科学与技术 学生姓名 林岩 学号 0611240112 指导教师 李晓宁 评阅教师 时 间
长春师范学院毕业论文 摘要
摘要
现在各大中城市出租车行业都已普及自动计价器,所以计价器技术的发展已成定局。而部分小城市尚未普及,但随着城市建设日益加快,象征着城市面貌的出租车行业也将加速发展,计价器的普及也是毫无疑问的,所以未来汽车计价器的市场还是十分有潜力的。
本文介绍了利用 SPCE061A 作为主控制器,配合 SPLC501 液晶模组设计出租车计价器的过程。该系统可以接受里程传感器的脉冲输入(在本方案中使用 PWM 模拟替代传感器脉冲),并对脉冲进行计量,继而实现转换成里程的过程;采用现行出租车计价系统的计算方法,对行驶里程进行计费;并具有友好的语音提示界面。
关键词:SPCE061A SPLC501 液晶模组 出租车 计价器
I
长春师范学院毕业论文 Abstract
Abstract
It is now the major cities in the taxi industry have universal automatic meter, meter technology development is a foregone conclusion. And some small cities not yet universal, but with increasing speed up urban construction, a symbol of urban landscape taxi industry will also accelerate development, and the popularity meter is no doubt, therefore, the future of the automobile market valuation is still potential .
describes SPCE061A as the main controller, with SPLC501 taximeter LCD module design process. The system can accept the mileage sensor pulse input (in this program using alternative sensors analog PWM pulse), and pulse measurement, then the process of realization into mileage; use of the existing taxi pricing system is calculated on the mileage to billing; and have a friendly voice prompts interface.
Key words: SPCE061A SPLC501 LCD module Taximeter
II
长春师范学院毕业论文
目录
1 引言 ......................................................................................................................................... 3 1.1 开发背景...........................................................................................................3 1.2 开发方案...........................................................................................................4 1.3 功能简介...........................................................................................................4 2 系统硬件设计.........................................................................................................5
2.1 SPCE061A芯片简介......................................................................................6 2.1.1 SPCE061A 特性.....................................................................................6
2.1.2SPCE061A接口说明 ..............................................................................7 2.2 SPLC501芯片................................................................................................ 8 2.2.1 SPLC501简介.......................................................................................8 2.2.2 SPLC501功能.......................................................................................9 2.2.3 SPLC501 液晶模组特性......................................................................9 2.3 硬件电路.....................................................................................................10 2.3.1 SPCE061A最小系统............................................................................10 2.3.2 LCD显示器...........................................................................................10 3 系统软件设计........................................................................................................................12
3.1 主程序........................................................................................................ 12 3.2 液晶驱动程序.............................................................................................13 3.3 按键扫描程序.............................................................................................15 3.4 计价管理程序.............................................................................................21 3.4.1 PWM管理程序......................................................................................21 3.4.2 里程计量程序.....................................................................................21
I
长春师范学院毕业论文
3.4.3 时间管理程序......................................................................................22 3.4.4 费用管理程序......................................................................................22 3.4.5 用户界面控制程序..............................................................................25 4 调试及检测..............................................................................................................26
4.1在线调试........................................................................................................... 26
4.1.1在线调试器(PROBE)和EZ-PROBE简介.................................................26 4.2 SPCE061A的检测.............................................................................................27 4.2.1程序下载.............................................................................. ....................27 4.2.2检测...........................................................................................................28 5 设计时应注意的问题.............................................................................................29 6 计价器发展前景.....................................................................................................29 7 结语语.....................................................................................................................30 8 参考文献.................................................................................................................................31
II