只用電腦上的并口(打印機接口)不需任何外圍元件燒錄M8芯片的方法!! 只需要連接4根數據和1根地線一共5條線,無需任何電阻電容。 前提您的電腦上要有并口(打印機接口)。 并口與M8的鏈接,我這里用說明和圖片示意兩種方式給大家描述 。 先鏈接并口25針里面的12腳和2腳。 25腳是地,接在M8的8腳或者22腳。如果是在線下載可以連接PCB上任意一點接地點。 10腳是MISO,接在M8的18腳(GandF的設計中大部分也在三線按鍵的接口里) 9腳是RES,接在M8的第1腳 7腳是MOSI, 接在M8的17腳(GandF的設計中大部分也在三線按鍵的接口里) 6腳是SCK,接在M8的19腳(GandF的設計中大部分也在三線按鍵的接口里)
上傳時間: 2013-10-29
上傳用戶:gai928943
本內容介紹了IO模擬串口通訊的實現方法及實例分析
上傳時間: 2013-11-11
上傳用戶:jiwy
第一章:MCS-51系列單片機的存儲結構(4學時) ① 掌握內部數據寄存器RAM的結構、用途和特點; ② 程序存儲器ROM的結構特點,編程中應注意的問題; ③ 片內、外程序存儲器的確定方法。 .. 第二章:MCS-51單片機指令系統及時序(4學時) ① 111條指令的功能分類; ② 指令的尋址方式; ③ 偽指令及匯編語言源程序的格式; ④ 與指令的相關時序。 第三章:MCS-51單片機內部模塊的功能介紹(8學時) ① 內部并行I/O端口的結構特點、使用中的注意事項; ② 定時/計數器的2種工作方式、4種計數模式; ③ 串行接口的4種工作模式的設定及波特率的計算; ④ 中斷系統的結構、中斷響應的過程和編程方法。 .. 第四章:MCS-51單片機系統的擴展及應用(8學時); ① 系統擴展的幾種方法; ② 外部程序、數據存儲器的擴展; ③ A/D、D/A轉換器與單片機的接口電路及編程方法; ④ 鍵盤掃描/動態顯示接口電路; ⑤ 單片機的監控電路等。
上傳時間: 2013-10-17
上傳用戶:熊少鋒
為解決當前計算機串行通訊接口只有USB,難以滿足舊型號設備或某些單片機要求RS232通訊的問題,設計出兩款RS232/USB電路。采用CH341A與MAX223集成電路芯片構建標準9線RS232/USB通用接口轉換器,無需編程。采用CH341A與PIC16F877A構建單片機與計算機之間的USB通訊電路,軟件遵循RS232通訊協議,硬件進行電平轉換。實際使用表明,這兩款產品與計算機端Windows 操作系統下的串口應用程序完全兼容,且通訊過程中無握手失敗現象。 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除外),但由于其內部存儲單元及端口有限,很多情況下難以滿足實際需求。為此介紹一種新的擴展方法,將數據線與地址線合并使用,通過軟件控制的方法實現數據線與地址線功能的分時轉換,數據線不僅用于傳送數據信號,還可作為地址線、控制線,用于傳送地址信號和控制信號,從而實現單片機與存儲器件的有效連接。以單片機片外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
在嵌入式系統中,嵌入式CPU往往要通過各種串行數據總線與“外界”進行通信。在應用中,異步的串行數據通信用得較多,而通用異步收發器UART(Universal Asynchronous Receiver Transmitter)在其中扮演著重要角色:完成數據的串并轉換,即把并行數據按照通信波特率轉化為通信協議中規定的串行數據流,也可從串行數據流中取出有用數據轉變為并行數據。而UART與CPU接口簡單,CPU只需通過執行讀寫操作即可完成收發數據,從而完成與外界的通信。有許多現成的芯片可以實現UART的功能,如常用的Intel8250/8251接口芯片就可以作為RS232、RS422串口的UART控制芯片。
上傳時間: 2013-11-25
上傳用戶:www240697738
模塊結構框圖和功能描述 模塊結構框圖如圖:采用8位單片機89C52,時鐘電路使用片內時鐘振蕩器,具有上電復位和手動按鍵復位功能,外接WDG復位電路。通過并行總線外擴了128KWSRM和64K的FLASHROM;串行擴展:通過RS-232連接了UART口;通過跳線器可選兩個IO口來虛擬I2C總線,并外接帶I2C總線的EEPROM和RTC。數據總線地址總線經總線驅動后引出到總線插槽與其他模塊相連。模塊的譯碼控制電路由一片CPLD來完成。
上傳時間: 2013-11-11
上傳用戶:maricle
介紹了基于單片機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