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

正文內(nèi)容

單片機水溫控制器設(shè)計(參考版)

2025-07-10 13:14本頁面
  

【正文】 顯示1MS SETB MOV P0,0FFH DJNZ R1,DPLOP。送出十位的7段代碼 CLR 。取十位數(shù) MOVC A,A+DPTR。開個位顯示 ACALL D1MS。查個位數(shù)的7段代碼 MOV P0,A。顯示1000次DPLOP: MOV A,B_BIT。個位在B MOV DPTR,NUMTAB。顯示子程序 MOV A_BIT,A。將29H中的十六進制數(shù)轉(zhuǎn)換成10進制 MOV B,10。讀DS18B20的程序,從DS18B20中讀出兩個字節(jié)的溫度數(shù)據(jù) SETB DQ NOP NOP CLR DQ NOP NOP NOP SETB DQ MOV R3,9RE10: DJNZ R3,RE10 MOV C,DQ MOV R3,23RE20: DJNZ R3,RE20 RRC A DJNZ R2,RE01 MOV R1,A DEC R1 DJNZ R4,RE00 RET 。低位存入29H(TEMPER_L),高位存入28H(TEMPER_H)RE00: MOV R2,8。寫DS18B20的子程序(有具體的時序要求)WR1: CLR DQ MOV R3,6 DJNZ R3,$ RRC A MOV DQ,C MOV R3,23 DJNZ R3,$ SETB DQ NOP DJNZ R2,WR1 SETB DQ RETREAD_18200: MOV R4,2。然后拉高數(shù)據(jù)線 NOP NOPWRITE_1820: MOV R2,8。這是DS18B20復(fù)位初始化子程序 NOP CLR DQ。//////////////////////////////// 。//////////上面這一段是讀取溫度后進行轉(zhuǎn)換的意思! 。主機發(fā)出延時537微秒的復(fù)位低脈沖 MOV R1,3TSR1: MOV R0,107 DJNZ R0,$ DJNZ R1,TSR1 SETB DQ 。///////////////////////////////INIT_1820: SETB DQ 。///////////////////////////////// 。將28H中的最低位移入C RRC A MOV C,41HRRC A MOV C,42H RRC A MOV C,43H RRC A MOV 29H,A MOV A,B1 MOV B,10H MUL AB MOV B,10H DIV AB MOV B,10 MUL AB MOV B,10H DIV AB MOV B1,A RET 。/////////////上面這一段是退出的意思的!D1820: LCALL GET_TEMPER。////////////////上面這一段是+5度按鍵,按下+5度MAIN2_1_1: JC MAIN2_1_3MAIN2_1_2: CLR C MOV A,99MAIN2_1_3: MOV A1,AMAIN2_2: JB ,MAIN2_3 ACALL DELAY125 JB ,MAIN2_3 JNB ,$ MOV A,A1 CJNE A,99,ZY1 MOV B,4 AJMP ZY2ZY1: MOV B,5ZY2: CLR C MOV A,A1 SUBB A,BMAIN2_2_1: JNC MAIN2_2_2 MOV A1,0 AJMP MAIN2_3 。//等按鍵完全松手才進入! SETB SETB 。//延時防抖動,常用的手法,網(wǎng)上很多介紹的 JB ,MAIN1 。///////////////////////////////上面的是大于,關(guān)發(fā)熱管MAIN2: JB ,MAIN1 。//關(guān)閉蜂鳴器 CLR 。//下面是表示沒達到溫度 SETB AJMP MAIN2 。為1轉(zhuǎn)移,表示小于設(shè)定溫度 CPL BELL。//溫度相等,關(guān)閉蜂鳴器 AJMP MAIN1_1_A。調(diào)用讀溫度子程序 LCALL DISPLAY。///////////////////////////////////////////////MAIN0: MOV A1,80。///////////////////////////////////前面的都是定義MAIN: MOV R0,10M1: CPL ACALL DELAY125 DJNZ R0,M1。//蜂鳴報警 ORG 0000H。設(shè)定溫度值 DQ EQU 。數(shù)碼管十位數(shù)存放內(nèi)存位置 B1 EQU 70H 。是否檢測到DS18B20標志位 A_BIT EQU 20H 。用于保存讀出溫度的低8位 TEMPER_H EQU 28H 。究其原因,可能就卡在產(chǎn)品未使用單片機或其它可編程邏輯器件上。各種產(chǎn)品一旦用上了單片機,就能起到使產(chǎn)品升級換代的功效,常在產(chǎn)品名稱前冠以形容詞——“智能型”,如智能型洗衣機等。它在整個裝置中,起著有如人類頭腦的作用,它出了毛病,整個裝置就癱瘓了。顧名思義,這種計算機的最小系統(tǒng)只用了一片集成電路,即可進行簡單運算和控制。還有一類計算機,大多數(shù)人卻不怎么熟悉。不過,這種電腦,通常是指個人計算機,簡稱PC機。通過不同的程序?qū)崿F(xiàn)不同的功能,尤其是特殊的獨特的一些功能,這是別的器件需要費很大力氣才能做到的,有些則是花大力氣也很難做到的。   它是一種在線式實時控制計算機,在線式就是現(xiàn)場控制,需要的是有較強的抗干擾能力,較低的成本,這也是和離線式計算機的(比如家用PC)的主要區(qū)別。   單片機內(nèi)部也用和電腦功能類似的模塊,比如CPU,內(nèi)存,并行總線,還有和硬盤作用相同的存儲器件,不同的是它的這些部件性能都相對我們的家用電腦弱很多,不過價錢也是低的,一般不超過10元即可,用它來做一些控制電器一類不是很復(fù)雜的工作足矣了。它的體積小、質(zhì)量輕、價格便宜、為學(xué)習(xí)、應(yīng)用和開發(fā)提供了便利條件。相當于一個微型的計算機,和計算機相比,單片機只缺少了I/O設(shè)備。汽車上一般配備40多部單片機,復(fù)雜的工業(yè)控制系統(tǒng)上甚至可能有數(shù)百臺單片機在同時工作!單片機的數(shù)量不僅遠超過PC機和其他計算的總和,甚至比人類的數(shù)量還要多。手機、電話、計算器、家用電器、電子玩具、掌上電腦以及鼠標等電腦配件中都配有12部單片機。事實上單片機是世界上數(shù)量最多的計算機。而在作為掌上電腦和手機核心處理的高端單片機甚至可以直接使用專用的Windows和Linux操作系統(tǒng)。目前,高端的32位單片機主頻已經(jīng)超過300MHz,性能直追90年代中期的專用處理器,而普通的型號出廠價格跌落至1美元,最高端的型號也只有10美元。隨著INTEL i960系列特別是后來的ARM系列的廣泛應(yīng)用,32位單片機迅速取代16位單片機的高端地位,并且進入主流市場。隨著工業(yè)控制領(lǐng)域要求的提高,開始出現(xiàn)了16位單片機,但因為性價比不理想并未得到很廣泛的應(yīng)用。此后在8031上發(fā)展出了MCS51系列單片機系統(tǒng)。   早期的單片機都是8位或4位的。最早的設(shè)計理念是通過將大量外圍設(shè)備和CPU集成在一個芯片中,使計算機系統(tǒng)更小,更容易集成進復(fù)雜的而對體積要求嚴格的控制設(shè)備當中。由于單片機在工業(yè)控制領(lǐng)域的廣泛應(yīng)用,為使更多的業(yè)內(nèi)人士、學(xué)生、愛好者,產(chǎn)品開發(fā)人員掌握單片機這門技術(shù),于是產(chǎn)生單片機開發(fā)板,比較有名的例如電子人DZR01A單片機開發(fā)板。[13] Guiyun and Application of ,2004.附錄AIntroductions to SCMThe single chip microputer referred to as SCM, is typical of embedded microcontroller (Microcontroller Unit), the monly used letters of the abbreviation MCU MCU, it was first used in the field of industrial control. Master microcontroller technology to enable more people in the industry, students, enthusiasts, product developers, the question arose due to the extensive application of SCM in the field of industrial control, microcontroller development board, the more famous such as eDZR01A microcontroller development board . SCM evolved by the only dedicated processor CPU chip.The first design concept by a large number of peripherals and CPU integrated in a single chip, the puter system is smaller, more easily integrated into plex and require strict control equipment on the volume. INTEL Z80 is the first processor designed in accordance with this idea, since then, the development of microcontroller and dedicated processor have grown apart. Early microcontrollers are 8 or 4. One of the most successful is the INTEL 8031, because the simple and reliable performance good a lot of praise. Later in 8031 ??on the development of MCS51 series microcontroller system. Is still in wide use of microcontroller system based on this system until now. Began with the industrial control area requires improvement of a 16bit microcontroller, but not ideal because the price has not been a very wide range of applications. The 1990s, consumer electronics, microcontroller technology has been a huge increase. With the INTEL The i960 series, especially the ARM series of widely used 32bit microcontroller quickly replaced the 16bit singlechip highend status, and enter the mainstream market. Traditional 8bit MCU performance has also been a rapid increase processing capacity than a few times in the 1980s. At present, highend 32bit microcontroller clocked more than 300MHz, performance, catching up with a dedicated processor in the mid1990s, while the ordinary model prices drop to $ 1, the most highend model is only $ 10. Contemporary SCM system is no longer only in the bare metal environment to develop and use a large number of dedicated embedded operating system is widely used in a full range of SCM. As handheld puters and mobile phones core processing highend microcontroller can even use a dedicated Windows and Linux operating systems. The microcontroller is more than a dedicated processor for embedded systems, so it has been up to the application. In fact SCM is the world39。[11] 趙麗娟
點擊復(fù)制文檔內(nèi)容
教學(xué)課件相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1