為解決當前計算機串行通訊接口只有USB,難以滿足舊型號設備或某些單片機要求RS232通訊的問題,設計出兩款RS232/USB電路。采用CH341A與MAX223集成電路芯片構建標準9線RS232/USB通用接口轉換器,無需編程。采用CH341A與PIC16F877A構建單片機與計算機之間的USB通訊電路,軟件遵循RS232通訊協(xié)議,硬件進行電平轉換。實際使用表明,這兩款產品與計算機端Windows 操作系統(tǒ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
P0端口由鎖存器、輸入緩沖器、切換開關、一個與非門、一個與門及場效應管驅動電路構成。再看圖的右邊,標號 為P0.X引腳的圖標,也就是說P0.X引腳可以是P0.0到P0.7的任何一位,即在P0口有8個與上圖相同的電路組成。
上傳時間: 2014-01-13
上傳用戶:fandeshun
單片機作為一種微型計算機,其內部具有一定的存儲單元(8031除外),但由于其內部存儲單元及端口有限,很多情況下難以滿足實際需求。為此介紹一種新的擴展方法,將數(shù)據(jù)線與地址線合并使用,通過軟件控制的方法實現(xiàn)數(shù)據(jù)線與地址線功能的分時轉換,數(shù)據(jù)線不僅用于傳送數(shù)據(jù)信號,還可作為地址線、控制線,用于傳送地址信號和控制信號,從而實現(xiàn)單片機與存儲器件的有效連接。以單片機片外256KB數(shù)據(jù)存儲空間的擴展為例,通過該擴展方法,僅用10個I/O端口便可實現(xiàn),與傳統(tǒng)的擴展方法相比,可節(jié)約8個I/O端口。 Abstract: As a micro-computer,the SCM internal memory has a certain units(except8031),but because of its internal storage units and the ports are limited,in many cases it can not meet the actual demand.So we introduced a new extension method,the data line and address lines combined through software-controlled approach to realize the time-conversion functions of data lines and address lines,so the data lines not only transmited data signals,but also served as address lines and control lines to transmit address signals and control signals,in order to achieve an effective connection of microcontroller and memory chips.Take microcontroller chip with256KB of data storage space expansion as example,through this extension method,with only10I/O ports it was achieved,compared with the traditional extension methods,this method saves8I/O ports.
標簽: 單片機 P0口 數(shù)據(jù)存儲器 擴展
上傳時間: 2014-12-26
上傳用戶:adada
詳細介紹工控軟件組態(tài)王與單片機多機串口通訊的設計原理。分析組態(tài)王提供的直接與單片機串口通信方法的優(yōu)點,給出系統(tǒng)基于RS-485總線傳輸?shù)慕涌陔娐吩韴D。根據(jù)組態(tài)王提供的通訊協(xié)議和單片機多機串口通訊的原理,給出程序設計流程與思路。 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的通用串口適配器的設計與實現(xiàn)方法,即由單片機控制的智能化一對多口收發(fā)信號轉換器。通過采用C51對單片機進行編程,控制與RS-232(標準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
摘要:介紹利用80C31單片機串行口、廉價的74HC164和74HC244集成塊實現(xiàn)多個LED顯示的一種簡單方法,利用該方法設計的多路LED顯示系統(tǒng)具有硬件結構簡單、軟件編程容易和價格低廉的特點。關鍵詞:單片機 串行口 LED 顯示 80C31
上傳時間: 2013-12-31
上傳用戶:時代將軍
主要功能和特性 1 支持串口的仿真功能 2 串口中斷用戶可以使用 3 不占用定時器 2 4 完全仿真 p0 p2 口 5 支持 89C52 等嵌入式 CPU仿真 6 占用用戶堆棧 2 個字節(jié) 7 占用 1 條 I/O : P3.5 8 ISP 在線編程,在線下載 9 仿真頻率最高 33 兆 10 支持同時最多 10 個斷點 11 支持單步,斷點,全速運行 12 支持匯編,c 語言,混合調試 13 支持 KEIL C51 的 IDE 開發(fā)仿真環(huán)境 UV1 UV2 (V5.20 V6.02 V6.10 V6.12 V6.14) 14 單步執(zhí)行時間(60 毫秒) 15 程序代碼載入(可以重復裝載,無需預先擦除用戶程序空間) 16 SFR 讀取速度(128 個)200 毫秒 17 跟蹤記錄(trace record)256 條 18 可以仿真標準的 89c51 89c52 89c58 等 51 內核的單片機仿真
上傳時間: 2013-10-24
上傳用戶:ddddddos
單片機的IO口控制是單片機初學者最為關心的問題,如何快速學會使用IO是初學者最為困難的地方。 眾多的教科書上面介紹了很多IO的原理,這些長篇大論讓很多初學者看起來難以理解,同時也會止步于單片機門外。我們現(xiàn)在所要學習的使用IO就是很簡單的使用就可以了,IO無非就是4種狀態(tài),輸出為高、輸出為低、輸入為高、輸入為低。 我們只要把握這四個方面就可以了,先看看我們的單片機接口,單片機共有32個io。分別為P0、P1、P2、P3口,P0口如果當作IO來使用時,必須要使用上拉電阻,因為51單片機內部沒有拉這一功能。
上傳時間: 2013-11-05
上傳用戶:6546544
串口與單片機通訊問題
上傳時間: 2013-11-12
上傳用戶:wbwyl
將AVR上的隊列串口驅動程序修改后,運行在STM32開發(fā)板,采用中斷方式接收和中斷發(fā)送,并加入了緩沖收發(fā)隊列操作。由于該驅動是用來操作西門子的TC35或MC55等通信模塊,所以加入了“等待串口接收完成”函數(shù),該函數(shù)需要一個10ms的定時進行計數(shù)累加。
上傳時間: 2013-11-11
上傳用戶:kaixinxin196