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

正文內容

數(shù)字時鐘設計word版-資料下載頁

2025-06-03 06:39本頁面
  

【正文】 。 h++。 //if(h7)h=1。 } if(!cancel) { delaynms(10)。 while(!cancel)。 flag=0。 h=7。 } } if(h==4) { WriteAddress(0x42)。 print(__)。 dlay()。 WriteAddress(0x42)。 DisplayYear(year)。 //顯示年 dlay()。 if(!left) { delaynms(10)。 while(!left)。 year。 if(year0) year=99。 } if(!right) { delaynms(10)。 while(!right)。 year++。 if(year99) year=0。 } if(!set) 桂林電子科技大學課程設計(論文)報告用紙 第 27 頁 /共 35 頁 27 { delaynms(10)。 while(!set)。 h++。 //if(h7)h=1。 } if(!cancel) { delaynms(10)。 while(!cancel)。 flag=0。 h=7。 } } if(h==5) { WriteAddress(0x45)。 print(__)。 dlay()。 WriteAddress(0x45)。 DisplayMonth(month)。 //顯示月 dlay()。 if(!left) { delaynms(10)。 while(!left)。 month。 if(month1) month=12。 } if(!right) { delaynms(10)。 while(!right)。 month++。 if(month12) month=1。 } if(!set) { delaynms(10)。 while(!set)。 h++。 //if(h7)h=1。 } 桂林電子科技大學課程設計(論文)報告用紙 第 28 頁 /共 35 頁 28 if(!cancel) { delaynms(10)。 while(!cancel)。 flag=0。 h=7。 } } if(h==6) { WriteAddress(0x48)。 print(__)。 dlay()。 WriteAddress(0x48)。 DisplayDay(day)。 //顯示日 dlay()。 if(!left) { delaynms(10)。 while(!left)。 day。 if(day1)day=31。 } if(!right) { delaynms(10)。 while(!right)。 day++。 if(day31) day=1。 } if(!set) { delaynms(10)。 while(!set)。 h++。 //if(h7)h=1。 } if(!cancel) { delaynms(10)。 while(!cancel)。 flag=0。 h=7。 桂林電子科技大學課程設計(論文)報告用紙 第 29 頁 /共 35 頁 29 } } if(h6) { WriteAddress(0x4D)。 print(OK!)。 dlay()。 WriteAddress(0x4D)。 if(!set) { delaynms(10)。 while(!set)。 flag=0。 WriteSet1302(0x8E,0x00)。 //根據(jù)寫狀態(tài)寄存器命令字,寫入不保護指令 WriteSet1302(0x80,((second/10)4|(second%10)))。 //根據(jù)寫秒寄存器命令字,寫入秒的初始值 delaynms(10)。 WriteSet1302(0x82,((minute/10)4|(minute%10)))。 //根據(jù)寫分寄存器命令字,寫入分的初始值 delaynms(10)。 WriteSet1302(0x84,((hour/10)4|(hour%10)))。 //根據(jù)寫小時寄存器命令字,寫入小時的初始值 delaynms(10)。 WriteSet1302(0x86,((day/10)4|(day%10)))。 //根據(jù)寫日寄存器命令字,寫入日的初始值 delaynms(10)。 WriteSet1302(0x88,((month/10)4|(month%10)))。 //根據(jù)寫月寄存器命令字,寫入月的初始值 delaynms(10)。 WriteSet1302(0x8c,((year/10)4|(year%10)))。 //根據(jù)寫小時寄存器命令字,寫入小時的初始值 delaynms(10)。 } if(!cancel) { delaynms(10)。 while(!cancel)。 flag=0。 h=7。 } } } 桂林電子科技大學課程設計(論文)報告用紙 第 30 頁 /共 35 頁 30 Write_(0x01)。 //清屏幕指令,將以前的顯示內容清除 delaynms(10)。 } /***************************************************** 函數(shù)功能:主函數(shù) ***************************************************/ void main(void) { // unsigned char second,minute,hour,day,month,year。 //分別儲存苗、分、小時,日,月,年 unsigned char ReadValue。 //儲存從讀取的數(shù)據(jù) unsigned char count,count_S,second_temp。 bit LS_flag。 LS_flag=0。 //報時用 Init_DS1302()。 //將初始化 LcdInt()。 //調用 LCD初始化函數(shù) LCDdelay(10)。 while(1) { WriteAddress(0x00)。 // print( )。 WriteAddress(0x01)。 // print( )。 ReadValue = ReadSet1302(0x85)。 //從分寄存器讀 hour=((ReadValueamp。0x70)4)*10 + (ReadValueamp。0x0F)。 //將讀出數(shù)據(jù)轉化 WriteAddress(0x02)。 // 設置顯示位置為第一行的第個字 //////////////// LCDdelay(5)。 DisplayHour(hour)。 //顯示小時 print(:)。 ReadValue = ReadSet1302(0x83)。 //從分寄存器讀 minute=((ReadValueamp。0x70)4)*10 + (ReadValueamp。0x0F)。 //將讀出數(shù)據(jù)轉化 //WriteAddress(0x93)。 //寫顯示地址 ,將在第行第列開始顯示 DisplayMinute(minute)。 //顯示分 print(:)。 ReadValue = ReadSet1302(0x81)。 //從秒寄存器讀數(shù)據(jù) second=((ReadValueamp。0x70)4)*10 + (ReadValueamp。0x0F)。//將讀出數(shù)據(jù)轉化 //WriteAddress(0x95)。 //寫顯示地址 ,將在第行第列開始顯示 桂林電子科技大學課程設計(論文)報告用紙 第 31 頁 /共 35 頁 31 DisplaySecond(second)。 ReadValue = ReadSet1302(0x8d)。 //從分寄存器讀 year=((ReadValueamp。0x70)4)*10 + (ReadValueamp。0x0F)。 //將讀出數(shù)據(jù)轉化 WriteAddress(0x40)。 ////// 設置顯示位置為第二行的第個字 //////////////// DisplayYear(20)。 DisplayYear(year)。 //顯示年 print()。 ReadValue = ReadSet1302(0x89)。 //從分寄存器讀 month=((ReadValueamp。0x70)4)*10 + (ReadValueamp。0x0F)。 //將讀出數(shù)據(jù)轉化 DisplayMonth(month)。 //顯示月 print()。 ReadValue = ReadSet1302(0x87)。 //從分寄存器讀 day=((ReadValueamp。0x70)4)*10 + (ReadValueamp。0x0F)。 //將讀出數(shù)據(jù)轉化 DisplayDay(day)。 //顯示日 if(!set) { delaynms(10)。 while(!set)。 flag=1。 TimeSet()。 } if(minute==0) { if(second_temp!=second) { sound=~sound。 count_S++。 if(count_S(2*hour)) { sound=1。 count++。 if(count==2) { count=0。 count_S=0。 } } } 桂林電子科技大學課程設計(論文)報告用紙 第 32 頁 /共 35 頁 32 second_temp=second。 } else if(minute) sound=1。 } } 顯示模塊: include //包含 _nop_()函數(shù)定義的頭文件 sbit RS=P2^5。 //寄存器選擇位,將 RS位定義為 sbit RW=P2^6。 //讀寫選擇位,將 RW位定義為 sbit E =P2^7。 //使能信號位,將 E位定義為 sbit BF=P0^7。 //忙碌標志位,將 BF位定義為 void LCDdelay(
點擊復制文檔內容
畢業(yè)設計相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1