基于單片機(jī)的溫度控制器系統(tǒng)的設(shè)計(jì).doc
約62頁(yè)DOC格式手機(jī)打開(kāi)展開(kāi)
基于單片機(jī)的溫度控制器系統(tǒng)的設(shè)計(jì),摘 要此設(shè)計(jì)用at89c51單片機(jī)來(lái)控制對(duì)溫度的采集與顯示,主要包括溫度采集部分,鍵盤(pán)輸入部分,溫度顯示部分。而且用protel設(shè)計(jì)了硬件原理圖,設(shè)計(jì)了軟件流程圖,并用keil編寫(xiě)了c語(yǔ)言程序。其中溫度采集部分用到ds18b20溫度傳感器,直接將測(cè)量到的模擬量溫度信號(hào)轉(zhuǎn)換成數(shù)字信號(hào),傳送到單片機(jī)。單片機(jī)選用較為常見(jiàn)的a...


內(nèi)容介紹
此文檔由會(huì)員 龍貓714 發(fā)布
摘 要
此設(shè)計(jì)用AT89C51單片機(jī)來(lái)控制對(duì)溫度的采集與顯示,主要包括溫度采集部分,鍵盤(pán)輸入部分,溫度顯示部分。而且用protel設(shè)計(jì)了硬件原理圖,設(shè)計(jì)了軟件流程圖,并用keil編寫(xiě)了C語(yǔ)言程序。其中溫度采集部分用到DS18B20溫度傳感器,直接將測(cè)量到的模擬量溫度信號(hào)轉(zhuǎn)換成數(shù)字信號(hào),傳送到單片機(jī)。單片機(jī)選用較為常見(jiàn)的ATMEL公司的51系列單片機(jī),該芯片是40引腳,可與52系列單片機(jī)兼容。關(guān)于鍵盤(pán)和顯示部分,用到ZLG7289芯片,可自動(dòng)對(duì)按鍵進(jìn)行處理,采用SPI接口方式傳送給單片機(jī),經(jīng)單片機(jī)控制這個(gè)芯片驅(qū)動(dòng)數(shù)碼管顯示。鍵盤(pán)是4*4的16個(gè)按鍵,功能有:0~9數(shù)字鍵,最高和最低溫度設(shè)定。數(shù)碼管同時(shí)顯示設(shè)定的溫度和當(dāng)前的溫度,精確到小數(shù)點(diǎn)后兩位。該設(shè)計(jì)較為簡(jiǎn)單,實(shí)用,可提高測(cè)量效率,減少測(cè)量誤差。
關(guān)鍵詞:?jiǎn)纹瑱C(jī),DS18B20,ZLG7289,溫度控制,C語(yǔ)言
Temperature Controller Based on 51 Single Chip Microcomputer
ABSTRACT
This design using AT89C51 single-chip microcomputer to control the collection of temperature and display.It mainly includes temperature gathering part,keyboard input part,temperature display parts.It also make the hardware design principle chart using software protel,the software flow and c language program using keil.Among them,the section for collection temperature uses the sensor ds18b20.The chip measure the current temperature and convert the analog signals to the digital ones .It uses a common chip called AT89C51 which is from ATMEL company.The chip has 40 pins,and it is compatible with 52-series.Concerning to the section for keyboards and display,it uses a chip zlg7289.The chip can produce automatic processing of buttons, The SPI interface way transfer to the microcomputer.The single-chip control the chip to drive digital pipe display.The keyboard belongs to a kind of sample that has four multiple four(equal to sixteen) buttons.Their functions are listed as follows:the front nine represent the number 0~9,one is the setting for maximum, one is the setting for minimum,the last one is confirming.The all design is simple and universal.At the same time,it can enhance the efficience and low the error through the processing of the measurement.
KEY WORDS: Single Chip Microcomputer,DS18B20,ZLG7289,Temperature Control
目 錄
前 言 1
第1章 概述 2
1.1 國(guó)內(nèi)外溫控產(chǎn)品現(xiàn)狀 2
1.2 溫度控制系統(tǒng)的目的 2
1.3 溫度控制系統(tǒng)完成的功能 2
1.4 方案選擇 3
第2章 總體設(shè)計(jì) 4
2.1 系統(tǒng)總體設(shè)計(jì) 4
2.1.1 系統(tǒng)總框圖 4
2.1.2 接口設(shè)計(jì) 4
2.2 溫度采集部分 4
2.3 控制部分 5
2.4 鍵盤(pán)和顯示部分 5
2.4.1 LED顯示 5
2.4.2 鍵盤(pán)的連接 6
第3章 硬件部分 8
3.1 DS18B20元件 8
3.1.1 DS18B20基本組成 8
3.1.2 DS18B20特性 8
3.1.3 DS18B20內(nèi)部結(jié)構(gòu) 9
3.1.4 DS18B20測(cè)溫操作 11
3.1.5 時(shí)序圖 13
3.1.6 使用中注意事項(xiàng) 15
3.2 單片機(jī)AT89C51介紹 16
3.2.1 基本介紹 16
3.2.2 引腳功能 17
3.3.3 時(shí)鐘振蕩器 19
3.3.4 省電模式 20
3.3 ZLG7289芯片 21
3.3.1 芯片概述 21
3.3.2 電氣特性和引腳說(shuō)明 22
3.3.3 控制指令詳解 23
3.3.4 SPI串行接口 27
第4章 軟件設(shè)計(jì) 30
4.1 軟件流程圖 30
4.1.1 主程序流程圖 30
4.1.2 DS18B20程序流程圖 31
4.1.3 ZLG7289程序流程圖 32
4.2 c語(yǔ)言程序設(shè)計(jì) 33
4.2.1 DS18B20程序 33
4.2.2 ZLG7289程序 36
第五章 心得體會(huì) 39
結(jié) 論 40
謝 辭 41
參考文獻(xiàn) 42
附錄 43
外文資料翻譯 46
此設(shè)計(jì)用AT89C51單片機(jī)來(lái)控制對(duì)溫度的采集與顯示,主要包括溫度采集部分,鍵盤(pán)輸入部分,溫度顯示部分。而且用protel設(shè)計(jì)了硬件原理圖,設(shè)計(jì)了軟件流程圖,并用keil編寫(xiě)了C語(yǔ)言程序。其中溫度采集部分用到DS18B20溫度傳感器,直接將測(cè)量到的模擬量溫度信號(hào)轉(zhuǎn)換成數(shù)字信號(hào),傳送到單片機(jī)。單片機(jī)選用較為常見(jiàn)的ATMEL公司的51系列單片機(jī),該芯片是40引腳,可與52系列單片機(jī)兼容。關(guān)于鍵盤(pán)和顯示部分,用到ZLG7289芯片,可自動(dòng)對(duì)按鍵進(jìn)行處理,采用SPI接口方式傳送給單片機(jī),經(jīng)單片機(jī)控制這個(gè)芯片驅(qū)動(dòng)數(shù)碼管顯示。鍵盤(pán)是4*4的16個(gè)按鍵,功能有:0~9數(shù)字鍵,最高和最低溫度設(shè)定。數(shù)碼管同時(shí)顯示設(shè)定的溫度和當(dāng)前的溫度,精確到小數(shù)點(diǎn)后兩位。該設(shè)計(jì)較為簡(jiǎn)單,實(shí)用,可提高測(cè)量效率,減少測(cè)量誤差。
關(guān)鍵詞:?jiǎn)纹瑱C(jī),DS18B20,ZLG7289,溫度控制,C語(yǔ)言
Temperature Controller Based on 51 Single Chip Microcomputer
ABSTRACT
This design using AT89C51 single-chip microcomputer to control the collection of temperature and display.It mainly includes temperature gathering part,keyboard input part,temperature display parts.It also make the hardware design principle chart using software protel,the software flow and c language program using keil.Among them,the section for collection temperature uses the sensor ds18b20.The chip measure the current temperature and convert the analog signals to the digital ones .It uses a common chip called AT89C51 which is from ATMEL company.The chip has 40 pins,and it is compatible with 52-series.Concerning to the section for keyboards and display,it uses a chip zlg7289.The chip can produce automatic processing of buttons, The SPI interface way transfer to the microcomputer.The single-chip control the chip to drive digital pipe display.The keyboard belongs to a kind of sample that has four multiple four(equal to sixteen) buttons.Their functions are listed as follows:the front nine represent the number 0~9,one is the setting for maximum, one is the setting for minimum,the last one is confirming.The all design is simple and universal.At the same time,it can enhance the efficience and low the error through the processing of the measurement.
KEY WORDS: Single Chip Microcomputer,DS18B20,ZLG7289,Temperature Control
目 錄
前 言 1
第1章 概述 2
1.1 國(guó)內(nèi)外溫控產(chǎn)品現(xiàn)狀 2
1.2 溫度控制系統(tǒng)的目的 2
1.3 溫度控制系統(tǒng)完成的功能 2
1.4 方案選擇 3
第2章 總體設(shè)計(jì) 4
2.1 系統(tǒng)總體設(shè)計(jì) 4
2.1.1 系統(tǒng)總框圖 4
2.1.2 接口設(shè)計(jì) 4
2.2 溫度采集部分 4
2.3 控制部分 5
2.4 鍵盤(pán)和顯示部分 5
2.4.1 LED顯示 5
2.4.2 鍵盤(pán)的連接 6
第3章 硬件部分 8
3.1 DS18B20元件 8
3.1.1 DS18B20基本組成 8
3.1.2 DS18B20特性 8
3.1.3 DS18B20內(nèi)部結(jié)構(gòu) 9
3.1.4 DS18B20測(cè)溫操作 11
3.1.5 時(shí)序圖 13
3.1.6 使用中注意事項(xiàng) 15
3.2 單片機(jī)AT89C51介紹 16
3.2.1 基本介紹 16
3.2.2 引腳功能 17
3.3.3 時(shí)鐘振蕩器 19
3.3.4 省電模式 20
3.3 ZLG7289芯片 21
3.3.1 芯片概述 21
3.3.2 電氣特性和引腳說(shuō)明 22
3.3.3 控制指令詳解 23
3.3.4 SPI串行接口 27
第4章 軟件設(shè)計(jì) 30
4.1 軟件流程圖 30
4.1.1 主程序流程圖 30
4.1.2 DS18B20程序流程圖 31
4.1.3 ZLG7289程序流程圖 32
4.2 c語(yǔ)言程序設(shè)計(jì) 33
4.2.1 DS18B20程序 33
4.2.2 ZLG7289程序 36
第五章 心得體會(huì) 39
結(jié) 論 40
謝 辭 41
參考文獻(xiàn) 42
附錄 43
外文資料翻譯 46
TA們正在看...
- 實(shí)訓(xùn)四智能家居實(shí)訓(xùn).doc
- 實(shí)訓(xùn)報(bào)告智能停車場(chǎng).doc
- 實(shí)證主義范式與自然主義范式的比較.doc
- 實(shí)踐活動(dòng)變化的影子教學(xué)設(shè)計(jì).doc
- 實(shí)踐活動(dòng)課千米.doc
- 實(shí)際問(wèn)題與一元二次方程的習(xí)題.doc
- 實(shí)際問(wèn)題與二次函數(shù)2教案.doc
- 實(shí)驗(yàn)1-cisco路由器基本配置+靜態(tài)路由+廣域網(wǎng)連接.pdf
- 實(shí)驗(yàn)2-1答案.doc
- 實(shí)驗(yàn)2使用網(wǎng)絡(luò)模擬器packettracer.doc