智能化煤氣表的設計.doc
智能化煤氣表的設計, 摘 要 目前使用的機械式煤氣表存在較大的弊端,給管理部門和用戶帶來了很大的不方便,為了能從根本上解決此問題,設計一種新型的智能煤氣表收費系統(tǒng)就顯得十分必要。針對這種情況,本文設計了智能ic卡煤氣表系統(tǒng),以實現(xiàn)煤氣收費管理的電子化和信息化?! ”驹O計是基于at89s52單片機控制的煤氣計費模塊,...
![](http://img.queshao.com/images/pcgzh.gif)
![](http://preview.queshao.com/tobuy/299291.gif)
內(nèi)容介紹
此文檔由會員 秋風2013 發(fā)布智能化煤氣表的設計
摘 要
目前使用的機械式煤氣表存在較大的弊端,給管理部門和用戶帶來了很大的不方便,為了能從根本上解決此問題,設計一種新型的智能煤氣表收費系統(tǒng)就顯得十分必要。針對這種情況,本文設計了智能IC卡煤氣表系統(tǒng),以實現(xiàn)煤氣收費管理的電子化和信息化。
本設計是基于AT89S52單片機控制的煤氣計費模塊,控制簡單,設計中采用非接觸式智能卡模塊實現(xiàn)預付費功能,具有嚴謹?shù)谋Wo和防作弊功能;系統(tǒng)具備液晶顯示功能,利用RT1602液晶顯示模塊顯示余額、用氣量等數(shù)據(jù);為了保證系統(tǒng)的穩(wěn)定性和可靠性,該設計中還加入了掉電保護模塊,保護用戶數(shù)據(jù)不丟失,使計費系統(tǒng)實現(xiàn)自動化和最優(yōu)化。
關(guān)鍵詞:煤氣表,非接觸式卡,預付費,單片機
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 國際上煤氣表的發(fā)展及收費方式 2
1.2.1 國外煤氣表的現(xiàn)狀 2
1.2.2 收費方式 2
1.3 國內(nèi)IC卡煤氣表的發(fā)展 3
1.4 設計目的 3
1.5 設計中需要重點解決的問題 3
2 整體設計方案 4
2.1 系統(tǒng)組成 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 電源監(jiān)控系統(tǒng) 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 結(jié)論 24
致謝 25
參考文獻 26