【正文】
erature, and using the LCD to show the preset value for controlling the temperature. In addition, the clock chip DS1302 is used to show time and the external RAM 6264 is used to save the monitoring data. An alarm will be given by buzzer in time if the temperature exceeds the upper and lower limit value of the temperature. III. HARDWARE DESIGN A. Microcontroller The AT89S51 is a lowpower, highperformance CMOS 8bit microcontroller with 4K bytes of insystem programmable Flash memory. The device is manufactured using Atmel’s highdensity nonvolatile memory technology and is patible with the industrystandard 80C51 instruction set and pinout. The onchip Flash allows the program memory to be reprogrammed insystem or by a conventional nonvolatile memory programmer. By bining a versatile 8bit CPU with insystem programmable Flash on a monolithic chip, the Atmel AT89S51 is a powerful microcontroller which provides a highlyflexible and costeffective solution to many embedded control applications. Minimum system of the microcontroller is shown in Fig. 2. In order to save monitoring data, the 6264 is used as an external RAM. It is a static RAM chip, lowpower with 8K bytes memory. B. Temperature Detection Circuit The temperature sensor is the key part in the system. The Dallas DS18B20 is used, which supports the 1Wire bus interface, and the ONBOARD Patented is used internally. All the sensor parts and the converting circuit are integrated in integrated circuit like a transistor [1]. Its measure range is 55℃ ~125 ℃ , and the precision between 10℃ ~85 ℃ is 177。 and automatically control the temperature when the condition temperature exceeds the upper and lower limit value. By doing so it is to keep the temperature unchanged. The system is of high antijamming, high control precision and flexible design。 DS18B20。 附件 2:外文原文 Design of the Temperature Control System Based on AT89S51 Dr. Leon Gaillard ABSTRACT The principle and functions of the temperature control system based on microcontroller AT89S51 are studied, and the temperature measurement unit consists of the 1Wire bus digital temperature sensor DS18B20. The system can be expected to detect the preset temperature, display time and save monitoring data. An alarm will be given by system if the temperature exceeds the upper and lower limit value of the temperature which can be set discretionarily and then automatic control is achieved, thus the temperature is achieved monitoring intelligently within a certain range. Basing on principle of the system, it is easy to make a variety of other nonlinear control systems so long as the software design is reasonably changed. The system has been proved to be accurate, reliable and satisfied through field practice. KEYWORDS: AT89S51。 V. 結(jié)論 溫 度控制系統(tǒng)具有友好的人機交互界面,硬件簡單,成本低,溫度控制精度高(誤差在177。當(dāng)溫度之間的上限和下限的值,這是不言而喻的溫度控制處理,即需要的溫度升高或降低根據(jù)預(yù)設(shè)值。例如,當(dāng)系統(tǒng)通電后, LCD 應(yīng)該被初始化,啟動顯示器應(yīng)該叫,溫度轉(zhuǎn)換命令時,必須先發(fā)出的時鐘芯片 DS1302也要被初始化。例如,當(dāng)系統(tǒng)通電定時器初始化。例如,當(dāng)系 統(tǒng)通電時間碼將在內(nèi)部單位地址或閃爍標(biāo)志存儲的信息將被清除。全局變量的定義,主要完成對外部接口連接到單片機 AT89S51芯片,內(nèi)存單位和一些特殊的定義的接口定義。但對溫度的檢測,可與 TIMER0計時 1秒,即出現(xiàn)溫度檢測達(dá)到每秒。系統(tǒng)流程主要包括以下 8個步驟: POST(加電自檢),系統(tǒng)啟動,溫度檢測,報警處理,溫度控制,時鐘芯片 DS1302的操作,液晶顯示和鍵盤操作。最后,它被放大功 放 2803A 權(quán)力電機。此外,電機的轉(zhuǎn)速也可以調(diào)整相對按鈕。二:當(dāng)溫度在兩者之間的某處結(jié)束,等于設(shè)定值時,電機停止。有兩個步進 電機的輸出狀態(tài)。 G. 驅(qū)動電路