




已閱讀5頁,還剩14頁未讀, 繼續(xù)免費閱讀
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)
文檔簡介
南 京 理 工 大 學(xué) 紫 金 學(xué) 院畢業(yè)設(shè)計(論文)外文資料翻譯系: 電子工程及光電技術(shù)系 專 業(yè): 電氣工程及其自動化 姓 名: 付仁龍 學(xué) 號: 080405109 (用外文寫)外文出處: /view/c472824ae45 c3b3567ec8b18.html 附 件: 1.外文資料翻譯譯文;2.外文原文。 指導(dǎo)教師評語: 該生所選外文難度適中,譯文基本符合原文的內(nèi)容和思想。語句通順,流利,專業(yè)用語較恰當(dāng)。意思表達合理,完整。成 績簽 名年 月 日注:請將該封面與附件裝訂成冊。附件1:外文資料翻譯譯文 at89c51的概況1 at89c51應(yīng)用單片機廣泛應(yīng)用于商業(yè):諸如調(diào)制解調(diào)器,電動機控制系統(tǒng),空調(diào)控制系統(tǒng),汽車發(fā)動機和其他一些領(lǐng)域。這些單片機的高速處理速度和增強型外圍設(shè)備集合使得它們適合于這種高速事件應(yīng)用場合。然而,這些關(guān)鍵應(yīng)用領(lǐng)域也要求這些單片機高度可靠。健壯的測試環(huán)境和用于驗證這些無論在元部件層次還是系統(tǒng)級別的單片機的合適的工具環(huán)境保證了高可靠性和低市場風(fēng)險。intel 平臺工程部門開發(fā)了一種面向?qū)ο蟮挠糜隍炞C它的at89c51 汽車單片機多線性測試環(huán)境。這種環(huán)境的目標(biāo)不僅是為at89c51 汽車單片機提供一種健壯測試環(huán)境,而且開發(fā)一種能夠容易擴展并重復(fù)用來驗證其他幾種將來的單片機。開發(fā)的這種環(huán)境連接了at89c51。本文討論了這種測試環(huán)境的設(shè)計和原理,它的和各種硬件、軟件環(huán)境部件的交互性,以及如何使用at89c51。1.1 介紹8 位at89c51 chmos 工藝單片機被設(shè)計用于處理高速計算和快速輸入/輸出。mcs51 單片機典型的應(yīng)用是高速事件控制系統(tǒng)。商業(yè)應(yīng)用包括調(diào)制解調(diào)器,電動機控制系統(tǒng),打印機,影印機,空調(diào)控制系統(tǒng),磁盤驅(qū)動器和醫(yī)療設(shè)備。汽車工業(yè)把mcs51 單片機用于發(fā)動機控制系統(tǒng),懸掛系統(tǒng)和反鎖制動系統(tǒng)。at89c51 尤其很好適用于得益于它的處理速度和增強型片上外圍功能集,諸如:汽車動力控制,車輛動態(tài)懸掛,反鎖制動和穩(wěn)定性控制應(yīng)用。由于這些決定性應(yīng)用,市場需要一種可靠的具有低干擾潛伏響應(yīng)的費用-效能控制器,服務(wù)大量時間和事件驅(qū)動的在實時應(yīng)用需要的集成外圍的能力,具有在單一程序包中高出平均處理功率的中央處理器。擁有操作不可預(yù)測的設(shè)備的經(jīng)濟和法律風(fēng)險是很高的。一旦進入市場,尤其任務(wù)決定性應(yīng)用諸如自動駕駛儀或反鎖制動系統(tǒng),錯誤將是財力上所禁止的。重新設(shè)計的費用可以高達500k 美元,如果產(chǎn)品族享有同樣內(nèi)核或外圍設(shè)計缺陷的話,費用會更高。另外,部件的替代品領(lǐng)域是極其昂貴的,因為設(shè)備要用來把模塊典型地焊接成一個總體的價值比各個部件高幾倍。為了緩和這些問題,在最壞的環(huán)境和電壓條件下對這些單片機進行無論在部件級別還是系統(tǒng)級別上的綜合測試是必需的。intel chandler 平臺工程組提供了各種單片機和處理器的系統(tǒng)驗證。這種系統(tǒng)的驗證處理可以被分解為三個主要部分。系統(tǒng)的類型和應(yīng)用需求決定了能夠在設(shè)備上執(zhí)行的測試類型。1.2 at89c51提供以下標(biāo)準(zhǔn)功能:4k 字節(jié)flash 閃速存儲器,128 字節(jié)內(nèi)部ram,32 個i/o 口線,2 個16 位定時/計數(shù)器,一個5 向量兩級中斷結(jié)構(gòu),一個全雙工串行通信口,片內(nèi)振蕩器及時鐘電路。同時,at89c51 降至0hz 的靜態(tài)邏輯操作,并支持兩種可選的節(jié)電工作模式。空閑方式體制cpu 的工作,但允許ram,定時/計數(shù)器,串行通信口及中斷系統(tǒng)繼續(xù)工作。掉電方式保存ram 中的內(nèi)容,但振蕩器體制工作并禁止其他所有不見工作直到下一個硬件復(fù)位。 圖1-2-1 at89c51 方框圖1.3引腳功能說明vcc:電源電壓gnd:地p0 口:p0 口是一組8 位漏極開路型雙向i/o 口,也即地址/數(shù)據(jù)總線復(fù)用。作為輸出口用時,每位能吸收電流的方式驅(qū)動8 個ttl 邏輯門電路,對端口寫“1”可作為高阻抗輸入端用。在訪問外部數(shù)據(jù)存儲器或程序存儲器時,這組口線分時轉(zhuǎn)換地址(低8 位)和數(shù)據(jù)總線復(fù)用,在訪問期間激活內(nèi)部上拉電阻。在flash 編程時,p0 口接受指令字節(jié),而在程序校驗時,輸出指令字節(jié),校驗時,要求外接上拉電阻。p1 口:p1 是一個帶內(nèi)部上拉電阻的8 位雙向i/o 口,p1 的輸出緩沖級可驅(qū)動(吸收或輸出電流)4 個ttl 邏輯門電路。對端口寫“1”,通過內(nèi)部的上拉電阻把端口拉到高電平,此時可作輸入口。作為輸入口使用時,因為內(nèi)部存在上拉電阻,某個引腳被外部信號拉低時會輸出一個電流(iil)。flash 編程和程序校驗期間,p1 接受低8 位地址。p2 口:p2 是一個帶有內(nèi)部上拉電阻的8 位雙向i/o 口,p2 的輸出緩沖級可驅(qū)動(吸收或輸出電流)4 個ttl 邏輯門電路。對端口寫“1”,通過內(nèi)部的上拉電阻把端口拉到高電平,此時可作輸入口。作為輸入口使用時,因為內(nèi)部存在上拉電阻,某個引腳被外部信號拉低時會輸出一個電流(iil)。在訪問外部程序存儲器或16 位四肢的外部數(shù)據(jù)存儲器(例如執(zhí)行movx dptr指令)時,p2 口送出高8 位地址數(shù)據(jù),在訪問8 位地址的外部數(shù)據(jù)存儲器(例如執(zhí)行movx ri 指令)時,p2 口線上的內(nèi)容(也即特殊功能寄存器(sfr)區(qū)中r2 寄存器的內(nèi)容),在整個訪問期間不改變。flash 編程和程序校驗時,p2 也接收高位地址和其他控制信號。p3 口:p3 是一個帶有內(nèi)部上拉電阻的8 位雙向i/o 口,p3 的輸出緩沖級可驅(qū)動(吸收或輸出電流)4 個ttl 邏輯門電路。對端口寫“1”,通過內(nèi)部的上拉電阻把端口拉到高電平,此時可作輸入口。作為輸入口使用時,因為內(nèi)部存在上拉電阻,某個引腳被外部信號拉低時會輸出一個電流(iil)。p3 口還接收一些用于flash 閃速存儲器編程和程序校驗的控制信號。rst:復(fù)位輸入。當(dāng)振蕩器工作時,rst 引腳出現(xiàn)兩個機器周期以上高電平將使單片機復(fù)位。ale/prog:當(dāng)訪問外部程序存儲器或數(shù)據(jù)存儲器時,ale(地址鎖存允許)輸出脈沖用于鎖存地址的低8 位字節(jié)。即使不訪問外部存儲器,ale 仍以時鐘振蕩頻率的1/6 輸出固定的正脈沖信號,因此它可對外輸出時鐘或用于定時目的。要注意的是,每當(dāng)訪問外部數(shù)據(jù)存儲器時將跳過一個ale 脈沖。對flash 存儲器編程期間,該引腳還用于輸入編程脈沖(prog)。如有必要,可通過對特殊功能寄存器(sfr)區(qū)中的8eh 單元d0 位置位,可禁止ale 操作。該位置位后,只有一條movx 和movc 指令ale 才會被激活。此外,該引腳會被微弱拉高,單片機執(zhí)行外部程序時,應(yīng)設(shè)置ale 無效。psen:程序存儲允許輸出是外部程序存儲器的讀選通型號,當(dāng)89c51 由外部存儲器取指令(或數(shù)據(jù))時,每個機器周期兩次psen 有效,即輸出兩個脈沖。在此期間,當(dāng)訪問外部數(shù)據(jù)存儲器,這兩次有效的psen 信號不出現(xiàn)。ea/vpp:外部訪問允許。欲使cpu 僅訪問外部程序存儲器(地址為0000hffffh),ea 端必須保持低電平(接地)。需注意的是:如果加密位lb1 被編程,復(fù)位時內(nèi)部會鎖存ea 端狀態(tài)。如ea 端為高電平(接vcc 端),cpu 則執(zhí)行內(nèi)部程序存儲器中的指令。flash 存儲器編程時,該引腳加上+12v 的編程允許電源vpp,當(dāng)然這必須是該器件使用12v 編程電壓vpp。xtal1:振蕩器反相放大器及內(nèi)部時鐘發(fā)生器的輸入端。xtal2:振蕩器反相放大器的輸出端。89c51 中有一個用于構(gòu)成內(nèi)部振蕩器的高增益反相放大器,引腳xtal1 和xtal2分別是該放大器的輸入端和輸出端。這個放大器與作為反饋元件的片外石英晶體或陶瓷諧振器一起構(gòu)成自激振蕩器,振蕩電路參見圖5。外接石英晶體或陶瓷諧振器及電容c1、c2 接在放大器的反饋回路中構(gòu)成并聯(lián)振蕩電路。對電容c1、c2 雖沒有十分嚴格的要求,但電容容量的大小會輕微影響振蕩頻率的高低、振蕩器工作的穩(wěn)定性、起振的難易程度及溫度穩(wěn)定性,如果使用石英晶體,我們推薦電容使用30pf10 pf,而如使用陶瓷諧振器建議選擇40pf10pf。用戶也可以采用外部時鐘。這種情況下,外部時鐘脈沖接到xtal1 端,即內(nèi)部時鐘發(fā)生器的輸入端xtal2 則懸空。掉電模式:在掉電模式下,振蕩器停止工作,進入掉電模式的指令是最后一條被執(zhí)行的指令,片內(nèi)ram 和特殊功能寄存器的內(nèi)容在終止掉電模式前被凍結(jié)。推出掉電模式的唯一方法是硬件復(fù)位,復(fù)位后將重新定義全部特殊功能寄存器但不改變ram 中的內(nèi)容,在vcc 恢復(fù)到正常工作電平前,復(fù)位應(yīng)無效,且必須保持一定時間以使振蕩器重啟動并穩(wěn)定工作。89c51 的程序存儲器陣列是采用字節(jié)寫入方式編程的,每次寫入一個字符,要對整個芯片的eprom 程序存儲器寫入一個非空字節(jié),必須使用片擦除的方法將整個存儲器的內(nèi)容清楚。2 編程方法編程前,設(shè)置好地址、數(shù)據(jù)及控制信號,編程單元的地址加在p1 口和p2 口的p2.0p2.3(11 位地址范圍為0000h0fffh),數(shù)據(jù)從p0口輸入,引腳p2.6、p2.7 和p3.6、p3.7 的電平設(shè)置見表6,pseb 為低電平,rst保持高電平,ea/vpp 引腳是編程電源的輸入端,按要求加上編程電壓,ale/prog引腳輸入編程脈沖(負脈沖)。編程時,可采用420mhz 的時鐘振蕩器,89c51 編程方法如下:在地址線上加上要編程單元的地址信號在數(shù)據(jù)線上加上要寫入的數(shù)據(jù)字節(jié)。激活相應(yīng)的控制信號。在高電壓編程方式時,將ea/vpp 端加上+12v 編程電壓。每對flash 存儲陣列寫入一個字節(jié)或每寫入一個程序加密位,加上一個ale/prog 編程脈沖。改變編程單元的地址和寫入的數(shù)據(jù),重復(fù)15 步驟,知道全部文件編程結(jié)束。每個字節(jié)寫入周期是自身定時的,通常約為1.5ms。數(shù)據(jù)查詢89c51 單片機用數(shù)據(jù)查詢方式來檢測一個寫周期是否結(jié)束,在一個寫周期中,如需要讀取最后寫入的那個字節(jié),則讀出的數(shù)據(jù)的最高位(p0.7)是原來寫入字節(jié)的最高位的反碼。寫周期開始后,可在任意時刻進行數(shù)據(jù)查詢。2.1ready/busy:字節(jié)編程的進度可通過ready/busy 輸出信號檢測,編程期間,ale 變?yōu)楦唠娖健癶”后p3.4(ready/busy)端被拉低,表示正在編程狀態(tài)(忙狀態(tài))。編程完成后,p3.4 變?yōu)楦唠娖奖硎緶?zhǔn)備就緒狀態(tài)。程序校驗:如果加密位lb、lb2 沒有進行編程,則代碼數(shù)據(jù)可通過地址和數(shù)據(jù)線讀回原編寫的數(shù)據(jù),采用下圖的電路,程序存儲器的地址由p1 口和p2 口的p2.0p2.3 輸入,數(shù)據(jù)由p0 口讀出,p206、p2.7 和p3.6、p3.7 的控制信號見表6,psen 保持低電平,ale、ea 和rst 保持高電平。校驗時,p0 口必須接上10k 左右的上拉電阻。圖2-1-1 編程電路 圖2-2-2 校驗電路2.2芯片擦除:利用控制信號的正確組合(表6)并保持ale/prog 引腳10ms 的低電平脈沖寬度即可將eprom 陣列(4k 字節(jié))和三個加密位整片擦除,代碼陣列在片擦除操作中將任何非空單元寫入”1”,這步驟需在編程之前進行。2.3讀片內(nèi)簽名字節(jié):89c51 單片機內(nèi)有3 個簽名字節(jié),地址為030h、031h 和032h。于聲明該器件的廠商、號和編程電壓。讀簽名字節(jié)的過程和單元030h、031h 和032h的正常校驗相仿,只需要將p3.6 和p3.7 保持低電平,返回值意義如下:(030h) = 1eh 聲明產(chǎn)品由atmel 公司制造。(031h) = 51h 聲明為89c51 單片機。(032h) = ffh 聲明為12v 編程電壓。(032h) = 05h 聲明為5 編程電壓。2.4 編程接口:采用控制信號的正確組合可對flash 閃速存儲陣列中的每一代碼字節(jié)進行寫入和存儲器的整片擦除,寫操作周期是自身定時的,初始化后它將自動定時到操作完成。微機接口實現(xiàn)兩種信息形式的交換。在計算機之外,由電子系統(tǒng)所處理的信息以一種物理信號形式存在,但在程序中,它是用數(shù)字表示的。任一接口的功能都可分為以某種形式進行數(shù)據(jù)庫變換的一些操作,所以外部和內(nèi)部形式的轉(zhuǎn)換是由許多步驟完成的。模擬-數(shù)字轉(zhuǎn)換器(adc)用來將連續(xù)變化信號變成相應(yīng)的數(shù)字量,這數(shù)字量可是可能性的二進制數(shù)值中的一固定值。如果傳感器輸出不是連續(xù)變化的,就不需模擬-數(shù)字轉(zhuǎn)換。這種情況下,信號調(diào)理單元必須將輸入信號變換成為另一信號,也可直接與接口的下一部分,即微計算機本身的輸入輸出單元相連接。輸出接口采用相似的形式,明顯的差別在于信息流的方向相反;是從程序到外部世界。這種情況下,程序可稱為輸出程序,它監(jiān)督接口的操作并完成數(shù)字-模擬轉(zhuǎn)換器(dac)所需數(shù)字的標(biāo)定。該子程序依次送出信息給輸出器件,產(chǎn)生相應(yīng)的電信號,由dac 轉(zhuǎn)換成模擬形式。最后,信號經(jīng)調(diào)理(通常是放大)以形成適應(yīng)于執(zhí)行器操作的形式。在微機電路中使用的信號幾乎總是太小而不能被直接地連到“外部世界”,因而必須用某種形式將其轉(zhuǎn)換成更適宜的形式。接口電路部分的設(shè)計是使用微機的工程師所面臨最重要的任務(wù)之一。我們已經(jīng)了解到微機中,信號以離散的位形式表示。當(dāng)微機要與只有打開或關(guān)閉操作的設(shè)備相連時,這種數(shù)字形式是最有用的,這里每一位都可表示一開關(guān)或執(zhí)行器的狀態(tài)。為了解決實際問題,一個單片機不僅包括cpu,程序和數(shù)據(jù)存儲器,另外,它必須含有通過cpu 訪問外部信息的硬件。一旦cpu 收集到數(shù)據(jù)信息和流程,它必須能夠改變外部領(lǐng)域的一部分,這些硬件設(shè)備稱作外圍設(shè)備,它們是cpu 通往外部的窗口。單片機可利用外圍設(shè)備中最基本的用于一般用途的i/o 接口,每個i/o 接口既可作為輸入端又可作為輸出端,每個i/o 接口的功能取決與程序初始化階段對數(shù)據(jù)方位寄存器相應(yīng)位進行置一和清零操作,通過cpu 指令對數(shù)據(jù)寄存器相應(yīng)位進行置一和清零來置一和清零輸出端口,同樣輸入端口邏輯位也可以通過cpu 指令訪問。一些類型的串行口單元允許cpu 與外部設(shè)備進行串口通信,用串口位代替平行位進行通信需要少許的i/o 口,這樣使通信費用降低但速度也相對慢些。串口傳送可以同步也可以異步。附件2:外文原文the general situation of at89c51chapter 1 the application of at89c51microcontrollers are used in a multitude of commercial applications such as modems, motor-control systems, air conditioner control systems, automotive engine and among others. the high processing speed and enhanced peripheral set of these microcontrollers make them suitable for such high-speed event-based applications. however, these critical application domains also require that these microcontrollers are highly reliable. the high reliability and low market risks can be ensured by a robust testing process and a proper tools environment for the validation of these microcontrollers both at the component and at the system level. intel plaform engineering department developed an object-oriented multi-threaded test environment for the validation of its at89c51 automotive microcontrollers. the goals of thisenvironment was not only to provide a robust testing environment for the at89c51 automotive microcontrollers, but to develop an environment which can be easily extended and reused for the validation of several other future microcontrollers. the environment was developed in conjunction with microsoft foundation classes (at89c51). the paper describes the design and mechanism of this test environment, its interactions with various hardware/software environmental components, and how to use at89c51.1.1 introductionthe 8-bit at89c51 chmos microcontrollers are designed to handle high-speedcalculations and fast input/output operations. mcs 51 microcontrollers are typically used for high-speed event control systems. commercial applications include modems,motor-control systems, printers, photocopiers, air conditioner control systems, disk drives,and medical instruments. the automotive industry use mcs 51 microcontrollers in engine-control systems, airbags, suspension systems, and antilock braking systems (abs). the at89c51 is especially well suited to applications that benefit from its processing speed and enhanced on-chip peripheral functions set, such as automotive power-train control, vehicle dynamic suspension, antilock braking, and stability control applications. because of these critical applications, the market requires a reliable cost-effective controller with a low interrupt latency response, ability to service the high number of time and event driven integrated peripherals needed in real time applications, and a cpu with above average processing power in a single package. the financial and legal risk of having devices that operate unpredictably is very high. once in the market, particularly in mission criticalapplications such as an autopilot or anti-lock braking system, mistakes are financiallyprohibitive. redesign costs can run as high as a $500k, much more if the fix means 2 back annotating it across a product family that share the same core and/or peripheral design flaw. in addition, field replacements of components is extremely expensive, as the devices are typically sealed in modules with a total value several times that of the component. to mitigate these problems, it is essential that comprehensive testing of the controllers be carried out at both the component level and system level under worst case environmental and voltage conditions.this complete and thorough validation necessitates not only a well-defined process but also a proper environment and tools to facilitate and execute the mission successfully.intel chandler platform engineering group provides post silicon system validation (sv) of various micro-controllers and processors. the system validation process can be broken into three major parts.the type of the device and its application requirements determine which types of testing are performed on the device.1.2 the at89c51 provides the following standard features: 4kbytes of flash, 128 bytes of ram, 32 i/o lines, two 16-bittimer/counters, a five vector two-level interrupt architecture,a full duple ser -ial port, on-chip oscillator and clock circuitry.in addition, the at89c51 is designed with static logic for operation down to zero frequency and supports two software selectable power saving modes. the idle mode stops the cpu while allowing the ram, timer/counters,serial port and interrupt sys -tem to continue functioning. the power-down mode saves the ram contents but freezes the oscil lator disabling all other chip functions until the next hardware reset.figure 1-2-1block diagram1-3pin descriptionvcc supply voltage.gnd ground.port 0:port 0 is an 8-bit open-drain bi-directional i/o port. as an output port, each pin cansink eight ttl inputs. when 1s are written to port 0 pins, the pins can be used as highimpedance inputs.port 0 may also be configured to be the multiplexed loworder address/data busduring accesses to external program and data memory. in this mode p0 has internalpullups.port 0 also receives the code bytes during flash programming,and outputs the codebytes during program verification. external pullups are required during programverification.port 1:port 1 is an 8-bit bi-directional i/o port with internal pullups.the port 1 output buffers can sink/so -urce four ttl inputs.when 1s are written to port 1 pins they are pulled high by the internal pullups and can be used as inputs. as inputs, port 1 pins that are externally being pulled low will source current (iil) because of the internal pullups.port 1 also receives the low-order address bytes during flash programming and verification.port 2:port 2 is an 8-bit bi-directional i/o port with internal pullups.the port 2 outputbuffers can sink/source four ttl inputs.when 1s are written to port 2 pins they arepulled high by the internal pullups and can be used as inputs. as inputs, port 2 pins that are externally being pulled low will source current (iil) because of the internal pullups. port 2 emits the high-order address byte during fetches from external program memory and during accesses to port 2 pins that are externally being pulled low will source current (iil) because of the internal pullups.port 2 emits the high-order address byte during fetches from external program memory and during accesses to external data memory that use 16-bit addresses (movxdptr). in this application, it uses strong internal pull-ups when emitting 1s. during accesses to external data memory that use 8-bit addresses (movx ri), port 2 emits the contents of the p2 special function register.port 2 also receives the high-order address bits and some control signals durin flash programming and verification.port 3:port 3 is an 8-bit bi-directional i/o port with internal pullups.the port 3 outputbuffers can sink/sou -rce four ttl inputs.when 1s are written to port 3 pins they are pulled high by the internal pullups and can be used as inputs. as inputs,port 3 pins that are externally being pulled low will source current (iil) because of the pullups.port 3 also serves the functions of various special featuresof the at89c51 as listed below:rst:reset input. a high on this pin for two machine cycles while the oscillator is running resets the device.ale/prog:address latch enable output pulse for latching the low byte of the address duringaccesses to external memory.this pin is also the program pulse input (prog) during flash programming.in normal operation ale is emitted at a constant rate of 1/6 the oscillator frequency,and may be used for external timing or clocking purposes. note, however, that one alepulse is skipped duri -ng each access to external datamemory.if desired, ale operationcan be disabled by setting bit 0 of sfr location 8eh. with the bit set, ale is active onlyduring a movx or movc instruction. otherwise, the pin is weakly pulled high. settingthe ale-disable bit has no effect if the microcontroller is in external execution mode.psen:program store enable is the read strobe to external program memory. when theat89c51 is executing code from external program memory, psen is activated twiceeach machine cycle, except that two psen activations are skipped during each access toexternal data memory.ea/vpp:external access enable. ea must be strapped to gnd in order to enable the deviceto fetch code from external program memory locations starting at 0000h up to ffffh.note, however, that if lock bit 1 is programmed, ea will be internally latched onreset.ea should be strapped to vcc for internal program executions. this pin alsreceives the 12-volt programming enable voltage (vpp) during flash programming, forparts that require 12-volt vpp.xtal1:input to the inverting oscillator amplifier and input to the internal clock operatingcircuit. xtal2 :output from the inverting oscillator amplifier.oscillator characteristicsxtal1 and xtal2 are the input and output, respectively, of an inverting amplifierwhich can be configured for use as an on-chip oscillator, as shown in figure 1. either aquartz crystal or ceramic resonator may be used. to drive the device from an externalclock source, xtal2 should be left unconnected while xtal1 is driven as shown in figure 2.there are no requirements on the duty cycle of the external clock signal, since the input to the internal clocking circuitry is through a divide-by-two flip-flop, but minimum and maximum voltage high and low time specifications must be observed. idle mode in idle mode, the cpu puts itself to sleep while all the onchip peripherals remain active. the mode is invoked by software. the content of the on-chip ram and all the special functions registers remain unchanged during this mode. the idle mode can be terminated by any enabled interrupt or by a hardware reset. it should be noted that when idle is terminated by a hard ware reset, the device normally resumes program execution, from where it left off, up to two machine cycles before the internal reset algorithm takes control. on-chip hardware inhibits access to internal ram in this event, but access to the port pins is not inhibited. to eliminate the possibility of an unexpected write to a port pin when idle is terminated by reset, the instruction following the one that invokes idle should not be one that writes to a port pin or to external memory. power-down modein the power-down mode, the oscillator is stopped, and the instruction that invokes power-down is the last instruction executed. the on-chip ram and special function registers retain their values until the power-down mode is terminated. the only exit from power-down is a hardware reset. reset redefines the sfrs but does not change the on-chip ram. the reset should not be activated before vcc is restored to its normal operating level and must be held active long enough to allow the oscillator to restart and stabilize.the at89c51 code memory array is programmed byte-bybyte in either programming mode. to program any nonblank byte in the on-chip flash memory, the entire memory must be erased using the chip erase mode.2 programming algorithmbefore programming the at89c51, the address, data and control signals should be set up according to the flash programming mode table and figure 3 and figure 4. to program the at89c51, take the following steps.1. input the desired memory location on the address lines.2. input the appropriate data byte on the data lines. 3. activate the correct combination of control signals. 4. raise ea/vpp to 12v for the high-voltage programming mode. 5. pulse ale/prog once to program a byte in the flash array or the lock bits. the byte-write cycle is self-timed and typically takes no more than 1.5 ms. repeat steps 1 through 5, changing the address and data for the entire array or until the end of the object file is reached. data polling: the at89c51 features data polling to indicate the
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2024年全自動變焦照相機項目資金申請報告代可行性研究報告
- 2024年變頻器柜體系統(tǒng)項目資金籌措計劃書
- 2025年河南省三門峽市單招職業(yè)適應(yīng)性測試題庫匯編
- 2025年湖北省荊門市單招職業(yè)傾向性測試題庫匯編
- 2025年黑龍江商業(yè)職業(yè)學(xué)院單招職業(yè)適應(yīng)性測試題庫一套
- 兒童樂園裝修合同
- 2025年度安全培訓(xùn)與操作規(guī)范服務(wù)協(xié)議
- 2025年度員工勞動合同終止及生活困難補助協(xié)議
- 2025陜西省安全員C證考試(專職安全員)題庫附答案
- 2025年度房屋贈與及物業(yè)管理權(quán)轉(zhuǎn)移合同
- 關(guān)于中小企業(yè)“融資難”問題的對策研究-基于臺灣經(jīng)驗和啟示
- 固體廢棄物管理培訓(xùn)
- 硬件工程師職業(yè)生涯規(guī)劃
- 【高新技術(shù)企業(yè)所得稅稅務(wù)籌劃探析案例:以科大訊飛為例13000字(論文)】
- 提升管理層領(lǐng)導(dǎo)力的酒店管理培訓(xùn)課程
- 思維導(dǎo)圖在初中英語復(fù)習(xí)課中的應(yīng)用研究的中期報告
- 絕對干貨!國有企業(yè)總經(jīng)理辦公會決策事項及總經(jīng)理職責(zé)清單
- 高教社2023馬工程國際私法學(xué)教學(xué)課件u15
- 2022年春新教科版科學(xué)六年級下冊第4單元《物質(zhì)的變化》教案
- 蘇教版六年級下冊數(shù)學(xué) 用“轉(zhuǎn)化”的策略解決問題 教案(教學(xué)設(shè)計)
- 2-變電站安全工器具
評論
0/150
提交評論