r232、r485無線數(shù)據(jù)通信系統(tǒng)設(shè)計.doc
約46頁DOC格式手機打開展開
r232、r485無線數(shù)據(jù)通信系統(tǒng)設(shè)計,r232、r485無線數(shù)據(jù)通信系統(tǒng)設(shè)計3.3萬字46頁有詳細(xì)電路圖,程序源碼及程序框圖摘要隨著電網(wǎng)規(guī)模的擴大和全國聯(lián)網(wǎng)的發(fā)展,電力系統(tǒng)中投入電網(wǎng)的各種保護(hù)、自動裝置等設(shè)備越來越多,通信子系統(tǒng)在其中起著重要作用。在電力系統(tǒng)通信領(lǐng)域,各種新穎先進(jìn)的通信技術(shù)層出不窮,大大提高了電力系統(tǒng)自動化程度。由于微電子技術(shù)、微波技術(shù)、光...
內(nèi)容介紹
此文檔由會員 劉偉平 發(fā)布
R232、R485無線數(shù)據(jù)通信系統(tǒng)設(shè)計
3.3萬字 46頁
有詳細(xì)電路圖,程序源碼及程序框圖
摘要
隨著電網(wǎng)規(guī)模的擴大和全國聯(lián)網(wǎng)的發(fā)展,電力系統(tǒng)中投入電網(wǎng)的各種保護(hù)、自動裝置等設(shè)備越來越多,通信子系統(tǒng)在其中起著重要作用。在電力系統(tǒng)通信領(lǐng)域,各種新穎先進(jìn)的通信技術(shù)層出不窮,大大提高了電力系統(tǒng)自動化程度。由于微電子技術(shù)、微波技術(shù)、光纖通信技術(shù)的發(fā)展,對于數(shù)字信號的傳輸出現(xiàn)了不同的通信方式,一般的總線方式主要用于數(shù)據(jù)量少的通信系統(tǒng),而光纖系統(tǒng)主要用于數(shù)據(jù)量大的通信系統(tǒng)中,如圖像信息等。然而,這些通信模式在工作的過程中,都需要敷設(shè)通信電纜或光纜,這給整個系統(tǒng)的安裝和維護(hù)都帶來了不便,尤其是對于變電站的一次高壓系統(tǒng)的監(jiān)測。因此,設(shè)計一種無線數(shù)據(jù)通信系統(tǒng)是非常有必要的。本文在深入了解單片機和各通信接口的工作原理的基礎(chǔ)之上,對單片機的通信接口電路進(jìn)行了設(shè)計,并編制了相應(yīng)的通信軟件。整個無線數(shù)據(jù)通信系統(tǒng)由單片機為核心的下位機和計算機組成,其通信接口分為TTL、RS485、RS232形式。
關(guān)鍵字:RS232;RS485;P89V51RD2單片機;無線數(shù)據(jù)通信;串行通信
Abstract
With the expansion and development of scale of electrical power net, a lot of power protection systems and automatic equipments are used, so that the effect of communication in power net become more and more important. In the field of power system communication, various advanced communication technologies are innovative, which improves the degree of automation of power systems greatly. With the development of microelectronic technology, microwave technology and optical fiber communications technology, two main communication models are often used in practice. One is Bus communication model, which is always used in small data quantity. The other is fiber communication model, which is used in large data quantity, such as image data. However, the short of both communication models is needed to lay the communication cable or fiber cable in the field, which result that the whole measurement system can not be installed and maintained conveniently. Therefore, it is necessary to build a wireless communication in the field. Base on studying the principles of P89V51RD2 and all kinds of communication interface, the interface circuits between P89V51RD2 and communication modules are designed, and control program is compiled. The whole communication is carried out between computer and MCU, and the interfaces in communication system are TTL, RS232 and RS485 respectively.
Key Words: RS232; RS485; MCU; Wireless communication; Serial communications
目錄
1 引言 1
2 概述 2
2.1 常用的通信方式概述 2
2.1.1 RS232、RS422與RS485串行接口通信 2
2.1.2 電力線載波通信(Power Ling Carrier,簡稱PLC) 2
2.1.3 脈動控制技術(shù)(Ripple Control) 3
2.1.4 工頻控制技術(shù) 3
2.1.5 電纜通信 3
2.1.6 光纖通信 3
2.1.7 現(xiàn)場總線(Field Bus) 4
2.1.8 無線電通信 5
2.1.9 電話線通信 6
2.1.10 微波中繼通信 7
2.1.11 衛(wèi)星通信 7
2.2 上位機和下位機 7
2.3 串行通信 7
2.3.1 異步通信 8
2.3.2 同步通信 8
3 無線數(shù)據(jù)通信系統(tǒng)硬件系統(tǒng)選擇 9
3.1 單片機 9
3.1.1 單片機概述 9
3.1.2 單片機選擇標(biāo)準(zhǔn) 9
3.1.3 P89V51RD2簡介 10
3.1.4 定時器/計數(shù)器0和1 12
3.1.5 定時器2 14
3.2 串行接口 16
3.3.1 方式0 17
3.3.2 方式1 17
3.3.3 方式2 17
3.3.4 方式3 18
3.3 無線數(shù)據(jù)傳輸模塊的選擇 18
3.4 RS232/RS485接口芯片 20
4 無線數(shù)據(jù)通信系統(tǒng)接口電路設(shè)計 21
4.1 單片機和RS232接口電路設(shè)計 21
4.1.1 RS232標(biāo)準(zhǔn)簡介 21
4.1.2 RS232接口電路圖 24
4.2 RS485接口 26
4.2.1 RS485標(biāo)準(zhǔn)簡介 26
4.2.2 RS485接口電路圖 26
5 通信程序設(shè)計 28
5.1 波特率設(shè)置 28
5.1.1 波特率介紹 28
5.1.2 定時器T1溢出率的計算 28
5.1.3 時間常數(shù)的設(shè)置 29
5.2 查詢方式發(fā)送數(shù)據(jù)子程序設(shè)計 29
5.3 接收子程序:查詢方式 32
5.4 接收子程序:中斷方式 36
6 總結(jié) 40
6.1 結(jié)論 40
6.2 展望 40
致謝 41
參考文獻(xiàn) 42
參考文獻(xiàn)
[1]張永健,高亮.電網(wǎng)監(jiān)控與調(diào)度自動化[M].北京:中國電力出版社
[2]陳劍秋,孫國彬.光纖通信技術(shù)的應(yīng)用與發(fā)展[J].安徽電力科技信息
[3]孟曉寧,王永斌,孫建榮.基于GPRS的無線數(shù)據(jù)通信及其應(yīng)用前景[J],現(xiàn)代電子技術(shù)
3.3萬字 46頁
有詳細(xì)電路圖,程序源碼及程序框圖
摘要
隨著電網(wǎng)規(guī)模的擴大和全國聯(lián)網(wǎng)的發(fā)展,電力系統(tǒng)中投入電網(wǎng)的各種保護(hù)、自動裝置等設(shè)備越來越多,通信子系統(tǒng)在其中起著重要作用。在電力系統(tǒng)通信領(lǐng)域,各種新穎先進(jìn)的通信技術(shù)層出不窮,大大提高了電力系統(tǒng)自動化程度。由于微電子技術(shù)、微波技術(shù)、光纖通信技術(shù)的發(fā)展,對于數(shù)字信號的傳輸出現(xiàn)了不同的通信方式,一般的總線方式主要用于數(shù)據(jù)量少的通信系統(tǒng),而光纖系統(tǒng)主要用于數(shù)據(jù)量大的通信系統(tǒng)中,如圖像信息等。然而,這些通信模式在工作的過程中,都需要敷設(shè)通信電纜或光纜,這給整個系統(tǒng)的安裝和維護(hù)都帶來了不便,尤其是對于變電站的一次高壓系統(tǒng)的監(jiān)測。因此,設(shè)計一種無線數(shù)據(jù)通信系統(tǒng)是非常有必要的。本文在深入了解單片機和各通信接口的工作原理的基礎(chǔ)之上,對單片機的通信接口電路進(jìn)行了設(shè)計,并編制了相應(yīng)的通信軟件。整個無線數(shù)據(jù)通信系統(tǒng)由單片機為核心的下位機和計算機組成,其通信接口分為TTL、RS485、RS232形式。
關(guān)鍵字:RS232;RS485;P89V51RD2單片機;無線數(shù)據(jù)通信;串行通信
Abstract
With the expansion and development of scale of electrical power net, a lot of power protection systems and automatic equipments are used, so that the effect of communication in power net become more and more important. In the field of power system communication, various advanced communication technologies are innovative, which improves the degree of automation of power systems greatly. With the development of microelectronic technology, microwave technology and optical fiber communications technology, two main communication models are often used in practice. One is Bus communication model, which is always used in small data quantity. The other is fiber communication model, which is used in large data quantity, such as image data. However, the short of both communication models is needed to lay the communication cable or fiber cable in the field, which result that the whole measurement system can not be installed and maintained conveniently. Therefore, it is necessary to build a wireless communication in the field. Base on studying the principles of P89V51RD2 and all kinds of communication interface, the interface circuits between P89V51RD2 and communication modules are designed, and control program is compiled. The whole communication is carried out between computer and MCU, and the interfaces in communication system are TTL, RS232 and RS485 respectively.
Key Words: RS232; RS485; MCU; Wireless communication; Serial communications
目錄
1 引言 1
2 概述 2
2.1 常用的通信方式概述 2
2.1.1 RS232、RS422與RS485串行接口通信 2
2.1.2 電力線載波通信(Power Ling Carrier,簡稱PLC) 2
2.1.3 脈動控制技術(shù)(Ripple Control) 3
2.1.4 工頻控制技術(shù) 3
2.1.5 電纜通信 3
2.1.6 光纖通信 3
2.1.7 現(xiàn)場總線(Field Bus) 4
2.1.8 無線電通信 5
2.1.9 電話線通信 6
2.1.10 微波中繼通信 7
2.1.11 衛(wèi)星通信 7
2.2 上位機和下位機 7
2.3 串行通信 7
2.3.1 異步通信 8
2.3.2 同步通信 8
3 無線數(shù)據(jù)通信系統(tǒng)硬件系統(tǒng)選擇 9
3.1 單片機 9
3.1.1 單片機概述 9
3.1.2 單片機選擇標(biāo)準(zhǔn) 9
3.1.3 P89V51RD2簡介 10
3.1.4 定時器/計數(shù)器0和1 12
3.1.5 定時器2 14
3.2 串行接口 16
3.3.1 方式0 17
3.3.2 方式1 17
3.3.3 方式2 17
3.3.4 方式3 18
3.3 無線數(shù)據(jù)傳輸模塊的選擇 18
3.4 RS232/RS485接口芯片 20
4 無線數(shù)據(jù)通信系統(tǒng)接口電路設(shè)計 21
4.1 單片機和RS232接口電路設(shè)計 21
4.1.1 RS232標(biāo)準(zhǔn)簡介 21
4.1.2 RS232接口電路圖 24
4.2 RS485接口 26
4.2.1 RS485標(biāo)準(zhǔn)簡介 26
4.2.2 RS485接口電路圖 26
5 通信程序設(shè)計 28
5.1 波特率設(shè)置 28
5.1.1 波特率介紹 28
5.1.2 定時器T1溢出率的計算 28
5.1.3 時間常數(shù)的設(shè)置 29
5.2 查詢方式發(fā)送數(shù)據(jù)子程序設(shè)計 29
5.3 接收子程序:查詢方式 32
5.4 接收子程序:中斷方式 36
6 總結(jié) 40
6.1 結(jié)論 40
6.2 展望 40
致謝 41
參考文獻(xiàn) 42
參考文獻(xiàn)
[1]張永健,高亮.電網(wǎng)監(jiān)控與調(diào)度自動化[M].北京:中國電力出版社
[2]陳劍秋,孫國彬.光纖通信技術(shù)的應(yīng)用與發(fā)展[J].安徽電力科技信息
[3]孟曉寧,王永斌,孫建榮.基于GPRS的無線數(shù)據(jù)通信及其應(yīng)用前景[J],現(xiàn)代電子技術(shù)