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

正文內(nèi)容

基于單片機的電子密碼鎖設(shè)計論文-閱讀頁

2024-09-18 17:45本頁面
  

【正文】 F0) { rcode = 0xFE。0x10)!= 0) { P1=rcode。0xF0)!= 0xF0) // 本行有鍵按下 { 大學(xué)本科生畢業(yè)設(shè)計(論文) 23 ccode=(P1amp。 do{。0xF0)!= 0xF0)。 // 返回鍵編碼 } else rcode=(rcode1)|0x01。 // 無鍵按下,返回值為 0 } bit Check_passwd() { uchar firm_passwd[5]={0}。 while(chance) { LCD_DISPLAY(Input Passwd :)。 //顯示屏換行 j=0。}while(key==0)。139。write_data(39。)。 case 0x21: firm_passwd[j]=39。j++。239。break。339。write_data(39。)。 case 0x81: firm_passwd[j]=39。j++。439。break。539。write_data(39。)。 大學(xué)本科生畢業(yè)設(shè)計(論文) 24 case 0x22: firm_passwd[j]=39。j++。639。break。739。write_data(39。)。 case 0x82: firm_passwd[j]=39。j++。839。break。939。write_data(39。)。 case 0x24: firm_passwd[j]=39。j++。039。break。 } beep=0。 beep=1。 //等待確認鍵 temp=1。chance。 delaynms(15)。 //密碼正確返回 1 } return 0。 uchar key。 //存放用戶輸入的密碼,用于驗證 key=Keycan()。 beep=0。 beep=1。//重新顯示歡迎界面 return。 write_(0xc0)。}while(key==0)。139。write_data(39。)。 case 0x21: passwd[j]=39。j++。239。break。339。write_data(39。)。 case 0x81: passwd[j]=39。j++。439。break。539。write_data(39。)。 case 0x22: passwd[j]=39。j++。639。break。739。write_data(39。)。 case 0x82: passwd[j]=39。j++。839。break。939。write_data(39。)。 case 0x24: passwd[j]=39。j++。039。break。 } beep=0。 beep=1。//等待確認鍵 WrToROM(0x00,passwd,5)。 //clear screan LCD_DISPLAY(OK!)。 delaynms(10)。 LCD_DISPLAY(Wele china ! Plz input passwd)。 write_(0xc0)。139。write_data(39。)。 //存放的是字符 1 case 0x21: firm_passwd[j]=39。j++。*39。 break。339。write_data(39。)。 case 0x81: firm_passwd[j]=39。j++。*39。 break。539。write_data(39。)。 大學(xué)本科生畢業(yè)設(shè)計(論文) 27 case 0x22: firm_passwd[j]=39。j++。*39。 break。739。write_data(39。)。 case 0x82: firm_passwd[j]=39。j++。*39。 break。939。write_data(39。)。 case 0x24: firm_passwd[j]=39。j++。*39。 break。 } beep=0。 beep=1。}while(key==0)。 //等待確認鍵 temp=1。 write_(0x01)。relay=0。 //顯示 ERROR beep=0。 beep=1。//重新顯示歡迎界面 } } //***************** 80s52 對 eeprom **********************// include include define uchar unsigned char define uint unsigned int 大學(xué)本科生畢業(yè)設(shè)計(論文) 28 define nop _nop_ () sbit SDA= P3^5。 void delay10ms(void) //10ms 誤差 { unsigned char a,b。b0。a0。 } //*************************************************************// void start(void) //SCL=1: SDA=10。 SDA=1。 nop。 nop。 SDA=0。 nop。 nop。 SDA=1。 { SCL=0。 nop。 nop。 SCL=1。 nop。 nop。 nop。 nop。 SCL=0。 SCL=1。 nop。 大學(xué)本科生畢業(yè)設(shè)計(論文) 30 nop。 nop。 nop。 SDA=1。 nop。 nop。 SCL=1。 nop。 nop。 } //********************************************************************// bit testack() { bit errorbit。 SDA=1。 大學(xué)本科生畢業(yè)設(shè)計(論文) 31 nop。 nop。 errorbit=SDA。 nop。 nop。 return errorbit。 0ack。 SCL=0。i0。 nop。 nop。 if(mandamp。 else SDA=0。 nop。 SCL=1。 nop。 nop。 } SCL=0。 send(0xa0)。 //********1*********************send send(bytew_addr)。 //*********2********************send send(bytew_data)。 //********3**********************send stop()。 } //*****************************************************************// uchar read() { uchar i,r=0。 for(i=0。i++) 大學(xué)本科生畢業(yè)設(shè)計(論文) 33 { r=r1。 nop。 nop。 SCL=1。 nop。 nop。 else r=ramp。 nop。 nop。 return r。 start()。 //0xa0=1010 000 0 = firm(1010) Chip_Addr(000) re(1)/wr(0) 大學(xué)本科生畢業(yè)設(shè)計(論文) 34 ack()。 ack()。 send(0xa1)。 //*********6*********************send rev_data=read()。 stop()。 } void WrToROM(uchar Address,uchar Data[],uchar Num) { uchar i。iNum。 } } /***********Read Num chars from Address and put them in Data[] ***************/ void RdFromROM(uchar Address,uchar Data[],uchar Num) { uchar i。iNum1。 } Data[i] = 39。 } 大學(xué)本科生畢業(yè)設(shè)計(論文) 35 //***************** 80s52 對 LCD1602A **********************// include define uchar unsigned char define DATA1 P0 //注: data 是關(guān)鍵字 sbit RS=P2^5。 sbit EN=P2^7。 for(i=0。i++)。 tmp=0x80。0x80) { RW=1。 RS=0。 EN=1。 tmp=DATA1。 EN=0。 } } void write_(uchar ) { CheckBusy()。 大學(xué)本科生畢業(yè)設(shè)計(論文) 36 RS=0。 DATA1=。 EN=1。 } void write_data(uchar Data) { CheckBusy()。 RS=1。 DATA1=Data。 EN=1。 } void LCD_init() { write_(0x38)。 //openshow all,opencursor,open cursor flash write_(0x06)。 //clear screan } void write_string(uchar *str) { char i=0。\039。 write_data(*str)。 write_data(*str)。 i++。 //clear screan write_string(
點擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1