【正文】
這是非常有用的 設備 ,如恒溫 系統(tǒng) , 需要 定期測試他們周圍的溫度,看看他們是否需要打開空調(diào) 或者 加熱器等等 。工作過程為 一個倒計時剛 到達 零 , 它 就會對處理器 發(fā)出一個中斷的 指令。 此外,許多嵌入式微處理器包括各種兼職的 轉換器 。因此, 要先使需要處理的數(shù)據(jù)通過 模擬向數(shù)字轉換 的過程,才能使 傳入的數(shù)據(jù)轉化為處理器可以識別 的形式 。 在工廠 ,可以生產(chǎn) 可擦除 式 只讀存儲器。編譯器和匯編語言是用來打開高級語言程序到一個緊湊機器代碼存儲在微控制器的 存儲過程 。凡 是許多 重要的 中斷源發(fā)出中斷申請 , 都必須中斷,如 電池供電的設備 停止運行 后,微控制器 在 低功耗睡眠狀態(tài)下的處理器必須停止,直到做一些外圍的活動 才重新開始返回當前指令序列。 當中斷服務結束之后 ,再返回原來的指令序列 ,這就是我們通常所說的單片機的中斷系統(tǒng) 。 無 錫 職 業(yè) 技 術 學 院 畢業(yè)設計說明書(英文翻譯) 6 某些 強制性的微控制器 能夠 提供實時應對突發(fā)事件的嵌入式系統(tǒng) 并 控制它們。典型的輸入和輸出設備包括交換機,繼電器,螺線管,發(fā) 光二極管,小 形 或定制的液晶顯示器, 數(shù)碼顯示器等。這些 嵌入其他設備的計算機系統(tǒng) 被稱為嵌入式系統(tǒng)。通過降低尺寸,成本和能耗,設計使用單獨的微處理器,內(nèi)存和輸入 /輸出設備, 能夠使 微控制器 控制更多的進程,更經(jīng)濟。 在睡眠狀態(tài) 時 , CPU時鐘和外設禁用,從而使它們適合用于低功耗和長期持久的電池應用。在時鐘頻率只有 32Mhz 的情況下 ,微操作 系統(tǒng) 往往以非常低的速度相 運行 ,但是這足 夠典型的應用 。 它強調(diào) 高度集成 ,而相比之下, 一個微處理器只包含一個 CPU ( 比如 一臺 PC ) 。 一個微控制器(也 叫 MCU)是一個 微型 計算 芯 片。通常,這些繼承在內(nèi)部的設備可以通過特殊的指令來操作。 比如,一個典型的微控制器只需要一個時鐘發(fā)生器和很少的 RAM和 ROM(或者 EPROM, E2PROM)就可以在軟件和晶振下工作了。它要完成單片機的工作,就必須連接一些其他芯片。近年來為了在指令和數(shù)據(jù)上使用不同的字寬,并提高處理器流水線速度,哈佛結構在微控制器和 DSP也逐漸得到了廣泛的應用。說單片機與通用型中央處理單元芯片不同是因為前者一般很容易配合最小型 的外部支持芯片制成工作計算機。 絕大多數(shù)現(xiàn)在的單片機都是基于馮 它的最大優(yōu)點是體積小,可放在儀表內(nèi)部,但存儲量小,輸入輸出接口簡單,功能較 低。t be able to do anything with the analog signals that may be being sent to it by a device. So the analog to digital converter is used to convert the ining data into a form that the processor can recognize. There is also a digital to analog converter that allows the processor to send data to the device it is controlling. In addition to the converters, many embedded microprocessors include a variety of timers as well. One of the most mon types of timers is the Programmable Interval Timer, or PIT for short. A PIT just counts down from some value to zero. Once it reaches zero, it sends an interrupt to the processor indicating that it has finished counting. This is useful for devices such as thermostats, which periodically test the temperature around them to see if they need to turn 無 錫 職 業(yè) 技 術 學 院 畢業(yè)設計說明書(英文翻譯) 4 the air conditioner on, the heater on, etc. Time Processing Unit or TPU for short. Is essentially just another timer, but more sophisticated. In addition to counting down, the TPU can detect input events, generate output events, and other useful operations. Dedicated Pulse Width Modulation (PWM) block makes it possible for the CPU to control power converters, resistive loads, motors, etc., without using lots of CPU resources in tight t