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

正文內(nèi)容

畢業(yè)設(shè)計-基于單片機的溫濕度計的設(shè)計(參考版)

2024-12-05 17:19本頁面
  

【正文】 SC。 _nop_()。 _nop_()。 } } // //EEPROM 啟動 傳輸子程序 // void e_transstart(void) { DATA=1。ilen。 lcd_pos(40)。 len=strlen(dis2)。//想對濕度對于溫度的依賴性補償 memset(dis2,0x20,16)。 flt0=**nhum*nhum4。i++) { lcd_wdat(dis 1[i]。 for(i=0。 lcd_pos(0)。 memset(dis1,0x20,16)。 ntemp=(*ptem)*256+(*(ptem+1))。 Int nhum。 //清除 LCD的顯示內(nèi)容 delay(1)。 //僅光標(biāo)右移,文字不移動 delay(1)。 //開顯示,無光標(biāo) delay(1)。 //4 位總線,雙行顯示,顯示 5*7 的點陣字符 delay(1)。 ep = 0。 _nop_()。 _nop_()。 _nop_()。 _nop_()。 P0 =dat。 rw = 0。 //寫入顯示地址時要求最高位必須為高電平 // //LCD 寫數(shù)據(jù)子程序 // void lcd_wdat(BYTE dat) { While(lcd_bz())。 6 ep=0。 _nop_()。 _nop_()。 _nop_()。 _nop_()。 P0=cmd。 _nop_()。 rw=0。 // //LCD 寫指令子程序 // void lcd_wcmd(BYTE cmd) { while(lcd_bz())。 //P0 口與 0x80 相與,只保留最高位( BF 位) ep=0。 result=(BOOL)(P0 amp。 _nop_()。 _nop_()。 rw=1。 // //LCD 忙狀態(tài)檢測子程序 // BOOL lcd_bz() { BOOL result。 //read the second byte(LSB) *p_checksum=s_read_byte(noACK)。 //or timeout(~2 sec.)is reached *(p_value)=s_read_byte(ACK)。i++) if(DATA==0) break。 } for(i=0。break。break。 s_transstart()。 //ack_bit=1 通訊錯誤 } // //溫濕度采集子程序 // char s_measure(unsigned char*p_value,unsigned char*p_checksum,unsigned char mode) { unsigned error=0。 //檢查應(yīng)答信號,確認(rèn)通訊正常 SCK=0。 //釋放數(shù)據(jù)線 SCK=1。 SCK=0。 _nop_()。 SCK=1。 write_data) DATA=1。i0。 } // // 寫 IIC 總線子程序 // char write_IIC(unsigned char write_data) { unsigned char i,ack_bit=0。 DATA=1。 _nop_()。 _nop_()。 } DATA=lack。 if(DATA) read_data=(read_data|i)。 //釋放數(shù)據(jù)線 for(i=0x80。 //transmission start } // //讀 IIC 總線子程序 // Char read_IIC(unsigned char 4 ack) //ack=1 或 0 { Unsigned char i,read_data=0。 SCK=0。i9。SCK=0。 // //SHT11 連接復(fù)位子程序 //void s_connectionreset(void) { unsigned char i。 _nop_()。 _nop_()。 _nop_()。 _nop_()。 _nop_()。 _nop_()。 //initial state _nop_()。 } } } // //SHT11 啟動傳輸子程序 // void s_transstart(void) { DATA=1。 _nop_()。i++) { _nop_()。 While(x) { For(i=0。 uchar ack_bit。 unsigned char Hem [2 ]。//確定鍵 // //SHT11 相關(guān)控制信號及變量 // enum{TEMP,HUMI}。//光標(biāo)右移鍵 sbit K3 =P1?2。 // //按鍵相關(guān)控制信號及變量 // sbit K1 =P1?0。 sbit SCK =P1?5。 BYTE dis3[16]。 BYTE dis1[16]。 sbit rw=P2?1。float HH,HL。 typedef bit BOOL。 include include 2 include include include define uchar unsigned char define uint unsigned int typedef unsigned char BYTE。s designer of choice for control of one of the chips. 7. AT89S51 Features ( 1) 4K Bytes of InSystem Programmable (ISP) Flash Memory–Endurance: 1000 Write/Erase Cycles; ( 2) to Operating Range; ( 3) Fully Static Operation: 0 Hz to 33 MHz; ( 4) Threelevel Program Memory Lock; ( 5) 128 x 8bit Internal RAM; ( 6) 32 Programmable I/O Lines; ( 7) Two 16bit Timer/Counters; ( 8) Six Interrupt Sources; ( 9) Full Duplex UART Serial Channel; ( 10) Lowpower Idle and Powerdown Modes; ( 11) Interrupt Recovery from Powerdown Mode; ( 12) Watchdog Timer; ( 13) Dual Data Pointer; ( 14) Poweroff Flag; ( 15) Fast Programming Time; ( 16) Flexible ISP Programming (Byte and Page Mode); 8. AT89S51 Description The AT89S51 is a lowpower, highperformance CMOS 8bit microcontroller with 4Kbytes of InSystem Programmable Flash memory. The device is 湖南人文科技學(xué)院畢業(yè)設(shè)計 29 manufactured usingAtmel’s highdensity nonvolatile memory technology and is patible with the industrystandard 80C51 instruction set and pinout. The onchip Flash allows the programmemory to be reprogrammed insystem or by a conventional nonvolatile memory programmer. By bining a versatile 8bit CPU with InSystem Programmable Flash on a monolithic chip, the Atmel AT89S51 is a powerful microcontroller which provides ahighlyflexible and costeffective solution to many embedded control AT89S51 provides the following standard features: 4K bytes of Flash, 128 bytes of RAM, 32 I/O lines, Watchdog timer, two data pointers, two 16bit timer/counters, a fivevector twolevel interrupt architecture, a full duplex serial port, onchip oscillator, andclock circuitry. In addition, the AT89S51 is designed with static logic for operationdown to zero frequency and supports two software selectable power saving Idle Mode stops the CPU while allowing the RAM, timer/counters, serial port, and interrupt system to continue functioning. The Powerdown mode saves the RAM contents but freezes the oscillator, disabling all other chip functions until the next external nterrupt or hardware reset. 30 附錄 3 電路原理圖 湖南人文科技學(xué)院畢業(yè)設(shè)計 31 附錄 4 軟件程序 描述: LCD1602 顯示, SHT11 采集溫濕度,濕度超過限值,啟動加濕功能。s key ponents. Many singlechip developers are moving in that direction. 28 6. Serialization of North Korea, major prehensive development of singlechip developers in the functions of the product at the same time increase the effectiveness of the product in the form of serialized = be prehensive in order to meet the requirements of the various areas of control, which is singlechip development One of the trends. TOSHBA Japan has developed from a 464 multifamily singlechip, Hitachi also from the 4. Bit to 32bit microcontroller, which has not yet produced singlechip factory than Toshiba39。 with the use of a programmer。 help manufacturers shorten the design cycle, so that the enduser products and more petitive. 4. Integrate more functions and patibility of the other singlechip current trends in the chip more. If the
點擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1