




版權說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權,請進行舉報或認領
文檔簡介
1、英文文獻single-chipscm is also known as micro-controller (microcontroller unit), commonly used letters of the acronym mcu that it was first used in industrial control.only a single chip by the cpu chip developed from a dedicated processor. the first design is by a large number of peripherals and cpu on
2、a chip in the computer system, smaller, more easily integrated into a complex and demanding on the volume control device which. intelsz80 is the first designed in accordance with this idea processor, then on the development of microcontroller and dedicated processors have parted ways.are 8-bit micro
3、controller early or4 bits. one of the most successful is the intel 8031, for a simple, reliable and good performance was a lot of praise. then developed in 8031 out of mcs51 mcu systems. scm systems based on this system until now is still widely used. with the increased requirements of industrial co
4、ntrol field, began a 16-bit microcontroller, because the cost is not satisfactory but have not been very widely used. after 90 years with the great development of consumer electronics, microcontroller technology has been a huge increase. with intel i960 series, especially the later series of widely
5、used arm, 32-bit microcontroller quickly replace high-end 16-bit mcu status and enter the mainstream market. the traditional 8-bit microcontroller performance have been the rapid increase capacity increase compared to 80 the number of times. currently, high-end 32-bit microcontroller clocked over 30
6、0mhz, the performance catching the mid-90s dedicated processor, while the average model prices fall to one u.s. dollars, the most high-end model only 10 dollars.modern scm systems are no longer only in the development and use of bare metal environment, a large number of proprietary embedded operatin
7、g system is widely used in the full range of scm. the handheld computers and cell phones as the core processing of high-end microcontroller can even use a dedicated windows and linux operating systems.scm is more suitable than the specific processor used in embedded systems, so it was up to the appl
8、ication. in fact the number of scm is the worlds largest computer. modern human life used in almost every piece of electronic and mechanical products will be integrated single chip.phone, telephone, calculator, home appliances, electronic toys, handheld computers and computer accessories such as a m
9、ouse with a 1-2 in both the department of scm. personal computer will have a large number of scm in the work. general car with more than 40 scm, complex industrial control systems may even have hundreds of scm in the same time work! scm is not only far exceeds the number of pc and other computing th
10、e sum, or even more than the number of human beingssingle chip, also known as single-chip microcontroller, it is not complete a certain logic chips, but to a computer system integrated into a chip.equivalent to a micro-computer, and computer than just the lack of a microcontroller i / o devices. gen
11、eral talk: a chip becomes a computer. its small size, light weight, cheap, for the study, application and development of facilities provided. at the same time, learning to use the mcu is to understand the principle and structure of the computer the best choice.scm and the computer functions internal
12、ly with similar modules, such as cpu, memory, parallel bus, the same effect as well, and hard disk memory devices, and different is its performance of these components were relatively weak many of our home computer, but the price is low , usually not more than 10 yuan you can do with it . some contr
13、ol for a class is not very complicated electrical work is enough of. we are using automatic drum washing machine, smoke hood, vcd and so on appliances which could see its shadow! it is primarily as a control section of the core componentsit is an online real-time control computer, control-line is th
14、at the scene is needed is a stronger anti-jamming ability, low cost, and this is, and off-line computer (such as home pc), the main difference.mcu is through running, and can be modified. through different procedures to achieve different functions, in particular special unique features, this is anot
15、her device much effort needs to be done, some great efforts are very difficult to do. a not very complex functions if the 50s with the united states developed 74 series, or the 60s cd4000 series of these pure hardware buttoned, then the circuit must be a large pcb board! but if the united states if
16、the 70s with a series of successful scm market, the result will be a drastic change! just because you are prepared by microcomputer programs can achieve high intelligence, high efficiency and high reliability!as the microcontroller on the cost-sensitive, so now the dominant software or the lowest le
17、vel assembly language, which is the lowest level in addition to more than binary machine code language, and as so low why is the use? many high-level language has reached the level of visual programming why is not it? the reason is simply that there is no home computer as a single chip cpu, not as h
18、ard as a mass storage device.a visualization of small high-level language program which even if only one button, will reach tens of k of size! for the home pcs hard drive in terms of nothing, but in terms of the mcu is not acceptable. scm in the utilization of hardware resources to be very high for
19、the job so although the original is still in the compilation of a lot of use. the same token, if the giant computer operating system and applications run up to get home pc, home pc, also can not afford to.can be said that the twentieth century across the three power era, that is, the age of electric
20、ity, the electronic age and has entered into the computer age. however, this computer, usually refers to the personal computer, referred to as pc. it consists of the host, keyboard, monitor and other components. another type of computer, most people do not know how. this computer is to give all kind
21、s of intelligent machines single chip (also known as micro-controller). as the name suggests, this computer system took only a minimal integrated circuit, can be a simple operation and control. because it is small, usually hidden in the charged mechanical stomach in. it is in the device, like the hu
22、man brain plays a role, it goes wrong, the whole plant was paralyzed. now, this microcontroller has a very broad field of use, such as smart meters, real-time industrial control, communications equipment, navigation systems, and household appliances. once all kinds of products were using scm, can se
23、rve to upgrade the effectiveness of products, often in the product name preceded by the adjective - intelligent, such as intelligent washing machines. now some technical personnel of factories or other amateur electronics developers to engage in out of certain products, not the circuit is too compli
24、cated, that function is too simple and can easily be copied. the reason may be stuck in the product did not use a microcontroller or other programmable logic device.the six important part of studying mcu: first, bus:we know that a circuit is always made by the devices connected by wires, in analog c
25、ircuits, the connection does not become a problem because the device is a serial relationship between the general, the device is not much connection between the , but the computer is not the same circuit, it is a microprocessor core, the device must be connected with the microprocessor, the device m
26、ust be coordination between, so they need to connect on a lot, as if still analog circuit like the microprocessor and devices in the connection between the individual, the number of lines will be a little more surprising, therefore the introduction of the microprocessor bus zhong each device gongton
27、g access connections, all devices 8 shuju line all received eight public online, that is the equivalent of all devices together in parallel, but only this does not work, if there are two devices send data at the same time, a 0, a 1, then, whether the receiver received what is it? this situation is n
28、ot allowed, so to be controlled by controlling the line, time-sharing the device to work at any time only one device to send data (which can have multiple devices to receive both). devices data connection is known as the data bus, the device is called line of control all the control bus. internal or
29、 external memory in the microcontroller and other devices have memory cells, the memory cell to be assigned addresses, you can use, distribution, of course, to address given in the form of electrical signals, and as more memory cells, so, for the address allocation the line is also more of these lin
30、es is called the address bus.second, data, address, command.the reason why these three together because of the nature of these three are the same - the number, or are a string of 0 and 1 form the sequence. in other words, addresses, instructions are also data. instruction: from single chip designer
31、provides a number of commonly used instructions with mnemonic we have a strict correspondence between the developer can not be changed by the mcu. address: the search for mcu internal, external storage units, input and output port based on the address of the internal unit value provided by the chip
32、designer is good, can not be changed, the external unit can be single chip developers to decide, but there are a number of address units is a must. third, p0 port, p2 and p3 of the second function i use: beginners often on the p0 port, p2 and p3 port i use the second function puzzled that the second
33、 function and have a switch between the original function of the process, or have a directive, in fact, the port the second feature is automatic, do not need instructions to convert. such as p3.6, p3.7 respectively wr, rd signal, when the microchip processing machines external ram or external i / o
34、port, they are used as a second function, not as a general-purpose i / o port used, so long as a a microprocessor implementation of the movx instruction, there will be a corresponding signal sent from the p3.6 or p3.7, no prior use of commands. in fact not as a general-purpose i / o port use is also
35、 not a no but (user) not as a general-purpose i / o port to use. you can arrange the order of a setb p3.7s instructions, and when the mcu execution to the instruction, the also make p3.7 into a high, but users will not do so because this is usually will cause the system to collapse.fourth, the progr
36、ams implementation:reduction in power after the 8051 microcontroller within the program counter (pc) in the value of 0000 , the process is always from the 0000 units started, that is: the system must exist in rom 0000 this unit , and in 0000 unit must be stored in a single instruction. five, the sta
37、ck: stack is a region, is used to store data, there is no special about the region itself is a part of internal ram, special access to its data storage and the way that the so-called advanced post out backward first out , and the stack has a special data transmission instructions that push and pop ,
38、 has a special expertise in its services unit, that is, the stack pointer sp, whenever a push instruction execution, sp on (in the based on the original value) automatically add 1, whenever the implementation of a pop instruction, sp will (on the basis of the original value) automatically by 1. as t
39、he sp values can be changed with the instructions, so long as the beginning of the process to change the value of the sp, you can set the stack memory unit required, such as the program begins, with an mov sp, # 5fh instructions when set on the stack starting from the memory unit 60h unit. there is
40、always the beginning of the general procedure with such a directive to set the stack pointer, because boot, sp initial value of 07h, 08h this unit from the beginning to stack next, and 08h to 1fh 8031 is the second in the region, three or four working register area, often used, this will lead to con
41、fusion of data. different authors when writing programs, initialize the stack is not exactly the same directive, which is the authors habit. when set up the stack zone, does not mean that the region become a special memory, it can still use the same memory region as normal, but generally the program
42、mer does not regard it as an ordinary memory used.中文翻譯單片機單片機也被稱為微控制器(microcontroller unit),常用英文字母的縮寫mcu表示單片機,它最早是被用在工業(yè)控制領域。單片機由芯片內(nèi)僅有cpu的專用處理器發(fā)展而來。最早的設計理念是通過將大量外圍設備和cpu集成在一個芯片中,使計算機系統(tǒng)更小,更容易集成進復雜的而對體積要求嚴格的控制設備當中。intel的z80是最早按照這種思想設計出的處理器,從此以后,單片機和專用處理器的發(fā)展便分道揚鑣。 早期的單片機都是8位或4位的。其中最成功的是intel的8031,因為簡單可靠而
43、性能不錯獲得了很大的好評。此后在8031上發(fā)展出了mcs51系列單片機系統(tǒng)?;谶@一系統(tǒng)的單片機系統(tǒng)直到現(xiàn)在還在廣泛使用。隨著工業(yè)控制領域要求的提高,開始出現(xiàn)了16位單片機,但因為性價比不理想并未得到很廣泛的應用。90年代后隨著消費電子產(chǎn)品大發(fā)展,單片機技術得到了巨大提高。隨著intel i960系列特別是后來的arm系列的廣泛應用,32位單片機迅速取代16位單片機的高端地位,并且進入主流市場。而傳統(tǒng)的8位單片機的性能也得到了飛速提高,處理能力比起80年代提高了數(shù)百倍。目前,高端的32位單片機主頻已經(jīng)超過300mhz,性能直追90年代中期的專用處理器,而普通的型號出廠價格跌落至1美元,最高端的
44、型號也只有10美元。當代單片機系統(tǒng)已經(jīng)不再只在裸機環(huán)境下開發(fā)和使用,大量專用的嵌入式操作系統(tǒng)被廣泛應用在全系列的單片機上。而在作為掌上電腦和手機核心處理的高端單片機甚至可以直接使用專用的windows和linux操作系統(tǒng)。 單片機比專用處理器更適合應用于嵌入式系統(tǒng),因此它得到了最多的應用。事實上單片機是世界上數(shù)量最多的計算機?,F(xiàn)代人類生活中所用的幾乎每件電子和機械產(chǎn)品中都會集成有單片機。手機、電話、計算器、家用電器、電子玩具、掌上電腦以及鼠標等電腦配件中都配有1-2部單片機。而個人電腦中也會有為數(shù)不少的單片機在工作。汽車上一般配備40多部單片機,復雜的工業(yè)控制系統(tǒng)上甚至可能有數(shù)百臺單片機在同時
45、工作!單片機的數(shù)量不僅遠超過pc機和其他計算的總和,甚至比人類的數(shù)量還要多。 單片機又稱單片微控制器,它不是完成某一個邏輯功能的芯片,而是把一個計算機系統(tǒng)集成到一個芯片上。相當于一個微型的計算機,和計算機相比,單片機只缺少了i/o設備。概括的講:一塊芯片就成了一臺計算機。它的體積小、質(zhì)量輕、價格便宜、為學習、應用和開發(fā)提供了便利條件。同時,學習使用單片機是了解計算機原理與結構的最佳選擇。 單片機內(nèi)部也用和電腦功能類似的模塊,比如cpu,內(nèi)存,并行總線,還有和硬盤作用相同的存儲器件,不同的是它的這些部件性能都相對我們的家用電腦弱很多,不過價錢也是低的,一般不超過10元即可.用它來做一些控制電器一
46、類不是很復雜的工作足矣了。我們現(xiàn)在用的全自動滾筒洗衣機、排煙罩、vcd等等的家電里面都可以看到它的身影!它主要是作為控制部分的核心部件。 它是一種在線式實時控制計算機,在線式就是現(xiàn)場控制,需要的是有較強的抗干擾能力,較低的成本,這也是和離線式計算機的(比如家用pc)的主要區(qū)別。 單片機是靠程序運行的,并且可以修改。通過不同的程序?qū)崿F(xiàn)不同的功能,尤其是特殊的獨特的一些功能,這是別的器件需要費很大力氣才能做到的,有些則是花大力氣也很難做到的。一個不是很復雜的功能要是用美國50年代開發(fā)的74系列,或者60年代的cd4000系列這些純硬件來搞定的話,電路一定是一塊大pcb板!但是如果要是用美國70年代
47、成功投放市場的系列單片機,結果就會有天壤之別!只因為單片機的通過你編寫的程序可以實現(xiàn)高智能,高效率,以及高可靠性! 由于單片機對成本是敏感的,所以目前占統(tǒng)治地位的軟件還是最低級匯編語言,它是除了二進制機器碼以上最低級的語言了,既然這么低級為什么還要用呢?很多高級的語言已經(jīng)達到了可視化編程的水平為什么不用呢?原因很簡單,就是單片機沒有家用計算機那樣的cpu,也沒有像硬盤那樣的海量存儲設備。一個可視化高級語言編寫的小程序里面即使只有一個按鈕,也會達到幾十k的尺寸!對于家用pc的硬盤來講沒什么,可是對于單片機來講是不能接受的。 單片機在硬件資源方面的利用率必須很高才行,所以匯編雖然原始卻還是在大量使
48、用。一樣的道理,如果把巨型計算機上的操作系統(tǒng)和應用軟件拿到家用pc上來運行,家用pc的也是承受不了的。 可以說,二十世紀跨越了三個“電”的時代,即電氣時代、電子時代和現(xiàn)已進入的電腦時代。不過,這種電腦,通常是指個人計算機,簡稱pc機。它由主機、鍵盤、顯示器等組成。還有一類計算機,大多數(shù)人卻不怎么熟悉。這種計算機就是把智能賦予各種機械的單片機(亦稱微控制器)。顧名思義,這種計算機的最小系統(tǒng)只用了一片集成電路,即可進行簡單運算和控制。因為它體積小,通常都藏在被控機械的“肚子”里。它在整個裝置中,起著有如人類頭腦的作用,它出了毛病,整個裝置就癱瘓了?,F(xiàn)在,這種單片機的使用領域已十分廣泛,如智能儀表、實時工控、通訊設備、導航系統(tǒng)、家用電器等。各種產(chǎn)品一旦用上了單片機,就能起到使產(chǎn)品升級換代的功效,常在產(chǎn)品名稱前冠以形容詞“智能型”,如智能型洗衣機等。現(xiàn)在有些工廠的技術人員或其它業(yè)余電子開發(fā)者搞出來的某些產(chǎn)品,不是電路太復雜,就是功能太簡單且極易被仿制。究其原因,可能就卡在產(chǎn)品未使用單片機或其它可編程邏輯器件上。 單片機學習的六大重要部分:一、總線:我們知道,一個電路總是由元器件通過電線連接而
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經(jīng)權益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
- 6. 下載文件中如有侵權或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 【正版授權】 IEC 62680-1-2:2024 EN-FR Universal serial bus interfaces for data and power - Part 1-2: Common components - USB Power Delivery specification
- 2025-2030年中國風電場行業(yè)競爭現(xiàn)狀及投資戰(zhàn)略研究報告
- 2025-2030年中國非食用植物油行業(yè)發(fā)展狀況及營銷戰(zhàn)略研究報告
- 2025-2030年中國雪茄行業(yè)運行狀況及發(fā)展趨勢預測報告
- 2025年湖北省建筑安全員C證考試(專職安全員)題庫附答案
- 2025-2030年中國砂巖行業(yè)運行現(xiàn)狀與發(fā)展策略分析報告
- 2025年安全員-B證(項目經(jīng)理)考試題庫
- 河南職業(yè)技術學院《管理科學》2023-2024學年第二學期期末試卷
- 合肥職業(yè)技術學院《語音信息處理》2023-2024學年第二學期期末試卷
- 慶陽職業(yè)技術學院《電子商務網(wǎng)站設計與管理》2023-2024學年第二學期期末試卷
- 2024-2025學年洛陽市老城區(qū)三年級數(shù)學第一學期期末經(jīng)典試題含解析
- 2024年02月全國2024中國建設銀行遠程智能銀行中心客服代表定向招考筆試歷年參考題庫附帶答案詳解
- 雙線大橋連續(xù)梁剛構專項施工方案及方法
- 美容院前臺接待流程
- 中小學食堂財務培訓
- 國藥現(xiàn)代筆試
- 醫(yī)療器械市場部年度規(guī)劃
- 《商務溝通-策略、方法與案例》課件 第七章 自我溝通
- 按鍵精靈腳本編寫方法
- 節(jié)約集約建設用地標準 DG-TJ08-2422-2023
- 竹簽購銷合同范例
評論
0/150
提交評論