本內(nèi)容介紹了IO模擬串口通訊的實現(xiàn)方法及實例分析
上傳時間: 2013-11-11
上傳用戶:jiwy
為了有效地提升鉛酸蓄電池的使用壽命,同時實現(xiàn)對充電過程的監(jiān)控,設(shè)計出一種用單片機控制的36 V鉛酸蓄電池充電電源。本電路采用反激式拓撲,連續(xù)電流工作模式,電源管理IC設(shè)計在電源的副邊,由ELAN公司的EM78P258N單片機模擬,是用可編程器件模擬電源管理IC,實現(xiàn)智能電源低成本化的一次成功嘗試,通過對單片機的軟件設(shè)計實現(xiàn)了充電電源的狀態(tài)顯示、充電時間控制、報警、過溫保護、過壓保護、過流保護等功能。本充電器真正的實現(xiàn)了鉛酸蓄電池的三段式充電過程,其最高輸出功率可達90 W,效率約85%,成本不到20元,具有很高的市場競爭力。 Abstract: In order to extend the life of lead-acid battery efficiently and supervise the charging process meanwhile, a 36V lead-acid battery charge powe supply controlled by microcontroller is designed. The charger is flyback switching power supply and works in CCM mode. A EM78P258N microcontroller made by ELAN microelectronics corporation is used as power management IC which is designed at the secondary circuit. The project is a successful attempt to low-cost intelligent power used microcontroller simulating power management IC. The charger also has the functions of the status reveal, charge time control, alarming, thermal protect, current limit and overvoltage protect by the software design. The circuit actually implements the three-step charge process, whose power is up to 90W and whose efficiency can get 85%. The net cost of this charger is less than 20 RMB, so that the charger is of powerful market competitiveness.
上傳時間: 2013-11-16
上傳用戶:cepsypeng
為解決當(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
摘 要: 閥門開度儀以AT89C51單片機為核心, 通過在閥門電機軸上安裝的電位計傳感器獲得閥 門電機軸的轉(zhuǎn)動角位移, 從而得出閥門的開度, 達到自動檢測的目的。詳細介紹了串行控制的10 位A /D轉(zhuǎn)換器TLC1549的特點和功能, 說明了TLC1549與AT89C51單片機在閥門開度儀中的硬件 電路和軟件程序。實踐證明, 該閥門開度儀數(shù)據(jù)采集準(zhǔn)確可靠、工作穩(wěn)定。 關(guān)鍵詞: TLC1549; AT89C51單片機; 閥門開度
上傳時間: 2013-10-14
上傳用戶:行者Xin
P0端口由鎖存器、輸入緩沖器、切換開關(guān)、一個與非門、一個與門及場效應(yīng)管驅(qū)動電路構(gòu)成。再看圖的右邊,標(biāo)號 為P0.X引腳的圖標(biāo),也就是說P0.X引腳可以是P0.0到P0.7的任何一位,即在P0口有8個與上圖相同的電路組成。
上傳時間: 2014-01-13
上傳用戶:fandeshun
單片機作為一種微型計算機,其內(nèi)部具有一定的存儲單元(8031除外),但由于其內(nèi)部存儲單元及端口有限,很多情況下難以滿足實際需求。為此介紹一種新的擴展方法,將數(shù)據(jù)線與地址線合并使用,通過軟件控制的方法實現(xiàn)數(shù)據(jù)線與地址線功能的分時轉(zhuǎn)換,數(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.
標(biāo)簽: 單片機 P0口 數(shù)據(jù)存儲器 擴展
上傳時間: 2014-12-26
上傳用戶:adada
詳細介紹工控軟件組態(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
/通過DS18B20測試當(dāng)前環(huán)境溫度, 并通過數(shù)碼管顯示當(dāng)前溫度值, 目前顯示范圍: 0.0~ +99.9度 #include #include #define uchar unsigned char #define uint unsigned int #define DATAPORT P0 //定義P0口為Led數(shù)據(jù)口 //#define SETTEMP P1 //定義P1口為設(shè)定溫度 #define SELECT P2 //定義P2口為選擇信號 sbit L1 = P1^1; //燈作為電機 sbit L2 = P1^2; sbit L3 = P1^3;
上傳時間: 2013-11-04
上傳用戶:liulinshan2010
摘要:介紹利用80C31單片機串行口、廉價的74HC164和74HC244集成塊實現(xiàn)多個LED顯示的一種簡單方法,利用該方法設(shè)計的多路LED顯示系統(tǒng)具有硬件結(jié)構(gòu)簡單、軟件編程容易和價格低廉的特點。關(guān)鍵詞:單片機 串行口 LED 顯示 80C31
上傳時間: 2013-12-31
上傳用戶:時代將軍
蟲蟲下載站版權(quán)所有 京ICP備2021023401號-1