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

正文內(nèi)容

畢業(yè)論文-基于89c51單片機的智能家居控制系統(tǒng)設計(參考版)

2024-11-08 08:54本頁面
  

【正文】 delayms(1)。 j |= MOTOR_STEP[7i]。 j amp。i8。k8。 } } } void step_motor_fz(void) { unsigned char i,j,k。 P3 = j。= 0x0f。i++) { 37 j = P3。k++) { for(i=0。 for(k=0。 return adc1。 } ADC0832_CS = 1。 _nop_()。 _nop_()。 _nop_()。 _nop_()。i++) { ADC0832_CLK = 0。 } for(i=0。 _nop_()。 _nop_()。 _nop_()。 j = 1。 _nop_()。i++) { ADC0832_CLK = 0。 for(i=0。 _nop_()。 _nop_()。 ADC0832_CLK = 1。 _nop_()。 _nop_()。 _nop_()。 _nop_()。 ADC0832_CLK = 1。 _nop_()。 _nop_()。 ADC0832_CLK = 0。 _nop_()。 _nop_()。 _nop_()。 ADC0832_DI = 1。 _nop_()。 _nop_()。 _nop_()。 ADC0832_CLK = 1。 _nop_()。 _nop_()。 ADC0832_CLK = 0。 } } } } } //************************ 按鍵密碼程序 *************************/ //************************ ADC0832 程序 *************************/ unsigned char read_adc0832(void) { unsigned char adc1=0。 LCD_display_char(2,9+count,skey)。 LCD_display_char(2,9+count,0x20)。 } else if(skey == 0x08) { if(count 0) { count。 strcpy(lcd_data, Password:)。 strcpy(lcd_data, Please input the)。 LCD_clear()。 count = 0。 delayms(200)。 delayms(200)。 Beep_bit = 1。 strcpy(lcd_data, Worng! )。 strcpy(lcd_data, The password is)。 LCD_display_char(2,9+count,0x20)。 } } if(skey == 0x08) { 33 count。 strcpy(lcd_data, Password:)。 strcpy(lcd_data, Please input the)。 LCD_clear()。 count = 0。 delayms(200)。 delayms(200)。 Beep_bit = 1。 strcpy(lcd_data, Worng!)。 strcpy(lcd_data, The password is)。 break。 delayms(200)。 delayms(200)。 delayms(200)。 strcpy(lcd_data, Right !)。 strcpy(lcd_data, The password is)。amp。amp。amp。amp。amp。 while(1) { skey = key_station()。 psd[5] = 0。 psd[3] = 0。 psd[1] = 0。i++) { L1602_write_data(0x20)。 for(i=0。i++) { L1602_write_data(0x20)。 for(i=0。 } } void LCD_clear(void) { unsigned char i。) break。i++) { if(lcd_data[i] == 39。 } for(i=0。 if(x == 0x01) { L1602_write_mand(0x80)。 L1602_write_data(dat)。 else add = 0xc0+y。 30 } void LCD_display_char(unsigned char x , unsigned char y , unsigned char dat) { unsigned char add。 L1602_write_mand(0x01)。 L1602_write_mand(0x0C)。 L1602_RW=1。 _nop_()。 _nop_()。 L1602_E=1。 L1602_RW=0。 }while(i!=0)。0x80。 do{ i=L1602_read_status()。 L1602_RW=1。// _nop_()。 _nop_()。 L1602_E=1。 29 L1602_RW=0。 }while(i!=0)。= 0x80。 do{ i = L1602_read_status()。 return(s)。 L1602_RW=1。 _nop_()。 L1602_E=1。 _nop_()。 L1602_E=0。 L1602_RW=1。 } return temp。 28 temp = ~temp。 if((h amp。 l = l 4。 temp = h。 h = read_18b20()。 write_18b20(0xbe)。 EA = 0。 delayms(200)。 delayms(200)。 EA = 1。 write_18b20(0xcc)。 Init_DS18B20()。 } } /***** 得到溫度值函數(shù) *****/ unsigned int get_number_18b20(void) { unsigned char temp=0。 ds18b20_bit = 1。 27 delay10us()。 delay10us()。 } else { ds18b20_bit = 0。 if(t amp。 _nop_()。 _nop_()。 _nop_()。 _nop_()。 _nop_()。 _nop_()。i8。 } /***** 寫 18B20 函數(shù) *****/ void write_18b20(unsigned char t) { unsigned char i。 ds18b20_bit = 1。 26 delay10us()。 delay10us()。= 0x7f。 if(ds18b20_bit == 1) { c |= 0x80。 _nop_()。 _nop_()。 _nop_()。 _nop_()。 ds18b20_bit = 1。 _nop_()。 ds18b20_bit = 0。 _nop_()。i8。 unsigned char c。 } } } else { flag_1820 = 0。i++) { if(ds18b20_bit == 1) { delay100us(3)。 if(ds18b20_bit == 0) { for(i=0。 delay10us()。 delay10us()。 delay10us()。 delay100us(5)。 _nop_()。 } //************* DS18B20 程序 ********************* void Init_DS18B20(void) { unsigned char i。 KEY_LD = 1。 KEY_LB = 1。 if(i == 0xE0) break。 i amp。 if(i == 0xE0) { delayms(10)。 i amp。 KEY_LD = 0。 KEY_LB = 0。 0x20) key = 0x0D。 0x40) key = 0x30。 0x80) key = 0x08。 i = ~i。 i amp。 KEY_LD = 0。 KEY_LB = 1。 0x20) key = 0x39。 0x40) key = 0x38。 0x80) key = 0x37。 i = ~i。 i amp。 KEY_LD = 1。 KEY_LB = 1。 0x20) key = 0x36。 0x40) key = 0x35。 0x80) key = 0x34。 i = ~i。 i amp。 KEY_LD = 1。 KEY_LB = 0。 0x20) key = 0x33。 0x40) key = 0x32。 0x80) key = 0x31。 i = ~i。 i amp。 KEY_LD = 1。 KEY_LB = 1。 if(i == 0xE0) { key = 0。 i amp。 } else { delayms(10)。= 0xE0。 i = P1。 KEY_LC = 0。 KEY_LA = 0。 _nop_()。 _nop_()。 _nop_()。j++) { _nop_()。i++) { for(j=0。 for(i=0。j++)。i++) { for(j=0。 while(ms) { for(i=0。 unsigned char lcd_data[16]={KEY: ******}。 static code unsigned char DPY_TAB[16] = { 0X3f,0X06,0X5b,0X4f,0X66,0X6d,0X7d,0X07, 0X7f,0X6f,0X77,0X7c,0X39,0X5e,0X79,0X71,}。 unsigned char workstate = 0。 unsigned char seconds = 0。 unsigned char code ticks_second = (unsigned char)(1000000/time_length)。 unsigned char code time_num_h = (unsigned char)((65536time_length)/256)。 sbit flag_1820 = status^2。 sbit normal_work = status^0。 sbit Beep_bit = P3^3。 sbit SETP_3 = P3^6。 sbit SETP_1 = P3^4。 sbit ADC0832_DI = P2^3。 sbit ADC0832_CS = P2^0。 sbit KEY_L2 = P1^6。 sbit KEY_LD = P1^4。 sbit KEY_LB = P1^2。 sbit Inf_bit = P3^2。 sbit L1602_E=P2^5。 19 附錄一 程序清單 include i
點擊復制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1