本文介紹了利用MATLAB儀器實現MCU串行通信的方法:
上傳時間: 2013-11-09
上傳用戶:gxmm
單片機遠程通信的電路設計
上傳時間: 2013-11-29
上傳用戶:cuiyashuo
在理論分析循環碼編碼和譯碼基本原理的基礎上,提出了基于單片機系統的(24,16)循環碼軟件實現編碼、譯碼的方案。仿真結果表明(24,16)循環碼能有效地克服來自通訊信道的干擾,保證數據通信的可靠及系統的穩定,使誤碼率大幅度降低。本論文對(24,16)循環碼的研究結果表明,可以有效地降低錯誤概率和提高系統的吞吐量,實現糾錯僅需要在接收端增加有限的存儲空間和計算復雜度,具有一定的實用價值。 Abstract: Based on analyzing the theory of encoding and decoding of cyclic code, this paper showed the schemes of encoding and decoding of(24,16)cyclic code by the software and based on microcontroller. Simulation results show that using (24,16) cyclic codes can effectively overcome the interference from communication channel, ensure the reliability and stability of data communication systems, and reduce the bit error rate greatly. The results of this paper show that by using the (24,16) cyclic code, the error rate can be reduced and the system throughput can be improved. Meanwhile, the system only needs to enlarge limited storage space and computation the complexity at the receiving end to realize error correction. Thus the (24,16) cyclic code has a practical value.
上傳時間: 2013-11-09
上傳用戶:gaoliangncepu
為解決電致變色器件的顏色變化受外界環境顏色控制的問題,設計了一種基于單片機的便攜式顏色自適應識別電路。與傳統顏色識別電路相比較,該電路利用數字式的顏色傳感器來獲取外界環境顏色,產生的數字顏色信號易于單片機進行處理。在電路中,下位機部分主要負責獲取電致變色器件變色參數及控制電致變色器件的顏色變化;而上位機部分主要負責把下位機獲取的電致變色器件變色參數進行電壓到顏色的曲線擬合,并通過藍牙通信把擬合曲線參數傳遞給下位機。結果表明,該電路能自動根據環境顏色提供-4~4 V范圍步進為0.1 V的電壓來驅動電致變色器件的顏色顯示,與傳統的顏色識別電路設計相比,識別的精度和速度都得到了明顯改善。 Abstract: In this paper, a portable adaptive circuit for color identification(PACCI) based on MCU was designed. Compared to the traditional color identification circuit, the PACCI adopts digital sensor to detect the color data from external environment and further generate digital color data, which can be processed easily by MCU. In PACCI, the slave is mainly responsible for detecting the color parameters of the corresponding elcreochromic device and further driving it. For the master, which is mainly responsible for the color curve fitting based on the parameters of the electrochromic device, and transmits the fitting parameters to the slave through the bluetooth device. The results show that the PACCI can provide the basis voltage range from -4V to 4V automatically based on the colors of external environment with step as 0.1V to drive the corresponding electrochromic device. Compared to the traditional color recognition circuit, the recognition accuracy and speed of PACCI have been improved significantly.
上傳時間: 2013-11-09
上傳用戶:franktu
在通信系統中從多檢錯手段中,CRC是非常著名的一種。CRC-全稱循環冗余校驗是對數據塊校驗的一種高效的差錯控制方法。在單片機通信系統設計過程中,當傳輸距離較遠或是采用無線傳輸時,為了保證高效而無錯地傳輸數據,必須對數據進行檢錯,從性能和成本上考慮,采用CRC校驗算法遠優于奇遇校驗和算術和校驗等方法。CRC的計算有兩種方法,一種是采用專門的硬件,另一種就是軟件方法。對于小型低成本的51單片機系統而言,常常需要在沒有相關硬件的支持下實現CRC校驗,也即通過軟件來完成CRC計算(CRC算法)。 這里給出了3種算法,從性能和成本上考慮,它們的適用范圍也稍有不同:第一種適用于單片機程序存儲空間較小但CRC計算速度要求不高的情況;第二種適用于程序存儲空間較大且CRC計算速度要求較高的情況;最后一種適用于程序存儲空間不太大,且CRC計算速度要求適中的情況。
上傳時間: 2014-12-26
上傳用戶:dongbaobao
單片機雙工通信時用到的校驗方式 Ø奇偶校驗原理:通過計算數據中“1”的個數是奇數還是偶數來判斷數據的正確性。在被校驗的數據后加一位校驗位或校驗字符用作校驗碼實現校驗。 Ø校驗位的生成方法 Ø奇校驗:確保整個被傳輸的數據中“1”的個數是奇數個,即載荷數據中“1”的個數是奇數個時校驗位填“0”,否則填“1”; 偶校驗:確保整個被傳輸的數據中“1”的個數是偶數個,即載荷數據中“1”的個數是奇數個時校驗位填“1”,否則填“0”
上傳時間: 2013-10-16
上傳用戶:天誠24
第一章 數據通信基礎 第二章 通用串行通信標準和通用MODEM命令 第三章 嵌入式匯編語言開發通信程序 第四章 MSCOMM控件應用 第五章 線程開發... ......................
上傳時間: 2013-10-14
上傳用戶:swaylong
Linear 公司的LTC4310是絕緣的雙向I2C總線通信器件,每個器件可把I2C邏輯狀態編碼成信號,通過絕緣層傳輸到另一個器件.接收器件解碼,并驅動I2C總線到適當的確邏輯狀態.主要用在絕緣的I2C, SMBus和PMBus 接口,絕緣電源,以太網供電和正到負電源通信.本文介紹了LTC4310主要特性,典型應用以及多種應用電路框圖.
上傳時間: 2013-11-02
上傳用戶:trepb001
為提高溫度測量效率,降低系統的成本,擴展傳輸距離,設計出一種新型溫度采集系統。單片機通過控制具有單總線方式的溫度傳感器DS18B20實現對溫度的測量,同時單片機通過控制具有單總線方式300~450MHz頻率范圍內的MAX7044與MAX7033無線發射與接收芯片實現溫度數據的無線傳輸。與傳統溫度采集系統相比,該系統利用單總線方式連接,采用無線傳輸方式實現遠距離通信,易于系統的集成與擴展。實驗結果表明,該系統結構簡單、方便移植,能夠同時實現多達上百點溫度的測量與500m范圍的傳輸。 Abstract: To improve the temperature measurement efficiency and reduce system cost,expansion of transmission distance,a new type of temperature acquisition system is designed.Microcontroller controlled temperature sensor DS18B20which has a single-bus achieves temperature measurement,while microcontroller by controlled the MAX7044and MAX7033chip with a single-bus and having300~450MHz radiofrequency to achieve the wireless transmission of temperature data.Compared with conventional temperature acquisition system,the system uses single-bus connected,and uses wireless transmission means to achieve long-distance communications,easy-to-system integration and expansion.The experimental results show that the system is simple,convenient transplantation,and can be implemented in as many as a hundred-point temperature measure-ment and the transmission range of500meters.
上傳時間: 2013-10-29
上傳用戶:515414293
詳細介紹工控軟件組態王與單片機多機串口通訊的設計原理。分析組態王提供的直接與單片機串口通信方法的優點,給出系統基于RS-485總線傳輸的接口電路原理圖。根據組態王提供的通訊協議和單片機多機串口通訊的原理,給出程序設計流程與思路。 Abstract: In this paper,the design principle of communication between multi-SCM and KingView by serial ports is described in detail.We analysis the advantage of method supplied by KingView,by which KingView can communicate with serial ports of SCM directly,and provide the system’s interface circuit based on the RS-485transmission line.We provide flow diagram of programming and thinking on the basis of communication protocol supplied by KingView and principle of communication among multi-SCM through serial ports.
上傳時間: 2013-12-19
上傳用戶:tecman