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

正文內(nèi)容

紅外遙控電子密碼鎖設(shè)計(jì)畢業(yè)設(shè)計(jì)-預(yù)覽頁(yè)

 

【正文】 本文以AT89C51為核心,用Keil uVision4 進(jìn)行編譯、調(diào)試,用 Proteus 進(jìn)行仿真成功的實(shí)現(xiàn)了紅外遙控電子密碼鎖的仿真設(shè)計(jì)。 由于個(gè)人能力和時(shí)間有限,所以設(shè)計(jì)中還存在著一些問(wèn)題,譬如假象是否可以實(shí)現(xiàn)報(bào)警系統(tǒng)能與網(wǎng)絡(luò)連接等功能。再次說(shuō)自己的論文將要結(jié)束。論文不斷的全面也讓梁芳老師花費(fèi)了不少的時(shí)間和精力。你們的鼓舞和期望還有指導(dǎo)是我完成的最大助力。[3] 先鋒工作室編著. 單片機(jī)程序設(shè)計(jì)實(shí)例. 北京: 清華大學(xué)出版社. [7] 各種網(wǎng)絡(luò)教程及其他[8] 王寬仁. 可靠安全的智能密碼鎖. 電子技術(shù)應(yīng)用 , 2001[9] 李捷 , 陳典濤 , 陳建華 , 等. 一種基于單片機(jī)的電子密碼鎖的設(shè)計(jì) [J]. 農(nóng)機(jī)化研究 , 2004, 5[10] 董繼成. , 2004, 3 [11]趙益丹,徐曉林,、,2003,15[12] 張培仁. 基于 C語(yǔ)言編程 MCS 51單片機(jī)原理與應(yīng)用. 北京: 清華大學(xué)出版社 , [13] 李朝清. PC機(jī)及單片機(jī)數(shù)據(jù)通信技術(shù). 北京:北京航空航天大學(xué)出版社 , 1999.[14] :清華大學(xué)出版社,2004[15] (C51), [16] 王為青 Cx51 , [17] 范風(fēng)強(qiáng) , [18] , [19] , [20] ,2002.8 [21] Nishino S F,Paoli G C,Spain J C. Aerobic degradation of dinitrotoluenes and pathway for bacterial degradation of 2,6dinitrotoluene Volume 66,2006.[22] Kennes C,W M Wu,L Bhatnagar et al. Anaerobic dechlorination and mineralization of PCP and 2,4,6trichlorophenol by the methanogenic PCPdegrading granules Volume 44,2004.[23] JONATHAN D. NASH, DOUGLAS R. CALDWELL, MICHAEL J. ZELMAN, AND JAMES N. MOUM A Thermocouple Probe for HighSpeed Temperature Measurement in the Ocean. Manuscript received 18 August 1997, in final form 9 November 1998:14471449附錄include includedefine LCM_Data P0define uchar unsigned char define uint unsigned int//define w 6 //定義密碼位數(shù)//時(shí)間計(jì)算define Imax 14000 //, define Imin 8000 //如用其它頻率的晶振時(shí),define Inum1 1450 //要改變相應(yīng)的取值。sbit Scl=P3^4。 //開(kāi)鎖sbit open_led=P2^2。 //重置輸入充許標(biāo)志 bit s3_keydown=0。//全局變量uchar f。unsigned char code a[]={0xFE,0xFD,0xFB,0xF7}。 //輸入正確unsigned char code Error[] = { error }。unsigned char code Input[] = {input: }。unsigned char code again[] = {input again }。unsigned char N=0。 //重新輸入計(jì)數(shù)unsigned char code initpassword[6]={0,0,0,0,0,0}。 unsigned int TempCycB。 while(t) { for(i=0。 _nop_()。 Scl=1。} /*停止條件*/void Stop(void){ Sda=0。 Nop()。 Nop()。 Scl=1。 uchar temp。 if((tempamp。 temp=Data1。 Scl=0。 Sda=1。 Nop()。 if(BitCounter1) { temp1=temp1。 return(temp)。 for(i=0。 Ack()。 Ack()。 uchar *PData。i++) { Start()。 Ack()。 *(PData+i)=Read()。 }}//==================================================================================================//=======================================LCD1602====================================================//==================================================================================================define yi 0x80 //LCD第一行的初始位置,因?yàn)長(zhǎng)CD1602字符地址首位D7恒定為1(100000000=80)define er 0x80+0x40 //LCD第二行初始位置(因?yàn)榈诙械谝粋€(gè)字符位置地址是0x40)//延時(shí)函數(shù),后面經(jīng)常調(diào)用void delay(uint xms)//延時(shí)函數(shù),有參函數(shù){ uint x,y。y0。 //讀寫(xiě)選擇置為寫(xiě) P0=。 lcd1602_en=0。//送入數(shù)據(jù) delay(1)。 //en由高變低,產(chǎn)生下降沿,液晶執(zhí)行命令}//初始化void lcd_init(){ write_1602(0x38)。//清顯示}//========================================================================================//=========================================================================================//==============將按鍵值編碼為數(shù)值=========================unsigned char coding(unsigned char m1,unsigned char hh) { unsigned char k。 case (0x18): k=2。// case (0xff): k=39。break。break。 // case (0x42): k=7。 case (0x4a): k=9。break。 //撤銷(xiāo) case (0x16): k=0。break。 //重設(shè)密碼 case (0x45): k=39。A39。break。 // case (0x07): k=39。A39。break。 case (0x21): k=2。 case (0x81): k=39。break。break。 case (0x14): k=7。 case (0x44): k=9。break。 case (0x28): k=0。break。// default:。 if((P1amp。0xf0)!=0xf0) { row=P1^0xf0。0xf0)!=0xf0) { col=~(P1amp。 P1=a[i]。 return (row|col)。 ALAM=1。 Delay5Ms()。}//========================三聲提示音,表示錯(cuò)誤========================void ThreeAlam(){ ALAM=0。 ALAM=0。 ALAM=0。*39。*39。 write_1602(er)。 } } else { if(N==0) { //DisplayListChar(0,1,Error)。i++) { write_1602dat(Error[i])。i16。 write_1602(er)。 } }}//========================重置密碼==================================================//==================================================================================void ResetPassword(){ unsigned char i。 ThreeAlam()。) { if(TempPassword[i]==InputData[i]) //將兩次輸入的新密碼作對(duì)比 i++。j16。 ReInputEn=0。 } } if(i==6) { //DisplayListChar(0,1,ResetOK)。j++) { write_1602dat(ResetOK[j])。 } ReInputCont=0。 //顯示再次輸入一次 write_1602(er)。 } for(i=0。 //輸入數(shù)據(jù)位數(shù)計(jì)數(shù)器清零 } } }}//=======================輸入密碼錯(cuò)誤超過(guò)三過(guò),報(bào)警并鎖死鍵盤(pán)======================void Alam_KeyUnable(){ P1=0x00。 unsigned char j。j16。i6。 //報(bào)警關(guān) operation=0。 //密碼錯(cuò)誤輸入次數(shù)清零 CorrectCont=0。 key_disable=0。 //從24C02里讀出存儲(chǔ)密碼 if(N==6) { if(ReInputEn==0) //重置密碼功能未開(kāi)啟 { for(i=0。 ErrorCont++。 for(i=0。 TR0=1。 } } } if(i==6) { CorrectCont++。j16。 KEY=0。 //開(kāi)鎖指示燈亮 for(j=0。 write_1602(er)。 } TwoAlam()。amp。amp。amp。 for(j=0。 Delay400Ms()。 write_1602(er)。 } ThreeAlam()。 for(j=0。 } } else { //DisplayListChar(0,1,Error)。j++) { write_1602dat(Error[j])。 //將輸入數(shù)據(jù)計(jì)數(shù)器清零,為下一次輸入作準(zhǔn)備 operation=1。 EA=1。//外部中斷1開(kāi) TH0=0。 TH1=0x3C。 //啟動(dòng)等待,等LCM講入工作狀態(tài) lcd_init()。i++) { write_1602dat(name[i])。i++) { write_1602dat(start_line[i])。 //延時(shí)片刻(可不要) N=0。 if(KEY!=0||I ==1) { if(key_disable==1) { second=0。): 。): 。): 。): ResetPassword()。): Cancel()。): Ensure()。 for(i=0。 if(N6) //當(dāng)輸入的密碼少于6位時(shí),接受輸入并保存,大于6位時(shí)則無(wú)效。)。 write_1602dat(39。 N++。 TH1=0x3C。 if(pass==1) { if(second==1) { open_led=1。 second=
點(diǎn)擊復(fù)制文檔內(nèi)容
化學(xué)相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1