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

正文內容

基于avr的可調電子鐘設計論文-資料下載頁

2025-06-27 17:51本頁面
  

【正文】 function[1][i])。}}/*設置時間*/void set_clock(void){uchar cursor = 0。//光標uchar i,j。wr_dictate(0x01)。//清屏Write1302(WRITE_PROTECT,0x00)。Write1302(WRITE_SECOND,time[4]|0x80)。//暫時停止時鐘的運行Write1302(WRITE_PROTECT,0x80)。display_lcd(0x82,0x00)。//顯示年display_lcd(0x85,0x01)。//月display_lcd(0x88,0x02)。//日display_lcd(0xc2,0x03)。//時display_lcd(0xc5,0x03)。//分display_lcd(0xc8,0x03)。//秒for (i=0,j=0。i10。i+=2){display_lcd(0x80+j,number[lcd_show[i]])。display_lcd(0x80+j+1,number[lcd_show[i+1]])。j = j+3。}wr_dictate(0x02)。wr_dictate(0x0e)。j = 0。while(1){NOP()。switch(get_key()){case 1://確認{cursor++。j++。if (cursor%2==0){j++。wr_dictate(0x14)。wr_dictate(0x14)。}else{wr_dictate(0x14)。}if (cursor==10){j = 0。cursor = 0。wr_dictate(0x02)。//光標歸位}place = 0x80+j。break。}case 2://加{switch(cursor){/*一下的 case 成功選擇項為光標對應的調整位數*/case 0:{add_d(cursor,1)。break。}case 1:{if(lcd_show[0]==1)add_d(cursor,2)。elseadd_d(cursor,9)。break。}case 2:{add_d(cursor,3)。break。}case 3:{if(lcd_show[2]==3)add_d(cursor,0)。elseadd_d(cursor,9)。break。}case 4:{add_d(cursor,2)。break。}case 5:{if(lcd_show[4]==2)add_d(cursor,3)。elseadd_d(cursor,9)。break。}case 6:{add_d(cursor,5)。break。}case 7:{add_d(cursor,9)。break。}case 8:{add_d(cursor,5)。break。}case 9:{add_d(cursor,9)。break。}}display_lcd(place,number[value])。//顯示在液晶屏的相應的位置wr_dictate(0x10)。break。}case 3://減{switch(cursor){/*一下的 case 成功選擇項為光標對應的調整位數*/case 0:{dec_d(cursor,1)。break。}case 1:{if(lcd_show[0]==1)dec_d(cursor,2)。elsedec_d(cursor,9)。break。}case 2:{dec_d(cursor,3)。break。}case 3:{if(lcd_show[2]==3)dec_d(cursor,0)。elsedec_d(cursor,9)。break。}case 4:{add_d(cursor,2)。break。}case 5:{if(lcd_show[4]==2)dec_d(cursor,3)。elsedec_d(cursor,9)。break。}case 6:{dec_d(cursor,5)。break。}case 7:{dec_d(cursor,9)。break。}case 8:{dec_d(cursor,5)。break。}case 9:{dec_d(cursor,9)。break。}}display_lcd(place,number[value])。//顯示在液晶屏的相應的位置wr_dictate(0x10)。break。}case 4://退格{affirm_data()。init_1302()。T1_OPEN。goto OUT。}default: break。}}OUT:NOP()。}/*補充顯示*/void allowance(void){uchar i,j。display_lcd(0x82,0x00)。//顯示月display_lcd(0x85,0x01)。//日display_lcd(0x88,0x02)。//時display_lcd(0x8b,0x03)。//分get_time(time)。adopt_data()。for (i=0,j=0。i10。i+=2){display_lcd(0x80+j,number[lcd_show[i]])。display_lcd(0x80+j+1,number[lcd_show[i+1]])。j = j+3。}}int main(void){uchar chinese[5][8] ={{0x08,0x0f,0x12,0x0f,0x0a,0x1f,0x02,0x02},{0x0f,0x09,0x0f,0x0,0x0f,0x09,0x13,0x00},{0x1f,0x11,0x11,0x1f,0x11,0x11,0x11,0x1f,0x00},{0x01,0x1d,0x17,0x1d,0x17,0x1d,0x03,0x01},{0x04,0x0a,0x11,0x0e,0x02,0x0a,0x16,0x00},}。uchar i,j。uchar key_Enter = 0。//確認鍵被按下的次數//控制線DDRC = 0xff。//方向寄存器PORTC = 0xff。//數據寄存器//數據端DDRB = 0xff。//端口 B 設置為輸出PORTB = 0xff。DDRD = 0xff。//按鍵設為輸入PORTD = 0xff。init_1302()。init_lcd()。T1_int()。wr_dictate(0x40)。for (j=0。j5。j++){for (i=0。i8。i++){wr_data(chinese[j][i])。//利用循環(huán)語句把點陣字符寫進 CGRAM 中}}allowance()。//補充顯示 while(1) {NOP()。i=get_key()。if (i==1)//所有的功能以確認鍵按下才開始操作{while (1){NOP()。switch(i){case 1://確認鍵{T1_CLOSE。//確認鍵按下,停止顯示數字key_Enter++。switch(key_Enter){case 1:{show_function()。//顯示功能break。}case 2:{set_clock()。//設置時間goto OUT。}}break。}case 2://加值鍵{display_lcd(0x84,0x20)。//清除上行的箭頭display_lcd(0xc4,0x7e)。//顯示一個箭頭break。}case 3://減值鍵{display_lcd(0xc4,0x20)。//消除下行的箭頭display_lcd(0x84,0x7e)。//顯示一個箭頭break。}case 4://確定鍵{OUT:wr_dictate(0x01)。key_Enter =0。allowance()。wr_dictate(0x0c)。T1_OPEN。//繼續(xù)顯示break。}default:break。}i = get_key()。if(key_Enter==0)//操作完成,退出break。}} }return 0。}/*利用中斷程序來訪問 ds1302*/SIGNAL(TIMER1_OVF_vect)//T1 中斷程序,執(zhí)行中斷程序時將關閉全局中斷使能位,不能響應其他中斷{uchar i,j。TCNT1 = 0xcf2c。//16 位計數寄存器T1_INIT_CLOSE。count。if (count==0){count=10。T1_CLOSE。get_time(time) 。adopt_data()。//轉化為 lcd 顯示的數據for (i=0,j=0。i10。i +=2){display_lcd(0x80+j,number[lcd_show[i]])。display_lcd(0x80+j+1,number[lcd_show[i+1]])。}}T1_INIT_OPEN。//再次開定時中斷} 附錄 4 參考文獻[1] 沈文,Eagle lee,詹衛(wèi)前. AVR 單片機 C 語言開發(fā)入門指導[M]. 北京:清華大學出版社, 2022.[2] Richard Bart C 編程與 Atmel AVR[M].北京:清華大學出版社,2022.[3] Ying HuangSanthosh KumaranJenYao modeldriven framework for enterprise service management[J].IseB,2022,3:201217[4] 耿德根等 .AVR 高速嵌入式單片機原理與應用[M].北京:航空航天大學出版社,2022.[5] Mohamadi, T. Real Time Operating System for AVR microcontrollers. Design amp。 Test Symposium (EWDTS),2022 9th EastWest,912 Sept. 2022:376380[6] 系列單片機 C 語言編程與應用實例[M].北京:清華大學出版社,2022.[7] 張軍,宋濤 .AVR 單片機 C 語言程序設計實例精粹[M].北京:電子工業(yè)出版社,2022[8] Von Dhananjay V. Gadre .Programming And Customizing the AVR Microcontroller[M]. McGrawHill Companies,2022[9] 丁化成等 .AVR 單片機應用設計[M].北京:航空航天大學出版社,2022.[10] 單片機原理及應用 [M].北京:國防工業(yè)出版社,2022
點擊復制文檔內容
規(guī)章制度相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1