- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
天津职业技术师范大学
Tianjin University of Technology and Education
毕 业 设 计
专 业:应用电子技术教育
班级学号: 0712-46
学生姓名: 彭智帮
指导教师: 于万霞 副教授
二0一二 年 六 月
天津职业技术师范大学本科生毕业设计
基于FPGA的出租车计价器设计
Design of the Taximeter
Based on FPGA
专业班级:应教0712班
学生姓名: 彭智帮
指导教师:于万霞 副教授
系 别:电子工程学院
2012年06月
摘 要
出租车计价系统在生活中应用广泛,一般是利用单片机进行控制,但较易被私自改装,且故障率相对较高;而现场可编程逻辑门阵列(FPGA)具有高密度、可编程及有强大的软件支持等特点,所以设计的产品具有功能强、可靠性高、灵活性好等特点。文中给出了计费系统的整体组成框图和各系统模块的详细设计过程。本系统是基于 EPC3T144C8N芯片的出租车计费系统,采用VHDL编写程序,运用Quartus Ⅱ软件作为开发平台,进行程序仿真和设计验证,实现了出租车计价器的相关功能。系统硬件部分包括FPGA核心模块、按键模块、液晶模块、电机模块及光电测速模块。各硬件模块均给出详细原理图并详细地分析了其工作原理。软件部分包括分频模块、计费模块、计时模块、计程模块、单价模块、译码模块、按键防抖模块及液晶驱动模块。各软件模块均给出部分核心代码及其仿真波形图。设计的系统运行稳定,性能优良。本设计是模拟实际出租车计价器的工作原理,论文并未涉及汽车电子的相关讨论。
关键词:硬件描述语言;出租车计价器;液晶显示器1602;现场可编程逻辑门阵列
ABSTRACT
Taximeter is widely used in life and the core chip is MCU control. But it is easier to unauthorized alterations, and the failure rate is relatively high. The field programmable gate array (FPGA) has programmable and there is a strong software support, so the system has many advantages, such as strong functions, high reliability, flexibility etc.
The paper presents the detailed design process of the overall composition of the block diagram of the billing system and the system module. This system is based on the chip EPC3T144C8N taxi billing system with VHDL programming, the Quartus II software is used as a development platform, program simulation and verification of design Taximeter. The system hardware includes the FPGA core modules, key module, LCD module, the motor module and optoelectronic tachometer module. The detailed schematic diagram and the principle of detailed analysis are given in this paper. The software part includes frequency module, billing module, timing module, the meter module, priced modules, decoding modules, buttons, image stabilization module and LCD driver module. Every part of the core code and the simulation waveform are given. The designed system is running stable and excellent perfor
文档评论(0)