溫度計單片機課程設計
- 文件介紹:
- 該文件為 doc 格式,下載需要 0 積分
- 溫度計單片機課程設計摘要
進入21世紀,電子產品已經(jīng)開始應用到每一個方面,當人類向智能電子進軍,單片機由于其物美價廉而受到大家的歡迎, 已經(jīng)普及到我們生活、工作、科研、各個領域。本文主要介紹了一個基于89S51單片機的測溫系統(tǒng),詳細描述了利用數(shù)字溫度傳感器DS18B20開發(fā)測溫系統(tǒng)的過程, 該系統(tǒng)可以方便的實現(xiàn)實現(xiàn)溫度采集和顯示,并可根據(jù)需要任意設定上下限報警溫度,它使用起來相當方便,具有精度高、量程寬、靈敏度高、體積小、功耗低等優(yōu)點,適合于我們日常生活和工、農業(yè)生產中的溫度測量,也可以當作溫度處理模塊嵌入其它系統(tǒng)中,作為其他主系統(tǒng)的輔助擴展。
關鍵詞: 單片機 AT89S52 DS18B20 溫度傳感器 數(shù)字溫度計
Abstract
In the 21st century, electronically machines have been used in any side of our live. When the human beings are coming to electronically world, SCM becomes very popular because of its cheaper and has good quantity. And now it is used in our living, work, scientific research and so on. It will introduce one thermometer which is based on 89C51 in this essay. So it will describe the development of the thermometer which is using DS18B20 as its sensor detail. This system can be used conveniently for temperature collected and expressed, and can be made the limitation of the up and down. Due to it is convenient, accurate, wide range, high micro detector, little volume and less power and so on. So it is suitable for us to use in living and agricultural product. And also it can be used as a module adds to any other system.
Key words: SCM AT89C51 DS18B20 Temperature sensor Digital thermometer
目錄
1 概述 3
1.1 課程設計的意義 3
1.2 設計的任務和要求 3
2系統(tǒng)總體方案及硬件設計 3
2.1數(shù)字溫度計設計方案論證 3
2.1.1方案一 3
2.1.2 方案二 3
2.2系統(tǒng)總體設計 3
2.3系統(tǒng)模塊 4
2.3.1 主控制器 4
2.3.2 顯示電路 5
2.3.3溫度傳感器 6
2.3.4報警溫度調整按鍵 6
3系統(tǒng)軟件算法分析 7
3.1主程序流程圖 7
3.2讀出溫度子程序 8
3.3溫度轉換命令子程序 8
3.4 計算溫度子程序 9
3.5 顯示數(shù)據(jù)刷新子程序 9
3.6按鍵掃描處理子程序 9
4 實驗仿真 10
5 PCB圖……………………………………………………………………………… 10
6 元件清單…………………………………………………………………………… 11
7 總結與體會 12
查考文獻 12
附1 實物圖………………………………………………………………… 12
附2 源程序代碼 14
...