P0端口由鎖存器、輸入緩沖器、切換開關、一個與非門、一個與門及場效應管驅動電路構成。再看圖的右邊,標號 為P0.X引腳的圖標,也就是說P0.X引腳可以是P0.0到P0.7的任何一位,即在P0口有8個與上圖相同的電路組成。
上傳時間: 2014-01-13
上傳用戶:fandeshun
單片機作為一種微型計算機,其內部具有一定的存儲單元(8031除外),但由于其內部存儲單元及端口有限,很多情況下難以滿足實際需求。為此介紹一種新的擴展方法,將數據線與地址線合并使用,通過軟件控制的方法實現數據線與地址線功能的分時轉換,數據線不僅用于傳送數據信號,還可作為地址線、控制線,用于傳送地址信號和控制信號,從而實現單片機與存儲器件的有效連接。以單片機片外256KB數據存儲空間的擴展為例,通過該擴展方法,僅用10個I/O端口便可實現,與傳統的擴展方法相比,可節約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.
上傳時間: 2014-12-26
上傳用戶:adada
詳細介紹工控軟件組態王與單片機多機串口通訊的設計原理。分析組態王提供的直接與單片機串口通信方法的優點,給出系統基于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
介紹了基于單片機C8051F020的通用串口適配器的設計與實現方法,即由單片機控制的智能化一對多口收發信號轉換器。通過采用C51對單片機進行編程,控制與RS-232(標準RS-232電平)、RS232(TTL電平)、RS-422接口的數據通信;采用C++ Builder作為開發平臺,通過RS-232接口實現上位機對適配器各個通信端口的控制。 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集成塊實現多個LED顯示的一種簡單方法,利用該方法設計的多路LED顯示系統具有硬件結構簡單、軟件編程容易和價格低廉的特點。關鍵詞:單片機 串行口 LED 顯示 80C31
上傳時間: 2013-12-31
上傳用戶:時代將軍
單片機的IO口控制是單片機初學者最為關心的問題,如何快速學會使用IO是初學者最為困難的地方。 眾多的教科書上面介紹了很多IO的原理,這些長篇大論讓很多初學者看起來難以理解,同時也會止步于單片機門外。我們現在所要學習的使用IO就是很簡單的使用就可以了,IO無非就是4種狀態,輸出為高、輸出為低、輸入為高、輸入為低。 我們只要把握這四個方面就可以了,先看看我們的單片機接口,單片機共有32個io。分別為P0、P1、P2、P3口,P0口如果當作IO來使用時,必須要使用上拉電阻,因為51單片機內部沒有拉這一功能。
上傳時間: 2013-11-05
上傳用戶:6546544
串口與單片機通訊問題
上傳時間: 2013-11-12
上傳用戶:wbwyl
將AVR上的隊列串口驅動程序修改后,運行在STM32開發板,采用中斷方式接收和中斷發送,并加入了緩沖收發隊列操作。由于該驅動是用來操作西門子的TC35或MC55等通信模塊,所以加入了“等待串口接收完成”函數,該函數需要一個10ms的定時進行計數累加。
上傳時間: 2013-11-11
上傳用戶:kaixinxin196
歡迎使用液晶并口燒錄器,使用前請詳細閱讀以下使用說明! 液晶并口燒錄器是專業針對LCDMCU燒錄更新的工具,工作原理:通過PC機LPT口(打印口)將LCD MCU語言程序寫入升級程序頭,再通過升級程序頭將LCDMCU語言程序寫入LCD驅動主板的FLASHROM中去。其整個過程只須一分鐘時間。 液晶并口燒錄器,具有速度快,性能穩定、電路安全、功耗較低等特點,電路采用12V外置電源作為供電,經內部穩壓電路處理后為整機電路提供能量,保證了電路的穩定性!整機電路采用多重保護,功耗:0.25W。
上傳時間: 2013-11-21
上傳用戶:rocketrevenge
歡迎使用液晶串口燒錄器,使用前請詳細閱讀以下使用說明! 液晶串口燒錄器是專業針對LCDMCU燒錄更新的工具,工作原理:通過PC機COM口(串口)將LCD MCU語言程序直接寫入驅動主板MCU中去。其整個過程只須30秒鐘時間。根據你的電腦配置不同可能所用時間有所不同。 液晶串口燒錄器是,具有速度快,性能穩定、電路安全、功耗較低等特點,電路采用5V驅動主板電源作為供電,再經內部穩壓電路處理后為整機電路提供能量,保證了電路的穩定性!整機電路采用多重保護,功耗:0.05W。
上傳時間: 2013-10-30
上傳用戶:baiom