freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內容

基于52單片機的測溫控制系統(tǒng)設計(留存版)

2025-08-06 13:32上一頁面

下一頁面
  

【正文】 一點是識別矩陣式是否被按下的關鍵所在。 方案二:選擇 LCD 顯示 C 系列 LCD 顯示可以顯示字母、數(shù)字符號、中文字型及圖形,具有繪圖及文字畫面混合顯示功能。 STC89C52 使用經(jīng)典的 MCS51 內核,但做了很基于 51 單片機的溫度控制系統(tǒng) 7 多的改進使得芯片具有傳統(tǒng) 51 單片機不具備的功能。 關鍵詞: 溫度控 制; STC89C52; C 語言 基于 51 單片機的溫度控制系統(tǒng) 2 Abstract: The temperature control system in industry, agriculture on a wide range of applications, in the contemporary society, the temperature control requirements more and more high, more and more fine. Therefore, we in the school practice choose to plete a basic temperature measurement and project control temperature in a certain range, thus to exercise their abilities. This design uses the monolithic integrated circuit for measuring and controlling temperature, and to control its temperature stability in a certain set of values. Through digital tube display temperature, and has alarm system, through the keyboard input to control the reference temperature and minimum temperature. Basically achieve the purpose of automatic control. The temperature control system of STC89C52 single chip microputer is mainly realized the temperature acquisition, A/D conversion, temperature control and alarm functions based on. Secondly, it describes the principle of the system, designed the system structure diagram, the system is divided into 5 major parts and finished the designing of each module, and attached to the system hardware circuit diagram. Finally, the design of the system software. The system software is written in C language for software design, C language has the characteristics of simple instruction, small amount of data. Key Words: temperature control; STC89C52 ; C language 基于 51 單片機的溫度控制系統(tǒng) 3 目 錄 1 課題要求 ............................................... 5 2 總體設計方案 ....................................... 6 系統(tǒng)總體設計 ................................................................. 6 單片機選擇 ..................................................................... 6 顯示電路選擇 ................................................................. 7 鍵盤電路選擇 ................................................................. 8 AD 電路選擇 ................................................................... 8 溫度采集電路選擇 ......................................................... 9 控制電路選擇 ............................................................... 11 3 系統(tǒng)硬件設計 .................................... 12 系統(tǒng)硬件功能分析 ....................................................... 12 單片機最小系統(tǒng)設計 ................................................... 12 溫度檢測電路設計 ....................................................... 14 AD 轉換模塊設計 ......................................................... 15 溫度控制系統(tǒng)設計 ....................................................... 17 報警模塊設計 ............................................................... 18 鍵盤輸入模塊設計 ....................................................... 19 4 系統(tǒng)軟件設計 .................................... 20 基于 51 單片機的溫度控制系統(tǒng) 4 主程序分析 ................................................................... 20 顯示模塊分析 ............................................................... 20 AD 轉換模塊分析 ......................................................... 20 鍵盤輸入模塊設計 ...................................................... 21 報警控制模塊設計 ....................................................... 22 5 實習結果 ............................................ 23 6 總結與鳴謝 ........................................ 24 參考文獻 ................................................ 24 附錄 1...................................................... 25 附錄 2...................................................... 25 基于 51 單片機的溫度控制系統(tǒng) 5 1 課題要求 本 課題 是 設計一個 基于單片機的溫度 控制系統(tǒng) ,用來測量溫度 并將溫度控制在一定范圍內。 基于 STC89C52 單片機 的 溫控 系統(tǒng)主要實現(xiàn)了溫度采集、 A/D 轉換、溫度控制及 報警 等功能。 單片機選擇 單片機的種類繁多, Intel 公司的 MCS51 8 位單片機系列、 MCS96 16 位單片機系列; Atmel 的 AT8 AVR 系列 ; Philips 的 P89V5 LPC700/900 8 位單片機系列 、 LPC2021 16/32 系列; Motorola 公司的 MC68HC908 8 位單片 機系列、DSP 型 16 位單片機。對于共陰極數(shù)碼管,則正好相反,內部發(fā)光二極管的陰極接在一起,陽極成為段選線。獨立式鍵盤電路配置靈活,軟件結構簡單。采樣率為 66kbps; 溫度采集電路選擇 溫度采集的傳感器上我們有兩種選擇, PT100 與 AD590。這種輸出特性還便于 AD590 實現(xiàn)多路復用:輸出電流可以通過一個 CMOS 多路復用器切換,或者電源電壓可以通過一個邏輯門輸出切換。 根據(jù)它們的特性和用途,還有本 設計的特點,如果選用 晶閘管他有 有靜態(tài)及動態(tài)的過載能力較差 。 他的參數(shù)如下 1. 增強型 8051 單片機, 6 時鐘 /機器周期 和 12 時鐘 /機器周期可以任意 選擇,指令代碼完全兼容傳統(tǒng) 8051. 2. 工作電壓: ~ ( 5V 單片機) /~ ( 3V 單片機) 范圍: 0~ 40MHz,相當于普通 8051 的 0~ 80MHz,實際工作 頻率可達 48MHz 4. 用戶應用程序空間為 8K 字節(jié) 5. 片上集成 512 字節(jié) RAM 6. 通用 I/O 口( 32 個),復位后為: P0/P1/P2/P3 是 準雙向口 /弱上拉, P0 口是漏極開路輸出,作為總線擴展用時,不用加上拉電阻 ,作為 I/O 口用時,需加上拉電阻。 設計及調試注意點: 1. 同幅度調整 R7 和 R8 的電阻值可以改變電橋輸出的壓差大??; 2. 改變 R5/R3 的比值即可改變電壓信號的放大倍數(shù),以便滿足設計者對溫度范圍的要求 基于 51 單片機的溫度控制系統(tǒng) 15 3. 放大電路必須接成負反饋方式,否則放大電路不能正常工作 4. VR2 也可為電位器,調節(jié)電位器阻值大小可以改變溫度的零點設定,例如 Pt100的零點溫度為 0℃,即 0℃時電阻為 100Ω,當電位器阻值調至 ,溫度的零點就被設定在了 25℃。 OE= 1,輸出轉換得到的數(shù)據(jù); OE= 0,輸出數(shù)據(jù)線呈 高阻 狀 態(tài)。繼電器一般有兩股電路,為低壓控制電路和高壓工作電路。 判斷 鍵盤 中有無鍵按下 將全部行線 Y0Y3 置低電平,然后檢測列線的狀態(tài)。接下來進入 if 循環(huán)之后將每次得到的二進制數(shù)據(jù)累加放入 Amp 之中用于取平均值,求取平均值之后, Amp 還是一個二進制數(shù), 因為我們采樣電路中電壓與溫度的關系是: 13V=T,那么,我們乘以一個量化單位 5/256,就可以得到十進制數(shù),再將十進制數(shù)調零后存放入全局變量 tmp 中。利用單片機自身的 RD 和 WR 兩個引腳在輸入輸出時的高低電平 來形成一個自行判斷的 系統(tǒng), 硬件與軟件結合的十分巧妙 。 sbit P1_4=P1^4。 TCON = 0x00。 P1_6=1。iN。 } void key_on() { unsigned char P2buf。j++) { if(value[j]==scan) { Key=j。 case 9: num_key=8。 P1_7=1。 P1_5=1。 P1_7=1。 P1_5=1。 P1=lt1。 P1_5=1。 while(down) { P1=ct1。 if(Key!=15) { number()。Key!=15) { 基于 51 單片機的溫度控制系統(tǒng) 6 P1=ct1。tmpht) { P3_1=1。 input()。
點擊復制文檔內容
畢業(yè)設計相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1