單片機(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
首先研究CAN總線和SAE J1939協(xié)議,提出一種基于MC9S12HZ256微控制器的總線式汽車數(shù)字儀表解決方案。詳細(xì)介紹SAE J1939協(xié)議的報(bào)文幀格式及應(yīng)用層協(xié)議中發(fā)動(dòng)機(jī)相關(guān)參數(shù)的定義,以及步進(jìn)電機(jī)及其驅(qū)動(dòng)和車速信號(hào)的處理方法。該數(shù)字儀表系統(tǒng)硬件平臺(tái)由微處理器和信號(hào)采集和信息處理及顯示等模塊組成。軟件設(shè)計(jì)部分編程實(shí)現(xiàn)了對(duì)CAN總線和各傳感器數(shù)據(jù)的讀取、處理。該系統(tǒng)能夠?qū)崟r(shí)反映車輛工況。 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.
上傳時(shí)間: 2013-10-20
上傳用戶:huannan88
實(shí)時(shí)時(shí)鐘是微機(jī)保護(hù)裝置的重要部件,在討論P(yáng)CF8583結(jié)構(gòu)與功能的基礎(chǔ)上,提出采用dsPIC33F系列微處理器與串行I2C時(shí)鐘PCF8583的接口設(shè)計(jì)方案,給出了相應(yīng)的接口電路與軟件流程。該設(shè)計(jì)方案結(jié)構(gòu)簡(jiǎn)單,可靠性高,開發(fā)周期短,具有一定的實(shí)用與參考價(jià)值。所設(shè)計(jì)的微機(jī)保護(hù)裝置已投入現(xiàn)場(chǎng)運(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 串行時(shí)鐘 中的應(yīng)用
上傳時(shí)間: 2013-11-18
上傳用戶:Thuan
介紹一種基于C8051單片機(jī)的動(dòng)態(tài)心電監(jiān)護(hù)系統(tǒng)。該系統(tǒng)由兩部分組成:以C8051F320單片機(jī)為核心的數(shù)據(jù)采集裝置和以PC機(jī)為平臺(tái)的分析處理系統(tǒng)。硬件電路功耗低,由單片機(jī)自帶的USB接口將數(shù)據(jù)傳送給PC機(jī)。軟件平臺(tái)采用LabVIEW可視化虛擬儀器系統(tǒng)開發(fā)平臺(tái),將傳統(tǒng)儀器的功能模塊集成到計(jì)算機(jī)中,用戶可通過修改虛擬儀器的程序改變其功能。采用USB接口實(shí)時(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ì)
上傳時(shí)間: 2013-11-13
上傳用戶:zhangzhenyu
針對(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
上傳用戶:歸海惜雪
飛機(jī)電網(wǎng)故障時(shí),機(jī)載電氣盒必須在延遲時(shí)間內(nèi)切斷電網(wǎng),保護(hù)機(jī)載設(shè)備。采用AT89S52設(shè)計(jì)的電氣盒測(cè)試儀能夠測(cè)試電氣盒保護(hù)功能,測(cè)量延遲時(shí)間。實(shí)際應(yīng)用結(jié)果表明,該測(cè)試儀具有測(cè)量準(zhǔn)確、可靠性高、成本低等優(yōu)點(diǎn)。 Abstract: The helicopter-electrical-box must shut off the helicopter power,protect the equipments of the helicopter when the helicopter power is failed.The tester for the helicopter-electrical-box based on AT89S52is used for testing the protect-ing function and measuring the delay time.Application results show this tester has some advantages,such as accurate mea-surement,high dependability,economical cost etc.
上傳時(shí)間: 2014-12-27
上傳用戶:786334970
該系統(tǒng)由單片機(jī)89S52控制模塊,程控寬帶放大模塊,整形模塊,F(xiàn)PGA內(nèi)頻率、相位差測(cè)量模塊等構(gòu)成,采用等精度測(cè)頻法測(cè)出頻率和周期,可測(cè)量有效值為0.01~5V,頻率范圍1Hz~20MHz信號(hào)的頻率、周期信號(hào),精度高達(dá)10-6。采用計(jì)數(shù)法測(cè)量相位差,該系統(tǒng)可測(cè)量有效值0.5~5V,頻率10Hz~100kHz信號(hào)的相位差,精度為1°。系統(tǒng)功能由按鍵控制,測(cè)量結(jié)果實(shí)時(shí)顯示,人機(jī)界面友好。 Abstract: The system consists of the following functional blocks:89S52microcontroller controlling module,programmable amplifier module,comparator module,frequency and phase difference testing module in the FPGA.The system use the equal accuracy frequency-examining technique it measures frequency and circle of signal which its ranges is from1Hz to20MHz and the amplitude of which its range is from0.01Vrms to5Vrms,precision is up to10-6.Using of count method,the system detects the phase difference of signal,the amplitude of whic its range is from0.5Vrms to5Vrms and the frequency of which its ranges is from10Hz to100kHz,precision is up to1°,The system functions is controlled by certain keys,measurement results are displayed in real-time and it is friendly interface.
標(biāo)簽: 89S52 單片機(jī) 多功能 計(jì)數(shù)器
上傳時(shí)間: 2013-11-04
上傳用戶:CHINA526
以89S52單片機(jī)和EP1C6Q240C8型FPGA為控制核心的多功能計(jì)數(shù)器,是由峰值檢波、A/D轉(zhuǎn)換、程控放大、比較整形、移相網(wǎng)絡(luò)部分組成,可實(shí)現(xiàn)測(cè)量正弦信號(hào)的頻率、周期和相位差的功能。多功能計(jì)數(shù)器采用等精度的測(cè)量方法,可實(shí)現(xiàn)頻率為1Hz~10MHz、幅度為0.01~5Vrms的正弦信號(hào)的精確測(cè)頻,以及頻率為10Hz~100kHz、幅度為0.5~5Vrms的正弦信號(hào)精確測(cè)相。液晶顯示器能夠?qū)崟r(shí)顯示當(dāng)前信號(hào)的頻率、周期和相位差。該多功能計(jì)數(shù)器精度高,界面友好,實(shí)用性強(qiáng)。 Abstract: A multi-function counter,which uses89S52MCU and EP1C6Q240C8FPGA as a control core,consists of peak detector,A/D conversion,program-controlled amplification,compared shaping and phase-shifting network part.The counter measures the frequency,period and phase of sinusoidal signal.With the equal precision method,the multi-function counter achieves the precise frequency measurement of the sinusoidal signal which its frequency is from1Hz to10MHz,its amplitude is from0.01Vrms to5Vrms,as well as the accurate phase measurement of the sinusoidal signal which its frequency is from10Hz to100kHz,its amplitude is from0.5Vrms to5Vrms.The LCD monitor real-time displays the frequency,period and phase difference of current signal.The multi-function counter features high precision,friendly interface,and strong practical.
標(biāo)簽: FPGA 單片機(jī) 多功能 計(jì)數(shù)器
上傳時(shí)間: 2013-11-15
上傳用戶:gy592333
介紹了當(dāng)前普通標(biāo)記機(jī)控制系統(tǒng)現(xiàn)狀及其存在缺點(diǎn),給出氣動(dòng)標(biāo)記機(jī)及相頻修正PWM模式的工作原理。采用ATmega16單片機(jī)和USB轉(zhuǎn)換RS232接口器件CH341T實(shí)現(xiàn)驅(qū)動(dòng)控制系統(tǒng)與PC的實(shí)時(shí)通訊,標(biāo)記控制系統(tǒng)可升級(jí)到USB接口。采用基于ATmega16的相頻修正PWM替換555振蕩電路產(chǎn)生的PWM,可直接通過軟件調(diào)整PWM信號(hào)。使用達(dá)林頓三極管TIP122替代直流繼電器驅(qū)動(dòng)高頻電磁閥,使得電磁閥驅(qū)動(dòng)電路簡(jiǎn)單,成本低廉。該控制系統(tǒng)已成功應(yīng)用于氣動(dòng)標(biāo)記機(jī)。 Abstract: In this paper,the actuality and demerit of the common gas marking machine control systems are described.The operation principle of the gas marking machine and the phase and frequency correct PWM of ATmega16is introduced.The real-time communication between the driving control system and PC by CH341T which its function is translated USB to RS232is realized,the control systems is updated grade to USB interface.The PWM signal can be adjustable by software for the555surge circuit was substituted by the phase and frequency.The high frequency electromagnetic value’s driving circuit by DC relay is replaced by TIP122,therefore,the circuit is become simple and the cost cheap.The control systems has been widely used in gas marking machine.
標(biāo)簽: ATmega 16 標(biāo)記 控制系統(tǒng)
上傳時(shí)間: 2013-10-18
上傳用戶:1427796291
應(yīng)用德國(guó)Micronas公司的CDC3207G微控制器開發(fā)了一款汽車儀表板系統(tǒng)。詳細(xì)地介紹了該系統(tǒng)的硬件原理,以及步進(jìn)電機(jī),音頻控制,LCD顯示,LED指示燈和報(bào)警燈等幾個(gè)模塊的實(shí)現(xiàn)方法。應(yīng)用μC/OS-II實(shí)時(shí)操作系統(tǒng)開發(fā)軟件。著重介紹了啟動(dòng)代碼的設(shè)計(jì)和任務(wù)的規(guī)劃。 Abstract: A dashboard system is developed by using CDC3207G microcontroller made by Micronas.The hardware of the sys-tem and the realization of the step motor module,audio module,LCD display and LED indicator and alarm module are ex-plained in detail.The μC/OS-II real-time operating system is used for the software development and the starting code design and the task planning is explained specifically.
標(biāo)簽: 3207G 3207 CDC 汽車儀表板
上傳時(shí)間: 2013-10-26
上傳用戶:x4587
蟲蟲下載站版權(quán)所有 京ICP備2021023401號(hào)-1