以太網(wǎng)和CAN總線應(yīng)用廣泛,但由于其通信協(xié)議不同,兩種總線器件間無法進(jìn)行數(shù)據(jù)通信,因此,設(shè)計(jì)了基于CP2200與C8051F040的以太網(wǎng)總線與CAN總線接口轉(zhuǎn)換電路,并給出部分相關(guān)硬件電路與軟件設(shè)計(jì)分析。在保證數(shù)據(jù)完整和協(xié)議可靠的前提下,通過握手協(xié)議和簡化的以太網(wǎng)協(xié)議,不僅實(shí)現(xiàn)了以太網(wǎng)數(shù)據(jù)與CAN數(shù)據(jù)的轉(zhuǎn)發(fā),同時(shí)還順利的解決了以太網(wǎng)的高速性與CAN的低速率沖突,以及兩者數(shù)據(jù)包之間的大小不同的矛盾。 Abstract: In the development of actual application, Ethernet and CAN bus are used very extensively. Owing to its various communication protocols, the communicating between two kinds of bus device can’t be carried out. Therefore, in order to solve this problem, the Ethernet-CAN bus interface circuit based on CP2200 and C8051F040 was designed in this paper, and part of the related hardware circuit and software design analysis were given. On the condition of data’s integrity and protocols’reliability, through the handshaking protocols and the simplified the Ethernet protocol, not only the data switching between CAN and Ethernet was realized, but also the differ in velocity and packet size was solved.
標(biāo)簽: C8051F040 CAN 以太網(wǎng) 轉(zhuǎn)換
上傳時(shí)間: 2013-10-15
上傳用戶:Ants
單片機(jī)作為一種微型計(jì)算機(jī),其內(nèi)部具有一定的存儲(chǔ)單元(8031除外),但由于其內(nèi)部存儲(chǔ)單元及端口有限,很多情況下難以滿足實(shí)際需求。為此介紹一種新的擴(kuò)展方法,將數(shù)據(jù)線與地址線合并使用,通過軟件控制的方法實(shí)現(xiàn)數(shù)據(jù)線與地址線功能的分時(shí)轉(zhuǎn)換,數(shù)據(jù)線不僅用于傳送數(shù)據(jù)信號(hào),還可作為地址線、控制線,用于傳送地址信號(hào)和控制信號(hào),從而實(shí)現(xiàn)單片機(jī)與存儲(chǔ)器件的有效連接。以單片機(jī)片外256KB數(shù)據(jù)存儲(chǔ)空間的擴(kuò)展為例,通過該擴(kuò)展方法,僅用10個(gè)I/O端口便可實(shí)現(xiàn),與傳統(tǒng)的擴(kuò)展方法相比,可節(jié)約8個(gè)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)簽: 單片機(jī) P0口 數(shù)據(jù)存儲(chǔ)器 擴(kuò)展
上傳時(shí)間: 2014-12-26
上傳用戶:adada
在深入了解Flash存儲(chǔ)器的基礎(chǔ)上,采用單片機(jī)自動(dòng)檢測(cè)存儲(chǔ)器無效塊。主要通過讀取每一塊的第1、第2頁內(nèi)容,判斷該塊的好壞,并給出具體的實(shí)現(xiàn)過程,以及部分關(guān)鍵的電路原理圖和C語言程序代碼。該設(shè)計(jì)最終實(shí)現(xiàn)單片機(jī)自動(dòng)檢測(cè)Flash壞塊的功能,并通過讀取ID號(hào)檢測(cè)Flash的性能,同時(shí)該設(shè)計(jì)能夠存儲(chǔ)和讀取1GB數(shù)據(jù)。 Abstract: On the basis of in-depth understanding the Flash chips,this paper designs a new program which using the SCM to detect the invalid block.Mainly through reading the data of the first and second page to detect the invalid block.Specific implementation procedure was given,and the key circuit schematic diagram and C language program code was introduced.This design achieved the function of using the MCU checks the invalid block finally,and increased the function by reading the ID number of Flash to get the performance of the memory.And the design also can write and read1GB data
標(biāo)簽: Flash 單片機(jī) 存儲(chǔ)器 自動(dòng)檢測(cè)
上傳時(shí)間: 2013-10-25
上傳用戶:taozhihua1314
針對(duì)盤山路存在的轉(zhuǎn)彎盲區(qū),即在轉(zhuǎn)彎時(shí)司機(jī)無法得知彎路對(duì)面是否有車輛通過,設(shè)計(jì)一種基于C8051F310的山路轉(zhuǎn)彎預(yù)防警示系統(tǒng)。該系統(tǒng)利用一階濾波算法檢測(cè)山路轉(zhuǎn)彎時(shí)是否有車輛通過。運(yùn)用該算法可增強(qiáng)系統(tǒng)檢測(cè)的實(shí)時(shí)性,提高檢測(cè)機(jī)動(dòng)車輛的靈敏度,同時(shí)大大減少環(huán)境溫度對(duì)檢測(cè)的干擾。試驗(yàn)表明該系統(tǒng)能夠正確指示出在山路轉(zhuǎn)彎時(shí)是否有車輛通過,目前該系統(tǒng)已安裝在盤山路上,可大大減少事故的發(fā)生率。 Abstract: Aiming at passing hilly road,there is a turn blind spot.Motormen usually do not know if the passing of vehicles pass the road.So a system of defending accident on hilly road is designed,which is based on MCU C8051F310.The sys-tem uses the first-order filter algorithm to detect whether there are passing vehicles.This algorithm enhances the real-time detection and improves the sensitivity of detection vehicles.Meanwhile,it reduces the detection interference of environmen-tal temperature.The experimental results show that this system can exactly indicate if there are passing vehicles.At present,the system has been successfully applied to hilly road.The system can greatly decrease accident.
上傳時(shí)間: 2013-10-10
上傳用戶:歸海惜雪
在汽車發(fā)動(dòng)機(jī)起動(dòng)時(shí),若發(fā)動(dòng)機(jī)起動(dòng)后起動(dòng)機(jī)不能及時(shí)斷電,將會(huì)燒毀起動(dòng)機(jī)或損壞飛輪齒環(huán);若變速器不在空檔位置起動(dòng),則起動(dòng)機(jī)的瞬間動(dòng)力將使汽車位移,還可能引起交通事故和人身安全。為此介紹一種利用NXP P89LPC901單片機(jī)控制的汽車起動(dòng)保護(hù)控制器,通過檢測(cè)汽車起動(dòng)開關(guān)、變速箱檔位、發(fā)動(dòng)機(jī)轉(zhuǎn)速,實(shí)現(xiàn)對(duì)汽車發(fā)動(dòng)機(jī)起動(dòng)過程檢測(cè)和保護(hù)。起動(dòng)保護(hù)控制器在發(fā)動(dòng)機(jī)起動(dòng)過程中通過采用逐個(gè)關(guān)閉打開負(fù)載系統(tǒng),解決汽車發(fā)動(dòng)機(jī)過程中因起動(dòng)電流大而對(duì)汽車電源的沖擊影響,延長了電瓶壽命。 Abstract: When the automotive engine is started, the engine start motor and flywheel gear may be damaged, even traffic accidents and personal safeties may be caused by wrong operation or other factors.In order to ensure the automotive engine can be started normally and safely,it is necessary that the protecting measures and methods are considered in the automotive electrical control system.This paper introduces a kind of the automotive engine starting protect controller based on NXP P89LPC901 MCU.The controller can protect the engine starting process by detecting the starter key switch,transmission stall and engine speed.Through the use of close and open load system,the controller can solve the impact on automotive power because of the high-current load in the process of the automobile engine starting, and extend battery life.
上傳時(shí)間: 2013-10-15
上傳用戶:mikesering
為滿足礦井安全生產(chǎn)要求,介紹了一種以AT89C51單片機(jī)為主控器,對(duì)環(huán)境空氣的溫度、有毒易燃?xì)怏w的濃度等進(jìn)行檢測(cè)的監(jiān)控系統(tǒng)。該系統(tǒng)配合外圍電路能實(shí)現(xiàn)對(duì)上述環(huán)境指標(biāo)的控制并存儲(chǔ)相關(guān)數(shù)據(jù)與上位PC機(jī)通信。它采用硬件抗干擾和軟件抗干擾技術(shù),以確保整個(gè)系統(tǒng)工作的準(zhǔn)確性。 Abstract: In order to meet the needs of mine produce safety,a kind of intellignet mine ambient monotoring and control system based on AT89C51 is introduced.This system can detect the temperature of ambient of mine,the density of poisonous inflammable gas,combined external circuit.With its function part, this system can change above-mentioned elements.
上傳時(shí)間: 2013-11-10
上傳用戶:wendy15
為了解決磁放大器性能測(cè)試過程中,需要對(duì)其供給不同數(shù)值恒定電流的問題,設(shè)計(jì)了一種基于DAC7512和單片機(jī)的數(shù)控恒流源系統(tǒng)。該系統(tǒng)采用AT89C51作為主控器件,將計(jì)算機(jī)發(fā)送的電流控制字命令轉(zhuǎn)換為D/A轉(zhuǎn)換器控制字,通過模擬SPI通信接口,寫D/A控制字到DAC7512,從而控制其輸出相應(yīng)數(shù)字電壓值,經(jīng)差動(dòng)縮放電路、電壓/電路變換電路和功率驅(qū)動(dòng)電路,最后輸出恒定電流。實(shí)驗(yàn)結(jié)果表明,恒流源輸出電流調(diào)節(jié)范圍為-45~+45 mA、精度為±0.1 mA,分辨率達(dá)0.024 4 mA,具有應(yīng)用靈活,外圍電路簡單,可靠性高的特點(diǎn)。該數(shù)控直流恒流源也可為相關(guān)產(chǎn)品的測(cè)試系統(tǒng)研發(fā)提供參考。 Abstract: In order to solve the need to supply different values constant current for the magnetic amplifier in testing process, numerical control constant current source system was designed based on DAC7512 chip and microcontroller technology. The system used the AT89C51 as the main chip, which can convert the current control word from computer into to D/A control words. And the system wrote D/A control word into the DAC7512 chip to control the output voltage value by the SPI communication interface, which can output corresponding constant current figures by scaling circuit, the V/I converter and power drive circuit. Experimental results show that the current source output current adjustment range is -45~+45mA, accuracy is ± 0.1mA, and resolution ratio is 0.024 4mA
標(biāo)簽: 7512 DAC 數(shù)控直流 恒流源
上傳時(shí)間: 2014-12-27
上傳用戶:invtnewer
為深入了解基于UC3854A控制的PFC變換器中的動(dòng)力學(xué)特性,研究系統(tǒng)參數(shù)變化對(duì)變換器中分岔現(xiàn)象的影響,在建立Boost PFC變換器雙閉環(huán)數(shù)學(xué)模型的基礎(chǔ)上,用Matlab軟件對(duì)變換器中慢時(shí)標(biāo)分岔及混沌等不穩(wěn)定現(xiàn)象進(jìn)行了仿真。在對(duì)PFC變換器中慢時(shí)標(biāo)分岔現(xiàn)象仿真的基礎(chǔ)上,分析了系統(tǒng)參數(shù)變化對(duì)分岔點(diǎn)的影響,并進(jìn)行了仿真驗(yàn)證。仿真結(jié)果清晰地顯示了輸入整流電壓的幅值變化對(duì)系統(tǒng)分岔點(diǎn)的影響。 Abstract: In order to better understand the dynamics characteristic of power factor correction converter based on UC3854A, and make the way that parameters change influences the bifurcation phenomena of the system clearly. The math model of the two closed loop circuits to the Boost PFC (Power Factor Correction) converter controller was built. Then, with the help of Matlab, the simulation for nonlinear phenomena such as chaos and slow-scale bifurcation in the PFC converter was made. Finally the factors that have influence to the phenomenon of bifurcation under slow-scale in PFC converter were analyzed. The simulation results clearly show the parameters change influences the bifurcation point of the system.
上傳時(shí)間: 2013-10-17
上傳用戶:杜瑩12345
為降低成本和解決現(xiàn)有膜片鉗放大器系統(tǒng)中PC機(jī)的干擾問題,研究了一種基于單片機(jī)的膜片鉗放大器小系統(tǒng)。該系統(tǒng)采用ADI公司生產(chǎn)的ADuC841作為控制核心,并且配置相應(yīng)的液晶顯示模塊LCM3202401。模擬電路部分采用高輸入阻抗的AD8627實(shí)現(xiàn)微電流信號(hào)的采集,并由后級(jí)電路進(jìn)行信號(hào)的放大和電阻電容的補(bǔ)償。它具有硬件電路簡單、體積小、使用方便的特點(diǎn)。既可以單獨(dú)作為小系統(tǒng)實(shí)現(xiàn)采集和顯示,也可以通過紅外方式和PC機(jī)進(jìn)行通訊,在PC機(jī)上進(jìn)行信號(hào)的處理。 Abstract: In order to reduce cost and resolve the interferential problem with PC in existing patch clamp amplifiers, a small patch clamp amplifier system design based on microcontroller is studied. It adopts a new high performance microconverter ADuC841 by the ADI as the control core in the system, configuring a liquid crystal module LCM3202401. In the analog circuit, AD8627 with high input impedance is used to detect the low current,signal magnification, as well as resistance and capacitance compensation are accomplished by subsequent circuits. It has the advantage of simple hardware circuit design, small volume and convenient operation. It can either be used as an independent system to measure and show signal detected or transmit to PC by infrared ray.
上傳時(shí)間: 2013-11-06
上傳用戶:yy_cn
為了提高環(huán)境參數(shù)采集的自動(dòng)化水平,提升效率,設(shè)計(jì)了無線傳感器系統(tǒng)。本系統(tǒng)運(yùn)用了傳感器技術(shù)、通信技術(shù)和單片機(jī)技術(shù),實(shí)現(xiàn)了對(duì)環(huán)境溫度、濕度、光照度以及可燃性氣體濃度等參數(shù)的檢測(cè)。它能夠?qū)崟r(shí)地與上位機(jī)進(jìn)行無線通信,滿足對(duì)環(huán)境參數(shù)實(shí)時(shí)監(jiān)測(cè)的要求。 Abstract: In order to increase the degree of automation and improve the efficiency of the environment monitoring parameters,the wireless sensor system was developed.Combining with the technique of sensor,automatic monitoring,communication and single-chip microcomputer,it realized real-time monitoring environment parameters,such as temperature,humidity,illumination,concentration of com- bustible gas and so on.At the same time it can communicate with upper personal computers,satisfy the desire of real-time monitoring.
上傳時(shí)間: 2013-11-22
上傳用戶:longlong12345678
蟲蟲下載站版權(quán)所有 京ICP備2021023401號(hào)-1