【正文】
中相似的構(gòu)造和維護問題。存儲是利用存儲器電路,而 從系統(tǒng)中輸入和輸出 的信息傳輸則是利用特定的輸入 /輸出( I/O)電路。 現(xiàn)如今,以微 處理器為基礎(chǔ)的 系統(tǒng) 從常規(guī)的處理方法中分離了出來 ,它將 信息的處理, 信息的 存儲和 信息的 傳輸三個功能分離形成不同的系統(tǒng)單元。 單片機控制系統(tǒng) 廣義地說, 微型計算機控制系統(tǒng)(單片機控制系統(tǒng)) 是用于處理信息的,這種 被用于處理的 信息可以是電話交談, 也可以是 儀器 的 讀數(shù)或 者是一個 企業(yè) 的 帳戶,但是各種情況下都涉及 到 相同的主要操作:信息 的 處理 、信息的 存儲和 信息的 傳遞。這種 主要將系統(tǒng)分成 三個主要單元的分離方法是馮 諾依曼在 20 世紀 40 年代所設(shè)想出來的,并且是針對微計算機的設(shè)想。要在一個 以 微處理器 為基礎(chǔ)的 時鐘中找出執(zhí)行 具有 計數(shù)功能的一個特殊 的 硬件 組成部分 是不可能的,因為時間存儲在存儲器中,而在固定的時間間隔下由微處理器控制增值。 圖 微型計算機的三個組成部分 圖 算機中這三個單元 在一個微處理器控制系統(tǒng)中 是如何按照機器中的信息通信方式而聯(lián)接起來的。 在每一種情況下, 由于概念上的計算機存儲器更像一個公文柜,上述的 “存儲器 ”一詞是非常不恰當?shù)?;信?被 存放在一系列已 數(shù)字標記過的 的 “箱子 ”中,而且可 以按照 問題由 “箱子 ”的序列號進行 相關(guān) 信息的參考定位 。 ROM可像 RAM一樣被讀取,但與 RAM不一樣的是不能用來存儲可變的信息。 微處理器在程序控制下處理數(shù)據(jù),并控制流向和來自存儲器和輸入 /輸出裝置的信息流。這通常是低成本應(yīng)用情況,例如用于微波爐和自動洗衣機的控制器。 微計算機的另一主要工程應(yīng)用是在過程控制中??刹捎脙煞N處理,將控制器做成一種通用的微計算機,正像較強版本的業(yè)余計算機那樣;或者做成 “包裹 ”式系統(tǒng),按照像電磁繼電器那樣的較老式的技術(shù)進行設(shè)計,來取代控制器。 盡管大規(guī)模集成電路的應(yīng)用使小型和微型計算機的差別變得 “模糊 ”,更復雜的過程控制器需要小型計算機實現(xiàn)他們的過程。壓力是一種普遍的工藝狀態(tài),它也是這個星球上的一個生活條件:我們生活在向上延伸許多英里的大氣海洋的底部。壓力的測量和控制,或者壓力的不足—真空,在典型的過程控制中是極為重要的。壓力測量是一個例外,但是,如果要離測量點幾百英尺外指示或記錄某種危險化學品的高壓,就會有來自這個壓力所載的化學品所引發(fā)的危險。這也是最少數(shù)量的操作者有效的運行工廠成為現(xiàn)實。氣動變送器的標準輸出范圍是 20~ 100kPa, 這信號幾乎在全球使用?;谟嬎銠C或微處理器的儀器或控制系統(tǒng)的應(yīng)用正推動這類信號的應(yīng)用不斷增加。這里,輸出的電信號( 4~ 20mA DC),而輸入的過程壓力( 0~ 600kPa),這樣增益就為 : 此外我們在本設(shè)計中還必須對溫度進行測量,溫度測量在工業(yè)控制中是很重 要的,因為它作為系統(tǒng)或產(chǎn)品狀態(tài)的直接指標,或者作為如反應(yīng)率、能量流、渦輪機效率和潤滑質(zhì)量等間接指標。 電氣系統(tǒng)的優(yōu)點包括高的精度和靈敏度,能實現(xiàn)開關(guān)切換或掃描多個測量點,可在測量元件和控制器之間長距離傳輸,出現(xiàn)事故時可調(diào)換元件,快速響應(yīng), 以及具有測量高溫的能力。片上閃存程序存儲器可以編程就可以在系統(tǒng)或由傳統(tǒng)的非易失性存儲器編程。空閑模式時 CPU停止工作,而 RAM,定時 /計數(shù)器,串行口和中斷系統(tǒng)繼續(xù)工作。 P0口: P0口為一個 8位 漏級開路雙向 I/O口,每腳可吸收 8TTL門電流。 P1口: P1口是一個內(nèi)部提供上拉電阻的 8位雙向 I/O口, P1口緩沖器能接收輸出 4TTL門電流。并因此作為輸入時, P2口的管腳被外部拉低,將輸出電流。 P2口在 FLASH編程和校驗時接收高八位地址信號和控制信 號。 RST 復位輸入。請注意,但是,一個 ALE脈沖被跳過在每次訪問外部數(shù)據(jù)存儲器。設(shè)置的 ALE 禁用位微控制器沒有影響,如果在外部執(zhí)行模式。因此它可用作對外部輸出 的脈沖或用于定時目的。另外,該引腳被略微拉高。但在訪問外部數(shù)據(jù)存儲器時,這兩次有效的 /PSEN信號將不出現(xiàn)。 XTAL1:反向振蕩放大器的輸入及內(nèi)部時鐘工作電路的輸入。石晶振蕩和陶瓷振蕩均可采用。 this information may be telephone conversation, instrument read or a pany?s accounts, but in each case the same main type of operation are involved: the processing, storage and transmission of information. in conventional electronic design these operations are bined at the function level。 the controller can be implemented as a generalpurpose microputer rather like a more robust version lf a hobby puter, or as a ?packaged? system, signed for replacing controllers based on older technologies such as electromagic relays. In the former case the system would probably be programmed in conventional programming languages such as the ones to9 be introduced later, while in the other case a specialpurpose language might be used, for example one which allowed the function of the controller to be described in terms of relay interconnections, In either case programs can be stored in RAM, which allows them to be altered to suit changes in application, but this makes the overall system vulnerable to loss lf power unless batteries are used to ensure continuity of supply. Alternatively programs can be stored in ROM, in which case they virtually bee part of the electronic ?hardware? and are often referred to as firmware. More sophisticated process controllers require miniputers for their implementation, although the use lf large scale integrated circuits ?the distinction between mini and microputers, Products and process controllers of various kinds represent the majority of presentday microputer applications, the exact figures depending on one?s interpretation of the word ?product?. Virtually all engineering and scientific uses of microputers can be assigned to one or other of these categories. But in the system we most study Pressure and Pressure Transmitters. Pressure arises when a force is applied over an area. Provided the force is one Newton and uniformly over the area of one square meters, the pressure has been designated one Pascal. Pressure is a universal processing condition. It is also a condition of life on the pla: we live at the bottom of an atmospheric ocean that extends upward for many miles. This mass of air has weight, and this weight pressing downward causes atmospheric pressure. Water, a fundamental necessity of life, is supplied to most of us under pressure. In the typical process plant, pressure influences boiling point temperatures, condensing point temperatures, process efficiency, costs, and other important factors. The measurement and control of pressure or lack of itvacuumin the typical process plant is critical. The working instruments in the plant usually include simple pressure gauges, precision recorders and indicators, and pneumatic and electronic pressure transmitters. A pressure transmitter makes a pressure measurement and generates either a pneumatic or electrical signal output that is proportional to the pressure being sensed. In the process plant, it is impractical to locate the control instruments out in the place near the process. It is also true that most measurements are not easily transmitted from some remote location. Pressure m