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

正文內(nèi)容

基于at89s52與c51的多功能電子時鐘設(shè)計(編輯修改稿)

2025-02-12 13:09 本頁面
 

【文章內(nèi)容簡介】 teData(39。:39。)。}unsigned char SetTime() //時間設(shè)置函數(shù){unsigned char temp,Key_Value,j=0。//數(shù)據(jù)轉(zhuǎn)存變量、按鍵鍵值、計數(shù)器unsigned char Addr_LCD[]={0x4d,0x4c,0x4a,0x49,0x47,0x46,0x0d,0x0c,0x0a,0x09,0x07,0x06}。Unsigned char second0,minute0,hours0,date0,month0,year0,second1,minute1,hours1,date1,month1,year1。/*************相關(guān)硬件操作****************/ temp=ReadSet1302(0x81)|0x80。 WriteSet1302(0x80,temp)。//關(guān)閉時鐘 WriteSet1302(0x8e,0x00)。//關(guān)閉寫保護(hù) WriteCom(0x0f)。 //打開光標(biāo)/********以下為給各個時間中轉(zhuǎn)變量賦初值*********/ temp=ReadSet1302(0x81)amp。0x7f。 second0=tempamp。0x0f。//=(temp4)*10+(tempamp。0x0f)。//個位 second1=(temp4)amp。0x0f。 //十位 temp=ReadSet1302(0x83)。 minute0=tempamp。0x0f。//(temp4)*10+(tempamp。0x0f)。 minute1=(temp4)amp。0x0f。 temp=ReadSet1302(0x85)。 hours0=tempamp。0x0f。//(temp4)*10+(tempamp。0x0f)。 hours1=(temp4)amp。0x0f。 temp=ReadSet1302(0x87)。 date0=tempamp。0x0f。//(temp4)*10+(tempamp。0x0f)。 date1=(temp4)amp。0x0f。 temp=ReadSet1302(0x89)。 month0=tempamp。0x0f。//(temp4)*10+(tempamp。0x0f)。 month1=(temp4)amp。0x0f。 temp=ReadSet1302(0x8d)。 year0=tempamp。0x0f。 year1=(temp4)amp。0x0f。/***********************************************/ while(1) { WriteAddr(Addr_LCD[j])。 while(1)//等待按鍵,有按鍵按下,繼續(xù),有中斷INT1,硬件恢復(fù),返回 { Key_Value=KeyScan()。 if(Key_Value!=1)break。 //有按鍵按下,繼續(xù) if(Set_Time_Flag==1) { delaynms(10)。//消抖 while(INT1==0)。//等待釋放 delaynms(10)。 //消抖 Set_Time_Flag=0。 WriteSet1302(0x80,(second14)|second0)。 WriteSet1302(0x82,(minute14)|minute0)。 WriteSet1302(0x84,(hours14)|hours0)。 WriteSet1302(0x86,(date14)|date0)。 WriteSet1302(0x88,(month14)|month0)。 WriteSet1302(0x8c,(year14)|year0)。 WriteSet1302(0x90,0xa5)。 /*******相關(guān)硬件恢復(fù)*********/ WriteCom(0x0c)。 //恢復(fù)光標(biāo) temp=ReadSet1302(0x81)amp。0x7f。 //打開時鐘 WriteSet1302(0x80,temp)。 WriteSet1302(0x8e,0x80)。 //打開寫保護(hù) return 0。 } } if(Key_Value==4) { if(j==0)j=11。 else j。 } if(Key_Value==3) //按下3,則進(jìn)入下一次循環(huán) { j++。 if(j==12)j=0。 //Key_Value=KeyScan()。 //接收此時按鍵鍵值,檢測按鍵是否釋放 //while(Key_Value!=1)。 //等待釋放按鍵 } if(Key_Value==2) { //Key_Value=KeyScan()。 //接收此時按鍵鍵值,檢測按鍵是否釋放 //while(Key_Value!=1)。 //等待釋放按鍵 switch(j) { case 0: if(second0==0)second0=9。 else second0。 WriteData(ch[second0])。 break。 case 1: if(second1==0)second1=5。 else second1。 WriteData(ch[second1])。 break。 c
點(diǎn)擊復(fù)制文檔內(nèi)容
研究報告相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1