智能化煤气表的设计.doc

约61页DOC格式手机打开展开

智能化煤气表的设计, 摘 要   目前使用的机械式煤气表存在较大的弊端,给管理部门和用户带来了很大的不方便,为了能从根本上解决此问题,设计一种新型的智能煤气表收费系统就显得十分必要。针对这种情况,本文设计了智能ic卡煤气表系统,以实现煤气收费管理的电子化和信息化。   本设计是基于at89s52单片机控制的煤气计费模块,...
编号:35-299291大小:629.00K
分类: 论文>通信/电子论文

内容介绍

此文档由会员 秋风2013 发布

智能化煤气表的设计

   摘  要
   目前使用的机械式煤气表存在较大的弊端,给管理部门和用户带来了很大的不方便,为了能从根本上解决此问题,设计一种新型的智能煤气表收费系统就显得十分必要。针对这种情况,本文设计了智能IC卡煤气表系统,以实现煤气收费管理的电子化和信息化。
   本设计是基于AT89S52单片机控制的煤气计费模块,控制简单,设计中采用非接触式智能卡模块实现预付费功能,具有严谨的保护和防作弊功能;系统具备液晶显示功能,利用RT1602液晶显示模块显示余额、用气量等数据;为了保证系统的稳定性和可靠性,该设计中还加入了掉电保护模块,保护用户数据不丢失,使计费系统实现自动化和最优化。

关键词:煤气表,非接触式卡,预付费,单片机
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   

The Design Of Intelligent Gas Meter
 Abstract
   The mechanical gas meter at present has a big disadvantages to the management and the users a great deal of inconvenience. In order to fundamentally solve this problem, it is very necessary to design a new type system of intelligent gas meter. In view of this situation, this paper designed an intelligent IC card gas meter systems in order to achieve the gas tariffs and the management of electronic information.
   The design is a gas billing module which based on the MCU AT89S52, the control is simple, the design take the non-contact less smart card module to achieve pre-paid functions, with have strict protection and anti-cheat functions. System use the RT1602-liquid crystal display function to show the Balance data etc. In order to ensure system stability and reliability, the design also joined the power-down protection module to protect the user data is not lost, make the system enables automated billing system and optimization.
   
Key Words: Gas meter, Non-contact card, Prepaid, Single-chip

 


目  录

1 绪论 1
  1.1 国家宏观政策 1
  1.2 国际上煤气表的发展及收费方式 2
   1.2.1 国外煤气表的现状 2
   1.2.2 收费方式 2
  1.3 国内IC卡煤气表的发展 3
  1.4 设计目的 3
  1.5 设计中需要重点解决的问题 3
2 整体设计方案 4
  2.1 系统组成 4
  2.2 整体方案论述 4
3 单元电路 5
  3.1 主控电路MCU 5
   3.1.1 主控芯片介绍 5
   3.1.2 主控电路 6
  3.2 流量测量模块 7
  3.3 显示电路 8
   3.3.1 RT1602介绍 8
3.3.1.1 RT1602引脚说明 8
3.3.1.2 RT1602指令说明 9
3.3.1.3 RT1602的读写时序 10
   3.3.2 LCD接口电路 12
  3.4 掉电存储模块 12
   3.4.1 总线的基本原理 12
   3.4.2 AT24C02介绍 14
   3.4.3 AT24C02硬件电路连接 15
  3.5 智能IC卡接口模块 15
   3.5.1 Mifare S50卡介绍 15
   3.5.2 Mifare S50卡的访问操作与命令 16
   3.5.3 读卡器模块 17
   3.5.4 硬件电路 17
  3.6 电源监控系统 18
  3.7 电磁阀控制电路 19

  3.8 煤气泄漏报警电路 20
  3.9 声光报警电路 20
4 程序设计 21
  4.1 主程序流程图 21
  4.2 非接触式卡读写模块 21
  4.3 掉电存储模块 23
  4.4 液晶显示模块 24
5 结论 24
致谢 25
参考文献 26