国产精品婷婷久久久久久,国产精品美女久久久浪潮av,草草国产,人妻精品久久无码专区精东影业

基于單片機(jī)的溫度控制器系統(tǒng)的設(shè)計.doc

約62頁DOC格式手機(jī)打開展開

基于單片機(jī)的溫度控制器系統(tǒng)的設(shè)計,摘 要此設(shè)計用at89c51單片機(jī)來控制對溫度的采集與顯示,主要包括溫度采集部分,鍵盤輸入部分,溫度顯示部分。而且用protel設(shè)計了硬件原理圖,設(shè)計了軟件流程圖,并用keil編寫了c語言程序。其中溫度采集部分用到ds18b20溫度傳感器,直接將測量到的模擬量溫度信號轉(zhuǎn)換成數(shù)字信號,傳送到單片機(jī)。單片機(jī)選用較為常見的a...
編號:10-361444大小:1.46M
分類: 論文>電氣自動化/電力論文

內(nèi)容介紹

此文檔由會員 龍貓714 發(fā)布

摘 要

此設(shè)計用AT89C51單片機(jī)來控制對溫度的采集與顯示,主要包括溫度采集部分,鍵盤輸入部分,溫度顯示部分。而且用protel設(shè)計了硬件原理圖,設(shè)計了軟件流程圖,并用keil編寫了C語言程序。其中溫度采集部分用到DS18B20溫度傳感器,直接將測量到的模擬量溫度信號轉(zhuǎn)換成數(shù)字信號,傳送到單片機(jī)。單片機(jī)選用較為常見的ATMEL公司的51系列單片機(jī),該芯片是40引腳,可與52系列單片機(jī)兼容。關(guān)于鍵盤和顯示部分,用到ZLG7289芯片,可自動對按鍵進(jìn)行處理,采用SPI接口方式傳送給單片機(jī),經(jīng)單片機(jī)控制這個芯片驅(qū)動數(shù)碼管顯示。鍵盤是4*4的16個按鍵,功能有:0~9數(shù)字鍵,最高和最低溫度設(shè)定。數(shù)碼管同時顯示設(shè)定的溫度和當(dāng)前的溫度,精確到小數(shù)點后兩位。該設(shè)計較為簡單,實用,可提高測量效率,減少測量誤差。


關(guān)鍵詞:單片機(jī),DS18B20,ZLG7289,溫度控制,C語言




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 國內(nèi)外溫控產(chǎn)品現(xiàn)狀 2
1.2 溫度控制系統(tǒng)的目的 2
1.3 溫度控制系統(tǒng)完成的功能 2
1.4 方案選擇 3
第2章 總體設(shè)計 4
2.1 系統(tǒng)總體設(shè)計 4
2.1.1 系統(tǒng)總框圖 4
2.1.2 接口設(shè)計 4
2.2 溫度采集部分 4
2.3 控制部分 5
2.4 鍵盤和顯示部分 5
2.4.1 LED顯示 5
2.4.2 鍵盤的連接 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測溫操作 11
3.1.5 時序圖 13
3.1.6 使用中注意事項 15
3.2 單片機(jī)AT89C51介紹 16
3.2.1 基本介紹 16
3.2.2 引腳功能 17
3.3.3 時鐘振蕩器 19
3.3.4 省電模式 20
3.3 ZLG7289芯片 21
3.3.1 芯片概述 21
3.3.2 電氣特性和引腳說明 22
3.3.3 控制指令詳解 23
3.3.4 SPI串行接口 27
第4章 軟件設(shè)計 30
4.1 軟件流程圖 30
4.1.1 主程序流程圖 30
4.1.2 DS18B20程序流程圖 31
4.1.3 ZLG7289程序流程圖 32
4.2 c語言程序設(shè)計 33
4.2.1 DS18B20程序 33
4.2.2 ZLG7289程序 36
第五章 心得體會 39
結(jié) 論 40
謝 辭 41
參考文獻(xiàn) 42
附錄 43
外文資料翻譯 46