单片机出租车计价器设计

  • 格式:doc
  • 大小:1.19 MB
  • 文档页数:38

四川师范大学成都学院本科毕业设计

I 单片机出租车计价器设计

摘 要:出租车计价器是出租车营运收费的专用智能仪表,目前市面所使用的计价器大都功能较少,这给出租车行业的服务质量及管理带来一定影响;而功能齐全的计价器大都采用双CPU结构,这就提高了计价器的生产成本。从加强出租车行业管理及服务质量并且节约成本出发,本设计介绍了一种以AT89C51单片机为核心的,具有具有计价、存储、打印等的多功能出租车计价器,能够很好的满足市场对出租车计价器的要求。本设计的目标就是通过对现有计价器的分析,解决计价器的现存问题,同时完成具有打印功能的新型计价器的硬件及软件设计.文中给出了硬件电路图及主程序流程图,阐述了软硬件的设计过程。文中还对TPμp-16A微型打印机与AT89C51单片机的接口电路设计原理对应用TPp-16A的图形打印方式实现汉字字符打印的软件控制方法进行了详细论述,该接口电路设计占用单片机系统资源少、软件控制方便、运行可靠稳定;介绍了MCS-51单片机内部计数器/定时器的基本结构及其基本功能,介绍了计价器利用这一特性实现计价器的计时收费;介绍了AT24C02串行E2PROM的接口程序的设计,并给出了接口程序的源程序;介绍点阵液晶显示模块的原理,并结合一个典型的应用实例阐述其与单片机的接口及相应的软件编程;还介绍了霍尔传感器的原理、霍尔传感器的种类以及霍尔效应的基本原理。

Single slice the machine rent car account

the price machinedesign 四川师范大学成都学院本科毕业设计

II

Abstract :With the deepening of reforming and opening of city . The taxicab trades was

expanded rapidly.the number of factory that product taximeter also increased. Our aim is

to analyze the taxi–meter , solve the problems , and design the hardware and software of

a new taxi–meter with printing function . Hardware - circuit diagrams and main program

flow chart are gived . This article also discusses the process of designing software and

hardware system. .This article introduces a kind of multi-function taxi-meter based on

single chip microcomputer.this kind of taxi-meter have calculate fare function , stere ,

print function and so on .Introduction is made to the designing principle for the port circuit

of TPμp-16A microprinter and the AT89C51 single—chip computer.The software control

method of Chinese character printing by the graphic printing way of TPμp-16A

microprinter is discussed in detail . Using few resources of the single–chip computer ,

such a port designing is convenient for software control and works reliably and stably . In

this paper,the fundamental functions of CTC contained in MCS-51single chip

microcomputer are introduced.The principle of spot-matrix liquid crystal display module

is also described ,and its interface with single–chip microcomputer and corresponding

software programming are explained in conjunction with typical applied example . We

introduced the principle and examples of Hall sensor and Hall effect principle also.

Key words: Single Chip Computer Taxi–Meter AT24C02 Hall Sensor LCD

Microprinter Counter And Timer Control (CTC)

目 录

四川师范大学成都学院本科毕业设计

III 一、绪论 .............................................................................................................................................................. 1

二、总体设计方案 .............................................................................................................................................. 2

(一) 方案论证与比较 .................................................................................................................................. 2

(二) 总体方案 ............................................................................................................................................ 4

(三) 设计要求 .............................................................................................................................................. 4

三、系统设计 ...................................................................................................................................................... 5

(一) 电子系统的设计方法 .......................................................................................................................... 5

(二) 系统功能划分与指标分配 .................................................................................................................. 6

四、硬件开发 ...................................................................................................................................................... 7

(一) 单片机基本系统 ................................................................................................................................. 7

(二) 操作面板输入电路 ........................................................................................................................... 11

(三) 圈脉冲输入电路 ............................................................................................................................... 11

(四) 液晶显示器....................................................................................................................................... 13

(五) 微型打印机....................................................................................................................................... 14

(六) 硬件抗干扰技术应用 ....................................................................................................................... 17

五、软件设计 .................................................................................................................................................... 18