為解決當(dāng)前計算機串行通訊接口只有USB,難以滿足舊型號設(shè)備或某些單片機要求RS232通訊的問題,設(shè)計出兩款RS232/USB電路。采用CH341A與MAX223集成電路芯片構(gòu)建標(biāo)準(zhǔn)9線RS232/USB通用接口轉(zhuǎn)換器,無需編程。采用CH341A與PIC16F877A構(gòu)建單片機與計算機之間的USB通訊電路,軟件遵循RS232通訊協(xié)議,硬件進行電平轉(zhuǎn)換。實際使用表明,這兩款產(chǎn)品與計算機端Windows 操作系統(tǒng)下的串口應(yīng)用程序完全兼容,且通訊過程中無握手失敗現(xiàn)象。 Abstract: To solve the problem that current computer serial communication only with USB interface can not satisfy with the old type equipments or MCU to communicate with RS232, two kinds of RS232/USB circuit were designed.CH341A and MAX223 integrated circuit chips were used to create a standard 9-line RS232/USB universal interface convertor without programme. CH341A and PIC16F877A chips were adopted to build the USB communication circuit between computers and MCU. The software follows RS232 communication protocol, and the hardware converts electrical levels. Actual practices indicate that the two manufactures are compatible with serial application program of Windows operation system completely,and get avoid of handshake lost.
上傳時間: 2013-11-03
上傳用戶:siying
詳細(xì)介紹工控軟件組態(tài)王與單片機多機串口通訊的設(shè)計原理。分析組態(tài)王提供的直接與單片機串口通信方法的優(yōu)點,給出系統(tǒng)基于RS-485總線傳輸?shù)慕涌陔娐吩韴D。根據(jù)組態(tài)王提供的通訊協(xié)議和單片機多機串口通訊的原理,給出程序設(shè)計流程與思路。 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
介紹了基于單片機C8051F020的通用串口適配器的設(shè)計與實現(xiàn)方法,即由單片機控制的智能化一對多口收發(fā)信號轉(zhuǎn)換器。通過采用C51對單片機進行編程,控制與RS-232(標(biāo)準(zhǔn)RS-232電平)、RS232(TTL電平)、RS-422接口的數(shù)據(jù)通信;采用C++ Builder作為開發(fā)平臺,通過RS-232接口實現(xiàn)上位機對適配器各個通信端口的控制。 Abstract: Design and realization of a universal serial port adapter based on the MCU C8051F020 are introduced.The adapter is an intelligent one-to-more receiving and transmitting signal converter controlled by the MCU. By programming the MCU with the language C51,MCU control data communication between the MCU and RS-232(RS-232 level),RS-232(TTL level),RS-422 port; Using C++ Builder as the development plane, by one RS232 port, the upper PC can control each of the communication port of the adapter.
上傳時間: 2013-11-19
上傳用戶:hebanlian
串口與單片機通訊問題
上傳時間: 2013-11-12
上傳用戶:wbwyl
將AVR上的隊列串口驅(qū)動程序修改后,運行在STM32開發(fā)板,采用中斷方式接收和中斷發(fā)送,并加入了緩沖收發(fā)隊列操作。由于該驅(qū)動是用來操作西門子的TC35或MC55等通信模塊,所以加入了“等待串口接收完成”函數(shù),該函數(shù)需要一個10ms的定時進行計數(shù)累加。
上傳時間: 2013-11-11
上傳用戶:kaixinxin196
歡迎使用液晶串口燒錄器,使用前請詳細(xì)閱讀以下使用說明! 液晶串口燒錄器是專業(yè)針對LCDMCU燒錄更新的工具,工作原理:通過PC機COM口(串口)將LCD MCU語言程序直接寫入驅(qū)動主板MCU中去。其整個過程只須30秒鐘時間。根據(jù)你的電腦配置不同可能所用時間有所不同。 液晶串口燒錄器是,具有速度快,性能穩(wěn)定、電路安全、功耗較低等特點,電路采用5V驅(qū)動主板電源作為供電,再經(jīng)內(nèi)部穩(wěn)壓電路處理后為整機電路提供能量,保證了電路的穩(wěn)定性!整機電路采用多重保護,功耗:0.05W。
上傳時間: 2013-10-30
上傳用戶:baiom
基于M ult isim 10 仿真軟件, 設(shè)計單片機的虛擬串口驅(qū)動LCD1602 液晶電路。實現(xiàn)了虛擬串口擴展并行輸出的功能。該設(shè)計適用單片機UART 串口被占用時, 以最少的單片機IöO 口驅(qū)動LCD1602, 滿足顯示電路中復(fù)雜信息的需求。與傳統(tǒng)的設(shè)計手段相比, 在M ult isim 10 平臺支撐下, 設(shè)計電路更方便快捷, 并可通過仿真結(jié)果直接觀測和驗證設(shè)計電路是否達到要求, 具有省時、低耗、高效的優(yōu)越性。
上傳時間: 2013-10-11
上傳用戶:xywhw1
配套學(xué)習(xí)板:WJ-V4.0 AVR+51開發(fā)板 課程簡介串口應(yīng)用簡介開發(fā)板串行口簡介串口相關(guān)功能寄存器功能講解串行口工作方式串行口波特率的計算串行口應(yīng)用流程實例練習(xí)課后作業(yè)
上傳時間: 2013-10-25
上傳用戶:ecooo
C8051F單片機串口IAP原理
上傳時間: 2013-11-17
上傳用戶:我們的船長
模擬串口就是利用51的兩個輸入輸出引腳如P1.0和P1.1,置1或0分別代表高低電平,也就是串口通信中所說的位,如起始位用低電平,則將其置0,停止位為高電平,則將其置1,各種數(shù)據(jù)位和校驗位則根據(jù)情況置1或置0。至于串口通信的波特率,說到底只是每位電平持續(xù)的時間,波特率越高,持續(xù)的時間越短。如波特率為9600BPS,即每一位傳送時間為1000ms/9600=0.104ms,即位與位之間的延時為為0.104毫秒。單片機的延時是通過執(zhí)行若干條指令來達到目的的,因為每條指令為1-3個指令周期,可即是通過若干個指令周期來進行延時的,單片機常用11.0592M的的晶振,現(xiàn)在我要告訴你這個奇怪?jǐn)?shù)字的來歷。用此頻率則每個指令周期的時間為(12/11.0592)us,那么波特率為9600BPS每位要間融多少個指令周期呢?
上傳時間: 2013-10-29
上傳用戶:zw380105939
蟲蟲下載站版權(quán)所有 京ICP備2021023401號-1