本文介紹了利用MATLAB儀器實(shí)現(xiàn)MCU串行通信的方法:
上傳時(shí)間: 2013-11-09
上傳用戶:gxmm
單片機(jī)遠(yuǎn)程通信的電路設(shè)計(jì)
標(biāo)簽: 單片機(jī) 遠(yuǎn)程通信 電路設(shè)計(jì)
上傳時(shí)間: 2013-11-29
上傳用戶:cuiyashuo
在理論分析循環(huán)碼編碼和譯碼基本原理的基礎(chǔ)上,提出了基于單片機(jī)系統(tǒng)的(24,16)循環(huán)碼軟件實(shí)現(xiàn)編碼、譯碼的方案。仿真結(jié)果表明(24,16)循環(huán)碼能有效地克服來自通訊信道的干擾,保證數(shù)據(jù)通信的可靠及系統(tǒng)的穩(wěn)定,使誤碼率大幅度降低。本論文對(duì)(24,16)循環(huán)碼的研究結(jié)果表明,可以有效地降低錯(cuò)誤概率和提高系統(tǒng)的吞吐量,實(shí)現(xiàn)糾錯(cuò)僅需要在接收端增加有限的存儲(chǔ)空間和計(jì)算復(fù)雜度,具有一定的實(shí)用價(jià)值。 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.
標(biāo)簽: 24 16 單片機(jī)系統(tǒng) 循環(huán)碼
上傳時(shí)間: 2013-11-09
上傳用戶:gaoliangncepu
為解決電致變色器件的顏色變化受外界環(huán)境顏色控制的問題,設(shè)計(jì)了一種基于單片機(jī)的便攜式顏色自適應(yīng)識(shí)別電路。與傳統(tǒng)顏色識(shí)別電路相比較,該電路利用數(shù)字式的顏色傳感器來獲取外界環(huán)境顏色,產(chǎn)生的數(shù)字顏色信號(hào)易于單片機(jī)進(jìn)行處理。在電路中,下位機(jī)部分主要負(fù)責(zé)獲取電致變色器件變色參數(shù)及控制電致變色器件的顏色變化;而上位機(jī)部分主要負(fù)責(zé)把下位機(jī)獲取的電致變色器件變色參數(shù)進(jìn)行電壓到顏色的曲線擬合,并通過藍(lán)牙通信把擬合曲線參數(shù)傳遞給下位機(jī)。結(jié)果表明,該電路能自動(dòng)根據(jù)環(huán)境顏色提供-4~4 V范圍步進(jìn)為0.1 V的電壓來驅(qū)動(dòng)電致變色器件的顏色顯示,與傳統(tǒng)的顏色識(shí)別電路設(shè)計(jì)相比,識(shí)別的精度和速度都得到了明顯改善。 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.
上傳時(shí)間: 2013-11-09
上傳用戶:franktu
在通信系統(tǒng)中從多檢錯(cuò)手段中,CRC是非常著名的一種。CRC-全稱循環(huán)冗余校驗(yàn)是對(duì)數(shù)據(jù)塊校驗(yàn)的一種高效的差錯(cuò)控制方法。在單片機(jī)通信系統(tǒng)設(shè)計(jì)過程中,當(dāng)傳輸距離較遠(yuǎn)或是采用無線傳輸時(shí),為了保證高效而無錯(cuò)地傳輸數(shù)據(jù),必須對(duì)數(shù)據(jù)進(jìn)行檢錯(cuò),從性能和成本上考慮,采用CRC校驗(yàn)算法遠(yuǎn)優(yōu)于奇遇校驗(yàn)和算術(shù)和校驗(yàn)等方法。CRC的計(jì)算有兩種方法,一種是采用專門的硬件,另一種就是軟件方法。對(duì)于小型低成本的51單片機(jī)系統(tǒng)而言,常常需要在沒有相關(guān)硬件的支持下實(shí)現(xiàn)CRC校驗(yàn),也即通過軟件來完成CRC計(jì)算(CRC算法)。 這里給出了3種算法,從性能和成本上考慮,它們的適用范圍也稍有不同:第一種適用于單片機(jī)程序存儲(chǔ)空間較小但CRC計(jì)算速度要求不高的情況;第二種適用于程序存儲(chǔ)空間較大且CRC計(jì)算速度要求較高的情況;最后一種適用于程序存儲(chǔ)空間不太大,且CRC計(jì)算速度要求適中的情況。
標(biāo)簽: CRC 單片機(jī) 通信系統(tǒng) 算法
上傳時(shí)間: 2014-12-26
上傳用戶:dongbaobao
單片機(jī)雙工通信時(shí)用到的校驗(yàn)方式 Ø奇偶校驗(yàn)原理:通過計(jì)算數(shù)據(jù)中“1”的個(gè)數(shù)是奇數(shù)還是偶數(shù)來判斷數(shù)據(jù)的正確性。在被校驗(yàn)的數(shù)據(jù)后加一位校驗(yàn)位或校驗(yàn)字符用作校驗(yàn)碼實(shí)現(xiàn)校驗(yàn)。 Ø校驗(yàn)位的生成方法 Ø奇校驗(yàn):確保整個(gè)被傳輸?shù)臄?shù)據(jù)中“1”的個(gè)數(shù)是奇數(shù)個(gè),即載荷數(shù)據(jù)中“1”的個(gè)數(shù)是奇數(shù)個(gè)時(shí)校驗(yàn)位填“0”,否則填“1”; 偶校驗(yàn):確保整個(gè)被傳輸?shù)臄?shù)據(jù)中“1”的個(gè)數(shù)是偶數(shù)個(gè),即載荷數(shù)據(jù)中“1”的個(gè)數(shù)是奇數(shù)個(gè)時(shí)校驗(yàn)位填“1”,否則填“0”
標(biāo)簽: 單片機(jī) 雙工通信 校驗(yàn)方式
上傳時(shí)間: 2013-10-16
上傳用戶:天誠24
第一章 數(shù)據(jù)通信基礎(chǔ) 第二章 通用串行通信標(biāo)準(zhǔn)和通用MODEM命令 第三章 嵌入式匯編語言開發(fā)通信程序 第四章 MSCOMM控件應(yīng)用 第五章 線程開發(fā)... ......................
上傳時(shí)間: 2013-10-14
上傳用戶:swaylong
Linear 公司的LTC4310是絕緣的雙向I2C總線通信器件,每個(gè)器件可把I2C邏輯狀態(tài)編碼成信號(hào),通過絕緣層傳輸?shù)搅硪粋€(gè)器件.接收器件解碼,并驅(qū)動(dòng)I2C總線到適當(dāng)?shù)拇_邏輯狀態(tài).主要用在絕緣的I2C, SMBus和PMBus 接口,絕緣電源,以太網(wǎng)供電和正到負(fù)電源通信.本文介紹了LTC4310主要特性,典型應(yīng)用以及多種應(yīng)用電路框圖.
上傳時(shí)間: 2013-11-02
上傳用戶:trepb001
為提高溫度測(cè)量效率,降低系統(tǒng)的成本,擴(kuò)展傳輸距離,設(shè)計(jì)出一種新型溫度采集系統(tǒng)。單片機(jī)通過控制具有單總線方式的溫度傳感器DS18B20實(shí)現(xiàn)對(duì)溫度的測(cè)量,同時(shí)單片機(jī)通過控制具有單總線方式300~450MHz頻率范圍內(nèi)的MAX7044與MAX7033無線發(fā)射與接收芯片實(shí)現(xiàn)溫度數(shù)據(jù)的無線傳輸。與傳統(tǒng)溫度采集系統(tǒng)相比,該系統(tǒng)利用單總線方式連接,采用無線傳輸方式實(shí)現(xiàn)遠(yuǎn)距離通信,易于系統(tǒng)的集成與擴(kuò)展。實(shí)驗(yàn)結(jié)果表明,該系統(tǒng)結(jié)構(gòu)簡(jiǎn)單、方便移植,能夠同時(shí)實(shí)現(xiàn)多達(dá)上百點(diǎn)溫度的測(cè)量與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.
標(biāo)簽: 單總線 無線溫度 采集 系統(tǒng)設(shè)計(jì)
上傳時(shí)間: 2013-10-29
上傳用戶:515414293
詳細(xì)介紹工控軟件組態(tài)王與單片機(jī)多機(jī)串口通訊的設(shè)計(jì)原理。分析組態(tài)王提供的直接與單片機(jī)串口通信方法的優(yōu)點(diǎn),給出系統(tǒng)基于RS-485總線傳輸?shù)慕涌陔娐吩韴D。根據(jù)組態(tài)王提供的通訊協(xié)議和單片機(jī)多機(jī)串口通訊的原理,給出程序設(shè)計(jì)流程與思路。 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.
標(biāo)簽: 工控軟件 單片機(jī) 串口通訊 多機(jī)
上傳時(shí)間: 2013-12-19
上傳用戶:tecman
蟲蟲下載站版權(quán)所有 京ICP備2021023401號(hào)-1