出租车计价器设计毕业论文
2022-03-28 20:52:42
论文总字数:23062字
摘 要
本文设计的是一个基于STC89C52单片机的出租车计价器,该计价器具有时钟功能,复位功能,数据存储功能,按键调控功能等。
论文首先介绍了出租车计价器的工作原理,并给出了计价器硬件和软件的设计。在系统硬件设计方面,分别介绍了时钟模块,里程检测模块,复位模块,按键模块,液晶显示模块,存储模块的功能及设计过程。在系统软件设计方面,介绍了主程序设计和各子程序设计,论文给出了各程序的流程图,然后介绍了各程序的编写思路和实现方法。论文最后给出了调试过程和运行结果。
关键词:出租车计价器 STC89S52 LCD1602液晶显示器 DS1302 A44E
The Design of Taxi Meter
Abstract
The design of this paper is based on the STC89C52 microcontroller, the taxi meter, the meter has a clock function,reset function, data storage function, key control functions, etc..
This paper firstly introduces the principle of the taxi meter, and gives the design of the hardware and software of the meter. In the system hardware design, the clock module, mileage detection module, reset module, key module, LCD module, memory module function and design process are introduced. In the aspect of system software design, this paper introduces the design of the main program and the design of each program, the flow chart of each program is given. At the end of the paper, the debugging process and result are given.
Key Words: Taxi meter STC89S52 LCD1602 liquid crystal display DS1302 A44E
目 录
摘 要 .......................................................................................................................................I
Abstract ....................................................................................................................................II
第一章 绪论 ...........................................................................................................................1
1.1 背景 ..............................................................................................................................1
1.2 研究现状 ......................................................................................................................1
1.3 设计任务与要求 ..........................................................................................................2
第二章 系统总体方案 .........................................................................................................3
2.1 方案比较与选择 ..........................................................................................................3
2.2 系统构成 ......................................................................................................................3
2.3 器件选择 ......................................................................................................................4
第三章 系统硬件电路设计 ...............................................................................................7
3.1 控制模块 ......................................................................................................................7
3.1.1 晶振电路 ...........................................................................................................7
3.1.2 STC89C52控制中心 ..........................................................................................8
3.2 时钟模块 ......................................................................................................................9
3.3 里程检测模块 ............................................................................................................10
3.3.1 电机驱动 .........................................................................................................11
3.3.2 霍尔传感器 .....................................................................................................11
3.4 复位模块 ....................................................................................................................12
3.5 按键模块 ....................................................................................................................13
3.6 液晶显示模块 ............................................................................................................14
3.7 存储模块 ....................................................................................................................16
第四章 系统软件设计 .......................................................................................................18
4.1 软件设计整体方案 ....................................................................................................18
4.2 主程序设计 ................................................................................................................18
4.2.1 里程计数中断程序 .........................................................................................19
4.2.2 中途等待中断程序 .........................................................................................20
4.2.3 按键程序 .........................................................................................................22
4.3 液晶显示程序 ............................................................................................................22
4.4 数据断电保护程序 ....................................................................................................23
4.5 时钟程序 ....................................................................................................................24
第五章 系统调试 ................................................................................................................25
5.1 焊接调试 ....................................................................................................................25
5.2 硬件与软件联调 ........................................................................................................25
第六章 总结 .........................................................................................................................28
参考文献 ................................................................................................................................29
致 谢 .....................................................................................................................................31
请支付后下载全文,论文总字数:23062字