XXXX 学院课程设计报告
课程名称: 单片机原理及应用课程设计
院 部: XXXX 学院
专业班级: 自动化 XXXX 班
学生姓名: X X
指导教师: X X X
完成时间: 20XX 年 XX 月 XX 日
报告成绩:______________________________
评阅意见:
评阅教师 日期
出
租
车
计
价
器
摘要
本电路以 AT89C52 单片机为中心附加 A44E 霍尔传感器测距,实现对出租车计价
统计,输出采用 8 段数码显示管。其中,总金额显示 4 位,单价及路程个显示两
位。该系统满足集计费、单价和路程等多种计量功能为一体的出租车计价器的实
用要求。根据出租车里程显示计价,3 公里起步价 5 元,之后 3 元/公里,用 8
位 LED 显示计价单位元.用信号源模拟里程,转换关系:用信号源模拟里程,转
换关系:3072 个脉冲/千米。 通过“计价” 键和“清 0”键开始计价和清 0,清
0 后显示“0000”。用 LED 显示行单价、路程和收费金额。
关键词:出租车计价器 单片机 AT89C52
Abstract
AT89C52 single-chip to the circuit as the central location additional
Hall sensor A44E realize Taximeter statistics, the output using a digital
display tube 8. Which shows that the total amount of 4, price and distance
display 2. The system is set to meet billing, price and distance
measurement and other functions of the utility Taximeter request. Show
that pricing based on mileage car, 3 km Pricing starts at 5 yuan, followed
by 3 yuan / km, with 8-bit LED display unit pricing. Simulated signal
source with mileage, conversion relations: analog signal source by
mileage, conversion relations: 3072 pulses / km.Through the "pricing"
button and "clearance 0" key to start pricing and clearance 0, ching 0
revealed, "0000." Line unit with LED display, the amount of distance and
fees.
Key words: Taximeter single-chip AT89C52
出租车计价器课程设计
1
目录
摘要 .................................................................
Abstract .............................................................
第一章 任务与要求 ...................................................1
1.1 任务 .........................................................1
1.2 要求 .........................................................1
1.3 目的和意义 ...................................................1
第二章 方案比较 .....................................................2
2.1 采用数字电路控制 .............................................2
2.2 采用单片机控制 ...............................................2
第三章 电路的功能单元设计 ...........................................4
3.1 里程计算、计价单元的设计 .....................................4
3.2 复位电路设计 ................................................5
3.3 数据显示单元的设计 ...........................................6
第四章 程序设计 .....................................................7
4.1 模块介绍 .....................................................7
4.1.1 主程序模块 .............................................7
4.1.2 定时中断服务程序 .......................................7
4.1.3 里程计数中断服务程序 ...................................7
4.2 程序流程图 ...................................................8
第五章 protues 仿真 .................................................9
总结致谢 ...........................................................14
心得体会 ...........................................................15
参考文献 ...........................................................15
附录 ...............................................................17
A 总体电路图 ....................................................17
B 元件清单 ......................................................18
C 源程序 ........................................................19