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

正文內(nèi)容

江蘇大學單片機課程設計-多功能數(shù)字鐘的設計-資料下載頁

2025-06-04 05:35本頁面
  

【正文】 Send7279Byte(0x90)。 Send7279Byte(0x01)。 NOSELECT7279。 WaitKeyOff()。 Num*=10。 //轉換成十進制 Num+=KeyValue。 Delay1ms(200)。 } } } void DispTime(void) { Send7279Byte(0x85)。 //在最高位(第 5位) LED顯示小時的高位 Send7279Byte(HourH)。 Send7279Byte(0x84)。 //在第 4位 LED顯示小時的低位 Send7279Byte(HourL)。 Send7279Byte(0x83)。 //在第 3位 LED顯示分鐘的高位 Send7279Byte(MinuteH)。 Send7279Byte(0x82)。 //在第 2位 LED顯示分鐘的低位 Send7279Byte(MinuteL)。 Send7279Byte(0x81)。 //在第 1位 LED顯示秒鐘的高位 Send7279Byte(SecondH)。 Send7279Byte(0x80)。 //在第 0位 LED顯示秒鐘的低位 Send7279Byte(SecondL)。 } void main(void) { unsigned long CurrentTime=0。 unsigned char i=0,a=0。 unsigned long SetTime=0。 unsigned char KeyValue。 WDTCN = 0xde。 //關看門狗 WDTCN = 0xad。 SYSCLK_Init()。 //初始化系統(tǒng)時鐘 PORT_Init()。 //初始化 I/O口 Timer0_Init()。 //初始化定時器 CPT1CN|=0x80。 //使能比較器 1 ET0 =1。 //開定時器 0中斷 EA=1。 //開總體中斷 //Delay1ms(25)。 //7279上電復位的延時時間 //Send7279Byte(0xA4)。 //7279復位 do { //從鍵盤輸入時間,格式 HHMMSS CurrentTime=InputNum()。 DispValue(CurrentTime)。 NowTime[0]=(unsigned char)((CurrentTime/100000)4)。//時 CurrentTime=CurrentTime%100000。 NowTime[0]=NowTime[0]|(CurrentTime/10000)。 CurrentTime=CurrentTime%10000。 NowTime[1]=(unsigned char)((CurrentTime/1000)4)。//分 CurrentTime=CurrentTime%1000。 NowTime[1]=NowTime[1]|(CurrentTime/100)。 CurrentTime=CurrentTime%100。 NowTime[2]=(unsigned char)((CurrentTime/10)4)。//秒 CurrentTime=CurrentTime%10。 NowTime[2]=NowTime[2]|CurrentTime。 }while ((NowTime[0]0x24)|(NowTime[1]0x59)|(NowTime[2]0x59))。 HourH=NowTime[0]/16。//轉換成 10進制 HourL=NowTime[0]%16。 MinuteH=NowTime[1]/16。 MinuteL=NowTime[1]%16。 SecondH=NowTime[2]/16。 SecondL=NowTime[2]%16。 while(1) { Delay1s(1)。 SecondL++。 if (SecondL9) {SecondH++,SecondL=0。} if(SecondH5){SecondH=0,MinuteL++。 } if (MinuteL9) {MinuteH++,MinuteL=0。} if(MinuteH5){MinuteH=0,HourL++。 } if(HourL9) {HourH++。HourL=0。} if(HourH2) HourH=0。 if(HourH1amp。HourL3){HourH=0,HourL=0。} //校時校分功能 if(KeyValue==10){HourH++。} if(KeyValue==11){HourL++。} if(KeyValue==12){MinuteH++。} if(KeyValue==13){MinuteL++。} //整點報時功能 if((SecondL=0amp。amp。SecondL=3)amp。SecondH==0amp。MinuteL==0amp。MinuteH==0) {Send7279Byte(0x88)。Send7279Byte(0x00)。} if((SecondL3)amp。SecondH==0amp。MinuteL==0amp。MinuteH==0) {FlashLED(8)。} DispTime()。 //顯示實時時間 //鬧鐘功能 KeyValue=GetKeyValue()。 if(KeyValue==15) { SetTime=InputNum()。 NowTime[0]=(unsigned char)((SetTime/100000)4)。//時 SetTime=SetTime%100000。 NowTime[0]=NowTime[0]|(SetTime/10000)。 SetTime=SetTime%10000。 NowTime[1]=(unsigned char)((SetTime/1000)4)。//分 SetTime=SetTime%1000。 NowTime[1]=NowTime[1]|(SetTime/100)。 SetTime=SetTime%100。 NowTime[2]=(unsigned char)((SetTime/10)4)。//秒 SetTime=SetTime%10。 NowTime[2]=NowTime[2]|SetTime。 S[0]=NowTime[0]/16。//轉換成 10 進制 S[1]=NowTime[0]%16。 S[2]=NowTime[1]/16。 S[3]=NowTime[1]%16。 S[4]=NowTime[2]/16。 S[5]=NowTime[2]%16。 } if(SecondL==S[5]amp。amp。SecondH==S[4]amp。amp。MinuteL==S[3]amp。amp。MinuteH==S[2]amp。amp。HourL==S[1]amp。amp。HourH==S[0]) { Send7279Byte(0x88)。 Send7279Byte(0x00)。 a=SecondL。 a=a+2。 } if (a==SecondL) FlashLED(8)。 }
點擊復制文檔內(nèi)容
畢業(yè)設計相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1