【正文】
能間接尋址。 TCON 寄存器內(nèi)部各位定義如表 所示。 ( 10) P1 口( 1~8 腳):由 ~ 組成, P1 口是一個內(nèi)部帶有上拉電阻的準(zhǔn)8 位雙向 I/0 口 ,能驅(qū)動 4 個 LSTTL 輸入。 ( 4) PSEN( 29 腳):片外程序存 儲器選通信號 ,低電平有效。 ( 6) 通用 I/O 口( 32 個),復(fù)位后為: P0/P1/P2/P3 是 準(zhǔn)雙向口 /弱上拉, P0 口是漏極開路輸出,作為總線擴(kuò)展用時,不用加上拉電阻,作為 I/O 口用時,需加上拉電阻。它最早是被用在工業(yè)控制領(lǐng)域。 模糊控制 的 規(guī)則 有以下三種 : ( 1)專家的經(jīng)驗和知識 ( 2)操作員的操作模式 紙箱溫度傳感器DS 18 B 20單片機(jī)溫度顯示屏直流斬波電路電熱管排氣扇 直流電機(jī)驅(qū)動越限報警鍵盤輸入 5 ( 3)學(xué)習(xí) 模糊控制系統(tǒng)的特點是 : (1) 簡化系統(tǒng)設(shè)計的復(fù)雜性,特別適用于非線性、時變、滯后、模型不完全系統(tǒng)的控制。 ( 5)關(guān)于軟件的設(shè)計部分。s life, while the micro controller with its unique advantages, the electronic products which have a very wide range of applications, so the micro controller and temperature measurement and control of bined it can accurately measure the temperature control to the people a great deal of convenience, so that people39。s lives more fortable, but also to the production department for precision manufacturing devices provide great help. This design is a temperature control system hardware design based on micro controller . The system consists of micro controller, LCD display, temperature sensor, heating pipes, fans and other small modules. The main result of works by the micro controller temperature sensor to the temperature signal has been calculated, obtained by processing, parison and thus to control the heating pipes and a small fan operating status, making the ambient temperature is controlled within a certain range of temperature settings. Through hardware and software debugging showed that the system can achieve the design goal, first the temperature can be displayed in real time on the screen, and can accurately control the working status of heating and cooling ponents, thus bringing down the temperature control at the set temperature within the range of degrees. KEY WORDS : micro controller, temperature control system III 目錄 第一章 緒論 ................................................................................................................ 1 課題的選題背景及生產(chǎn)需求狀況 ................................................................ 1 選題的研究意義 ............................................................................................ 1 論文的主要工作 ............................................................................................ 2 第二章 系統(tǒng)整體設(shè)計 方案與原理 .............................................................................. 2 方案的比較與選擇 ........................................................................................ 3 滯環(huán)控制系統(tǒng) ....................................................................................... 3 模糊 PI 控制系統(tǒng) ................................................................................ 3 模糊 PI 控制系統(tǒng)簡介 .................................................................................. 4 第三章 系統(tǒng)設(shè)計主要芯片及主要硬件的介紹 .......................................................... 5 單片機(jī) STC89C52RC 的結(jié)構(gòu)及工作原理 ...................................................... 6 STC89C52RC 單片機(jī)簡介 .................................................................. 6 單片機(jī)的外圍引腳及其功能 .............................................................. 8 單片機(jī)的定時 /計數(shù)器 ......................................................................... 9 單片機(jī)內(nèi)部結(jié)構(gòu) ................................................................................ 10 主要硬件介紹 .............................................................................................. 13 顯示屏 LCD1602............................................................................... 13 溫度傳感器 DS18B20 ....................................................................... 14 直流電機(jī)驅(qū)動 模塊 L298n ................................................................ 16 第四章 系統(tǒng)整體設(shè)計及硬件模塊設(shè)計 .................................................................... 17 晶振及復(fù)位模塊 .......................................................................................... 17 復(fù)位模塊 ....................................................................................................... 17 溫度采集模塊 .............................................................................................. 18 液晶顯示模塊 .............................................................................................. 18 按鍵輸入模塊 .............................................................................................. 19 升溫模塊 ....................................................................................................... 20 降溫模塊 ....................................................................................................... 21 上下限報警模塊 ........................................................................................... 21 第五章 軟件設(shè)計部分 ................................................................................................ 23 IV 第六章 結(jié)論與展望 .................................................................................................... 24 參 考文獻(xiàn) ...................................................................................................................... 25 致謝 .............................................................................................................................. 26 附錄一:總電路圖 ...................................................................................................... 27 附錄二:電路仿真圖 .................................................................................................. 28 附錄三:實物圖 .......................................................................................................... 29 附錄四:軟件程序 ...................................................................................................... 31 1 第一章 緒論 課題的選題背景及生產(chǎn)需求狀況 隨著電子技術(shù)和微型計算機(jī)的迅速發(fā)展,微機(jī)測量和控制技術(shù)得到了迅速發(fā)展和廣泛應(yīng)用。 ( 7)總結(jié)。 (2) 不依賴于被控對象的精確數(shù)學(xué)模型。 由于 單片 機(jī) 在工業(yè)控制領(lǐng)域的廣泛應(yīng)用,單片機(jī)由僅有 CPU 的專用 處理器 芯片發(fā)展而來。 ( 7) ISP(在系統(tǒng)可編程) /IAP(在應(yīng)用可編程),無需專用 編程器 ,無 需專用 仿真器 ,可通過串口( R