【正文】
Hz,當(dāng)振蕩頻率為 12MHz時(shí),一個(gè)機(jī)器周期為 1us,這個(gè)速度應(yīng)該說是比較快的。 數(shù)據(jù)存儲器 (RAM): 8051內(nèi)部有 128個(gè) 8位用戶數(shù)據(jù)存儲單元和 128個(gè)專用寄存器單元,它們是統(tǒng)一編址的,專用寄存器只能用于存放 控制指令數(shù)據(jù),用戶只能訪問,而不能用于存放用戶數(shù)據(jù),所以,用戶能使用的的RAM只有 128個(gè),可存放讀寫的數(shù)據(jù),運(yùn)算的中間結(jié)果或用戶定義的字型表。 。 8051是 MCS51系列單片機(jī)的典型產(chǎn)品,我們以這一代表性的機(jī)型進(jìn)行系統(tǒng)的講解。此外, MCS51采用模塊化結(jié)構(gòu),可方便地增刪一個(gè)模塊就可引腳和指令兼容的新產(chǎn)品。根據(jù)信號接收和計(jì)算的結(jié)果 ,可以判斷車輛后左方和后右方是否有障礙物。因此在該系統(tǒng)中 ,利用駕駛員在行駛過程中慣常有的點(diǎn)動(dòng)制動(dòng)動(dòng)作 ,檢測輪胎與路面滑移率 (驅(qū)動(dòng)輪和非驅(qū)動(dòng)輪的轉(zhuǎn)速差與驅(qū)動(dòng)輪速度之比 ),并據(jù)此估算路面的狀8 況。 檢測汽車制動(dòng)器摩擦片的磨損情況使用磨損檢測傳感器。由于 8031不含ROM ,因此擴(kuò)展一片EPROM 2764作為程序存儲器。 e小心左后障礙 。 g 檢測路面狀況 。如何減少交通事故的發(fā)生已成為當(dāng)務(wù)之急。 e . care left rear obstacle。 e . when automobile backs a car , detecting the barrier condition after the automobile。 d . detecting the braking oil quantity。 d . brake oil quantity is below。s application scope increase , can say that it can satisfy the most of application occasions absolutely. MCS51 that is the major parts of personal puter integrated in a heart flat on, make data deliver distance shorten greatly, reliability is higher , traversal speed more piece. Since belonging to chip the personal puter that melts , each function parts structure and the layout in chip reach optimization, the ability of interference rejection strengthens , working is also stabilized relatively. Therefore in industry measure the controlling system, using the only flat microputer is the most ideal option. The single flat microputer belongs to the typical embedded system, so it is low end control systematic best device. 8051 is the typical product of MCS51 series single flat mictoputer, we go on with the type of this representative, which is systematic to explain. 8051 single slices microputer contains the central processing unit and program memory ( ROM ) , data memory ( RAM ) , timer / counter, parallel inputs or outputs(I/O) and serial interface with suspend few big units such as system and the 3 big bus lines such as data bus line, address bus line and control bus , we differentiate explanation: Central processing unit: Central processing unit( CPU ) is the key parts of the entire single flat microputer, which is the processor of 8 data widthes , can handle the 8 data or code of binary system, the plete operation and control input export function etc. And working CPU takes the responsibility for controling, manding and managing entire unit system to coordinate operating. Random access memory ( RAM): 8051 insides the 128 bytes of 8 user data storage elements and the 128 register units for special purpose, which is unified editing addtess, using privately register can only instruct datas used in stocking control, user can only visit , and can not be used to keep the user’s data, so user can RAM of using the only 128, can keep the intermediate result of reading the operation and data that written or the word type table of user definition. Read only memory ( ROM ): 8051 possess 4096 of 8 covered membrane ROM, used in stocking user program original data or form. Timer / counter ( ROM ): 8051 has the two16 and programming timer / counter,which realization is timing or counting to produce suspend used in control program change direction. Parallel inputs or outputs( I/O): 8051 possess the 4 groups of 8 doors of I/O ( P0, P1, P2 or P3 ), which is used in the transmission for external data. The serial mouth of duplex operation The 8051 built in serial the munication mouthes of duplex operation, deliver used in the serial data between other equipment. This serial mouth can use to make asynchronous munication dispatcher ware, and also pawn at the same time shift ware use. 6 Suspend system: 8051 has more than perfect suspend function, and has two Outside suspend, two timing / counters suspend and one serial suspend , the prior rank that can satisfy different control requirement and has 2 levels is selected. Clock circuit The cloc