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

正文內容

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

2025-01-08 08:14本頁面
  

【正文】 namp。amp。Ms50==9amp。amp。niao_hao) LING=0。 if(hour==shiamp。amp。minute==fenamp。amp。niao_hao) ShowASC(6,120,0x3d)。 if(Ms50==10) 22 { Ms50=0。 half_s=!half_s。 } if(Ms50==0) LING=1。 ShowASC(6,120,0x3a)。 } /**************timer0 中斷處理 **************************/ void time0() interrupt 1 { TH0=50000/256。 TL0=50000%256。 Ms50++。 } ( 2)液晶顯示子程序 ifndef _LCM12864_2022_4_1_ define _LCM12864_2022_4_1_ /*********************選擇屏幕 ********************************/ void SelectScreE(uchar screE) { switch(screE) { case 0:CS1=1。CS2=1。break。//全屏 case 2:CS1=1。CS2=0。break。//左屏 case 1:CS1=0。CS2=1。break。//右屏 default:break。 } } /*********************初始化相關 *******************************/ void InitLCD(void) { SetOnOff(0)。 ClearScreE(0)。 SetOnOff(1)。 } /***************開關顯示 ******************/ void SetOnOff(uchar onoff) { onoff|=0x3e。 WriteCmd(onoff)。 } /*************清屏 **********/ void ClearScreE(uchar screE) { unsigned char i,j。 SelectScreE(screE)。 for(i=0。i8。i++) {SetLine(i)。 for(j=0。j64。j++) { SetColumn(j)。 WriteByte(0x00)。 } } } /******************設定列地址 **************/ void SetColumn(uchar column) { column amp。= 0x3f。 // 0=column=63 column |= 0x40。 WriteCmd(column)。 } /**************顯示數(shù)字 8*16*********************/ void ShowASC(uchar lin,uchar column,uchar ASC) 23 { unsigned char *address。 address=amp。nAsciiDot[ASC0X30][0]。 Show8x8(lin,column,address)。 Show8x8(lin+1,column,address+8)。 } /********************顯示漢字 16*16****************************/ void ShowChina(uchar lin,uchar column,uchar num) { unsigned char *address。 address = amp。HZcode[num][0]。 Show8x8(lin,column,address)。 Show8x8(lin,column+8,address+8)。 Show8x8(lin+1,column,address+16)。 Show8x8(lin+1,column+8,address+24)。 } endif ( 3) ds1302 子程序 ifndef __ds1302_H__ define __ds1302_H__ /***************往 DS1302 寫入 1Byte 數(shù)據(jù) ************************/ void v_WTInputByte(uchar ucDa) { uchar i。 ACC= ucDa。 for(i=8。 i0。 i) { T_IO = ACC0。 T_CLK = 1。 T_CLK = 0。 ACC =ACC 1。 } } /**********************從 DS1302 讀取 1Byt**********************/ uchar uc_RTOutputByte(void) { uchar i。 for(i=8。 i0。 i) { ACC = ACC1。 ACC7 = T_IO。 T_CLK = 1。 T_CLK = 0。 } return(ACC)。 } /**********************往 DS1302 寫入數(shù) *************************/ void wr_ds1302(uchar ucAddr, uchar ucDa) { T_RST = 0。 T_CLK = 0。 T_RST = 1。 v_WTInputByte(ucAddr)。 /* 地址,命令 */ v_WTInputByte(ucDa)。 /* 寫 1Byte 數(shù)據(jù) */ T_CLK = 1。 T_RST =0。 } endif 3. 仿真圖 24 四論文小結 轉眼間論文已近到了尾聲了。在這期間我學習到很多的新知識。尤其是對編程的掌握。以往在學校時學習編程時遇到到新的芯片時,都是老師先編好程序我們理解記憶 。而這次我獨立的完成 DS1302 的編程對我來說這是一次很大的進步吧。在這次論文中我還把我以前學的很多的知識又用了一邊。使我對以前的知識又有了新的理解。 在次還要感謝我的指導老師 高老師的幫助。 五 參考文獻 1. AT89S52數(shù)據(jù)手冊 2. DS1302數(shù)據(jù)手冊 3. LM35數(shù)據(jù)手冊 4. LM358 數(shù)據(jù)手冊 5. ADC0804數(shù)據(jù)手冊 6. FG12864E數(shù)據(jù)手冊
點擊復制文檔內容
公司管理相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1