目 录
第1节 引 言·································································· 1
1. 1 出租车计价器概述········································································· 1
1. 2 本设计任务··················································································· 1
1.2.1 设计任务················································································· 1
1.2.2 设计要求················································································· 1
1. 3 系统主要功能··············································································· 2
第2节 出租车计价器硬件设计················································· 3
2.1 系统的硬件构成及功能···································································· 3
2. 2 AT89S51单片机及其引脚说明·························································· 3
2.3 AT24C02引脚图及其引脚功能··························································· 6
2. 4 AT24C02 掉电存储单元的设计························································· 6
2.5 里程计算、计价单元的设计····························································· 7
2.6 数据显示单元设计·········································································· 8
第3节 系统软件设计···························································10
3. 1 系统主程序设计············································································ 10
3. 2 定时中断程序设计········································································ 10
3. 3 里程计数中断服务程序设计···························································· 10
3.4 中途等待中断服务程序设计···························································· 10
3. 5 键盘服务程序设计·········································································10
3. 6 显示子程序服务程序设计······························································· 10
第4节 系统调试与测试结果分析·············································· 13
4. 1 使用的仪器仪表··········································································· 13
4.2 系统调试····················································································· 13
4.3 测试结果····················································································· 13
4.4 测试结果分析·············································································· 13
第5节 结束语································································· 14