以太網(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ā),同時還順利的解決了以太網(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)換
上傳時間: 2013-10-15
上傳用戶:Ants
提出一種基于凌陽單片機(jī)的步進(jìn)電機(jī)加減速的控制方法。采用凌陽科技推出的16位結(jié)構(gòu)工控單片機(jī)SPMC75F2413A為控制器,由Allegro公司生產(chǎn)的兩相步進(jìn)電機(jī)專用驅(qū)動器件SLA7042M構(gòu)成步進(jìn)電機(jī)的驅(qū)動電路,在傳統(tǒng)的3段直線加減速控制算法基礎(chǔ)上增加至7段S形曲線加減速過程,控制步進(jìn)電機(jī)的啟動和停止。實(shí)驗(yàn)結(jié)果表明,該控制方法克服了直線加減速中不連續(xù)、易造成系統(tǒng)沖擊的問題,整個系統(tǒng)實(shí)現(xiàn)柔性控制,電機(jī)啟動、停止連續(xù)性能提高30%。 Abstract: The method of controlled stepping motor is referred based on SPMC75F2413A MCU, which adopts the 16 knots SPMC75F2413A MCU as the controller. The special-purpose actuation chip SLA7042M of two stepping motor produced by Allegro Corporation constituted to actuation electric circuit. The purpose of increasing to seven section of S shape curve based on the traditional three sections of straight line is to control the start and stop process of stepping motor. The experimental results show that the control method solves easy to pull-out and overshot problems. The overall system realizes flexible control, and the performance of motor start or stop continuity is increased 30%
標(biāo)簽: 凌陽單片機(jī) 步進(jìn)電機(jī) 減 控制方法
上傳時間: 2013-12-08
上傳用戶:jiangfire
為提高太陽能的利用率,以ATmega8單片機(jī)為控制核心,設(shè)計(jì)了一套光電跟蹤與視日運(yùn)動軌跡跟蹤互補(bǔ)控制的雙軸太陽跟蹤器。該跟蹤器在晴天時,利用光敏電阻采集光強(qiáng)判斷太陽位置,控制步進(jìn)電機(jī)實(shí)現(xiàn)光電跟蹤;在陰天時,采集時鐘器件PCF8583的時間信息,計(jì)算當(dāng)前太陽位置來實(shí)現(xiàn)視日運(yùn)動軌跡跟蹤。實(shí)驗(yàn)表明:該太陽跟蹤器能在不同天氣狀況下對太陽進(jìn)行較準(zhǔn)確地跟蹤,能量接收效率提高了30%,達(dá)到充分利用太陽能的目的。 Abstract: To improve the utilization rate of solar energy,a kind of solar tracking controller which effectively combined the sun angle tracking and photo electric tracking based on ATmega8is designed.In the sunny days,the solar tracking con-troller determines the sun's position by using photosensitive resistances to collect light intensity and control stepper motors to achieve photo electric tracking,n cloudy days,it collects clock chip PCF8583time information to calculate the current position of the sun and achieve the sun angle tracking.Experimental results show the solar tracking controller accurately tracks the sun in different weather conditions,improves received energy efficiency by30%and reaches the purpose of full use of solar energy.
上傳時間: 2013-10-15
上傳用戶:urgdil
設(shè)計(jì)一種基于ATmega16L單片機(jī)的溫度控制系統(tǒng),闡述該系統(tǒng)的軟硬件設(shè)計(jì)方案。采用模塊化設(shè)計(jì)方法,利用增量式PID算法使被控對象的溫度值趨于給定值。實(shí)驗(yàn)結(jié)果表明該系統(tǒng)具有良好的檢測和控制功能。 Abstract: This paper designs a temperature control system based on ATmega16L,describes the hardware and software de-sign scheme of the system,adopts the modularized design method and utilizes the incremental PID algorithm to realize the temperature of controlled device incline to the given value.The experiment result indicates that the system has good detec-tion and control function
標(biāo)簽: ATmega 16L 16 單片機(jī)
上傳時間: 2013-10-09
上傳用戶:stvnash
設(shè)計(jì)一種基于P89V51RD2的功率因數(shù)測量儀,采用光電隔離器和專用數(shù)碼管驅(qū)動器。該測量儀是以增強(qiáng)型單片機(jī)P89V51RD2為核心,大大簡化系統(tǒng)硬件設(shè)計(jì)。而軟件部分采用模塊化設(shè)計(jì)思想,采用中值濾波和小數(shù)補(bǔ)償算法,實(shí)現(xiàn)功率因數(shù)的高精度測量。實(shí)驗(yàn)測試表明,該功率因數(shù)測量儀測量精度高,運(yùn)行穩(wěn)定可靠。 Abstract: A power-factor measurement instrument based on P89V51RD2is designed,which uses optical coupler and specific LED drive chip.The power factor measurement instrument uses P89V51RD2as a core of which greatly simplifies the system design.Furthermore,modularization software is developed in detail.The high precision power-factor measuring system is realized by the center value filter and fractional compensation algorithm.Experiments manifests that the power- factor measurement instrument is high precision,steady and reliable.
上傳時間: 2014-12-27
上傳用戶:CHINA526
首先研究CAN總線和SAE J1939協(xié)議,提出一種基于MC9S12HZ256微控制器的總線式汽車數(shù)字儀表解決方案。詳細(xì)介紹SAE J1939協(xié)議的報(bào)文幀格式及應(yīng)用層協(xié)議中發(fā)動機(jī)相關(guān)參數(shù)的定義,以及步進(jìn)電機(jī)及其驅(qū)動和車速信號的處理方法。該數(shù)字儀表系統(tǒng)硬件平臺由微處理器和信號采集和信息處理及顯示等模塊組成。軟件設(shè)計(jì)部分編程實(shí)現(xiàn)了對CAN總線和各傳感器數(shù)據(jù)的讀取、處理。該系統(tǒng)能夠?qū)崟r反映車輛工況。 Abstract: In this paper,CAN bus and SAE J1939protocol are researched,and a vehicle digital instrument solution based on MC9S12HZ256MCU is proposed.The message frame format and some engine-related parameters’definition in SAE J1939application layer protocol are introduced in detail.Stepper motor and its driver,the methods of speed signal process-ing are also introduced.The hardware platform of vehicle digital instrument is composed by MCU,signal acquisition mod-ule,and signal processing and displaying module.Data receiving and processing from CAN bus and sensors are accom-plished by programming,and vehicle condition can be reflected in real-time.
上傳時間: 2013-10-20
上傳用戶:huannan88
詳細(xì)介紹工控軟件組態(tài)王與單片機(jī)多機(jī)串口通訊的設(shè)計(jì)原理。分析組態(tài)王提供的直接與單片機(jī)串口通信方法的優(yōu)點(diǎn),給出系統(tǒng)基于RS-485總線傳輸?shù)慕涌陔娐吩韴D。根據(jù)組態(tài)王提供的通訊協(xié)議和單片機(jī)多機(jī)串口通訊的原理,給出程序設(shè)計(jì)流程與思路。 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.
標(biāo)簽: 工控軟件 單片機(jī) 串口通訊 多機(jī)
上傳時間: 2013-12-19
上傳用戶:tecman
實(shí)時時鐘是微機(jī)保護(hù)裝置的重要部件,在討論P(yáng)CF8583結(jié)構(gòu)與功能的基礎(chǔ)上,提出采用dsPIC33F系列微處理器與串行I2C時鐘PCF8583的接口設(shè)計(jì)方案,給出了相應(yīng)的接口電路與軟件流程。該設(shè)計(jì)方案結(jié)構(gòu)簡單,可靠性高,開發(fā)周期短,具有一定的實(shí)用與參考價(jià)值。所設(shè)計(jì)的微機(jī)保護(hù)裝置已投入現(xiàn)場運(yùn)行,效果良好。 Abstract: Real-time clock chip is an important part in microcomputer protection device.Based on discussing the structure and function of PCF8583,a new interface scheme which uses dsPIC33F microprocessor and serial clock chip(I2C)PCF8583is proposed.The method of the circuit design and the main software flow are introduced in this paper.The scheme has simple structure,higher reliability and shorter exploitation cycle,so has definite practicality or reference value.The microcomputer protection device has been put into operation with better effects.
標(biāo)簽: 8583 PCF 串行時鐘 中的應(yīng)用
上傳時間: 2013-11-18
上傳用戶:Thuan
介紹一種基于C8051單片機(jī)的動態(tài)心電監(jiān)護(hù)系統(tǒng)。該系統(tǒng)由兩部分組成:以C8051F320單片機(jī)為核心的數(shù)據(jù)采集裝置和以PC機(jī)為平臺的分析處理系統(tǒng)。硬件電路功耗低,由單片機(jī)自帶的USB接口將數(shù)據(jù)傳送給PC機(jī)。軟件平臺采用LabVIEW可視化虛擬儀器系統(tǒng)開發(fā)平臺,將傳統(tǒng)儀器的功能模塊集成到計(jì)算機(jī)中,用戶可通過修改虛擬儀器的程序改變其功能。采用USB接口實(shí)時傳輸心電數(shù)據(jù),并將數(shù)據(jù)采集模塊設(shè)計(jì)為計(jì)算機(jī)外設(shè),使該系統(tǒng)高速快捷、小巧便攜。 Abstract: In this design,a low-cost ECG electrocardiogram monitoring system is introduced,which consists of two parts:data acquisition device based on C8051F320and PC terminal as the analysis and processing system.The system is low-power consumption,the data is transmitted to the PC terminal by USB interface of the C8051F320.By using the visible virtual instrument system developing platform LabVIEW,the traditional instruments function modules are integrated into the computer,so the user can modify virtual instrument software to change its function to meet their needs.Using USB in-terface to realize real-time ECG data transmission,in addition,ECG data acquisition module is designed as the computer peripheral,which makes the syetem high-speed and portable.
標(biāo)簽: C8051F320 心電監(jiān)護(hù) 系統(tǒng)設(shè)計(jì)
上傳時間: 2013-11-13
上傳用戶:zhangzhenyu
設(shè)計(jì)一種基于AT89C52的語音錄放系統(tǒng),利用單片機(jī)、ISD2560語音錄放器件、麥克風(fēng)、揚(yáng)聲器等元器件實(shí)現(xiàn)硬件電路的設(shè)計(jì),并利用C51高級語言設(shè)計(jì)ISD2560器件控制字的寫入和定時中斷程序。經(jīng)軟硬件調(diào)試,結(jié)果表明該系統(tǒng)錄放效果良好,具有一定的工程實(shí)用價(jià)值。 Abstract: Voice recording and playback system based on AT89C52is designed in this paper.Using the single-chip microcomputer,voice recording and playback chip ISD2560,microphone and speaker to realize the hardware circuit design.Writing ISD2560control words and timing interrupt procedures are designed by C51advanced language.Through the hardware and software test,voice recording and playback system play better voice,and this system has some engineering practical values.
上傳時間: 2013-10-20
上傳用戶:ywcftc277
蟲蟲下載站版權(quán)所有 京ICP備2021023401號-1