Holtek 單片機有一個間接尋址寄存器R0([00H])(有的單片機有兩個間接尋址寄存器 R0([00H]),R1([02H]),例如HT48R50A-1 和HT48R70A-1),MP0(MP1)為指向R0(R1) 的指針。任何對R0(R1)的操作實際上都是對MP0(MP1)所指向的地址進行操作的,也 就是說對R0(R1)作讀寫實際上是對MP0(MP1)所指向的地址進行讀寫。
上傳時間: 2013-11-16
上傳用戶:yuanwenjiao
生活中許多目標的高度和水平距離需要進行測量。目前主要的測量方法,仍以傳統的皮尺丈量為主,測量效率不高,有時還很不方便,沒有技術成熟的數字式測高測距產品。以基本的數學方法為理論依據,利用遙控小車做為載體,采用角度傳感器測量角度、霍爾傳感器測量水平距離等,通過單片機LM3S615進行數據計算,實現了對待測目標物體的高度、水平距離等數據的快速、精確和數字式的測量,高度測量精度可達99.06%,水平測量精度則可達98.06%。 Abstract: In our lives, the height and horizontal distance of some goals are needed to be measured. Because the currently used methods are still traditional tape-based measuring methods, and the measuring efficiency is low and inconvenient so some kinds of digital and portable measuring methods or instruments are needed. Based on the basic math theory, this paper designed and manufactured a portable, digital and remote controlled measuring mobile small vehicle, which assembled with angle measuring sensor for angle measurement and Hall sensor for horizontal distance measuring. MCU LM3S615 calculated the height and horizontal distance data gotten from these sensors. The measuring process is simple, the measuring results are more accurate and the measuring efficiency is higher than traditional measure instruments. The accuracy of height and distance measurement can reach 99.06% and 98.06%.
上傳時間: 2013-10-30
上傳用戶:jackandlee
提出一種基于凌陽單片機的步進電機加減速的控制方法。采用凌陽科技推出的16位結構工控單片機SPMC75F2413A為控制器,由Allegro公司生產的兩相步進電機專用驅動器件SLA7042M構成步進電機的驅動電路,在傳統的3段直線加減速控制算法基礎上增加至7段S形曲線加減速過程,控制步進電機的啟動和停止。實驗結果表明,該控制方法克服了直線加減速中不連續、易造成系統沖擊的問題,整個系統實現柔性控制,電機啟動、停止連續性能提高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%
上傳時間: 2013-12-08
上傳用戶:jiangfire
在深入了解Flash存儲器的基礎上,采用單片機自動檢測存儲器無效塊。主要通過讀取每一塊的第1、第2頁內容,判斷該塊的好壞,并給出具體的實現過程,以及部分關鍵的電路原理圖和C語言程序代碼。該設計最終實現單片機自動檢測Flash壞塊的功能,并通過讀取ID號檢測Flash的性能,同時該設計能夠存儲和讀取1GB數據。 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
上傳時間: 2013-10-25
上傳用戶:taozhihua1314
首先研究CAN總線和SAE J1939協議,提出一種基于MC9S12HZ256微控制器的總線式汽車數字儀表解決方案。詳細介紹SAE J1939協議的報文幀格式及應用層協議中發動機相關參數的定義,以及步進電機及其驅動和車速信號的處理方法。該數字儀表系統硬件平臺由微處理器和信號采集和信息處理及顯示等模塊組成。軟件設計部分編程實現了對CAN總線和各傳感器數據的讀取、處理。該系統能夠實時反映車輛工況。 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
針對盤山路存在的轉彎盲區,即在轉彎時司機無法得知彎路對面是否有車輛通過,設計一種基于C8051F310的山路轉彎預防警示系統。該系統利用一階濾波算法檢測山路轉彎時是否有車輛通過。運用該算法可增強系統檢測的實時性,提高檢測機動車輛的靈敏度,同時大大減少環境溫度對檢測的干擾。試驗表明該系統能夠正確指示出在山路轉彎時是否有車輛通過,目前該系統已安裝在盤山路上,可大大減少事故的發生率。 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.
上傳時間: 2013-10-10
上傳用戶:歸海惜雪
S3C8-SERIESMCU 三星的SAM8RC系列8位單片機向用戶提供了高效快速的CPU,豐富的外圍接口,以及各種大小的可編程ROM。 它的地址/數據總線結構和位可編程I/O口為用戶提供了一個靈活的編程環境,能夠滿足不同用戶對存儲器和I/O口的不同要求。同時,具有可選工作模式的Timer/Counters可支持實時操作。
上傳時間: 2014-07-12
上傳用戶:農藥鋒6
概述 MC10P22XXY是一款低功耗8位OTP型微控制器單元(MCU),工業級單片機,適合各類電器儀表應用。MC10P22XXY可提供17個通用IO口:強驅動能力帶內部上下拉,IO口可提供三態
上傳時間: 2013-11-24
上傳用戶:GHF
介紹了一種基于C8051F020單片機的多路壓力測量儀。該測量儀選用電阻應變式壓力傳感器采集壓力信號,并經放大電路處理后送入C8051F020單片機,再由C8051F020單片機內部的A/D轉換器將采集到的壓力信號進行模數轉化,然后分別對數據進行存儲和顯示。該測量儀能測量6路壓力信號,并且各測量點都能單獨檢測和設置。由于采用了C8051F020單片機,簡化了硬件電路,增強了抗干擾能力,使得測量儀具有測量精度高,沖擊小等特點。 Abstract: A measurement apparatus for multi-channel pressure based on single chip microcomputer is introduced.It can measure 6 channels signal of the pressure,and the pressure measure points can be detection and located individually.The pressure signal sampling is obtained by resistor stress-type pressure sensors,the digital signals of 6 channels are collected through amplifying and adjustment circuit of pressure signals and internal integrated A/D converter of MCU.Finally,and it realizes the function to store and display data separately.C8051F020 was used to made hardware circuit simple,and it also enhanced the anti-interference ability.It features high precision and little impact.
上傳時間: 2013-11-16
上傳用戶:yare
概述 BM22P02是一款OTP類型低功耗8位通用微控制器(MCU)??蛇m用于各類簡單功能的小家電控制。 主要特點 ●指令與BL2220兼容●CPU:8位●ROM單元:2Kbyte●RAM單元:64byte●晶振電路:400K~4MHz晶體振蕩器或內置RC振蕩●I/O口:2組8位雙向口●1個單向輸出口●17位watchdog●1路BUZZER輸出●低電壓復位LVR(翻轉電壓1.9V±0.2V),可軟件選擇●其他外圍電路:8位可編程定時器●工作電源電壓:2.0~5.5V●工作溫度:-40~85℃●靜態功耗:<1uA@VDD=3V●動態功耗:<1mA@VDD=3V●封裝形式:SOP24/DIP24/SOP20200MIL/SOP20300MIL/SSOP20/DIP20
上傳時間: 2013-11-25
上傳用戶:smthxt