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

正文內容

基于at89c51單片機的電子時鐘設計-免費閱讀

2024-11-24 10:37 上一頁面

下一頁面
  

【正文】 dat[4]=dat2[4]。 minit++。 ms++。amp。 P0=0x01。 dat[2]=10。 dat1[3]=()%10。 if(tcount==100) { ++。 while(1) { modify()。 }/*初始化 */ void test(void){ for(k=0。 //10ms ET1=1。 dat[7]=0。flag=1。 } if(P1_5==0) { TR0=0。 18 dat2[1]=0。ET0=0。 } } } if(flag==1) { alarms[3]++。 if(alarms[7]2) { alarms[7]=0。 } else if((dat1[7]1)amp。 void delay(n) {while(n) 16 { for(i=120。 uchar flag=0。 sbit thour=P1^2。 uint tcount,t,u。 從這次的 論文 設計中,我真真正正的意識到,在以后的學習中,要理論聯(lián)系實際,把我們所學的理論知識用到實際當中,學習單機片機更是如此,程序只有在經常的練習的過程中才能提高,我想這就是我在這次 論文 設計中的最大收獲。但時間有限,部分擴展功能不能及時實現,比如音樂鬧鈴。 圖 34 按鍵程序流程圖 程序初始化 時十位歸零 alarms【 7】 =0 分時位歸零alarms[4]=0 分十位歸零 輸出時鐘時十位加一 輸出鬧鐘時個位加一,延時 輸出時鐘十位加一 輸出時鐘十個位加一 輸出時鐘分個位加一,延時 輸出鬧鐘時分位加一 輸出鬧鐘時十位加一 輸出鬧鐘分個位加一,延時 時十位歸零 判斷標志位是否為零 Alarms[4]2 Alarms[7]2 Alarms【 3】 0 Dat1[6]9 Dat1[7] Alarms[6]9 Dat1[3]9 Dat1[4]2 判斷標志是否為零 判斷時 i 加鍵是否按下 判斷分加鍵是否按下 11 圖 35 為進入中斷和清零圖,程序中通過掃描來判斷按鍵是否按下進行執(zhí)行相應的中斷來事實現相應的功能。 7 3 軟件總體設計方案 主程序流程圖 軟件程序從開始執(zhí)行,先通過初始化各個寄存器,經過掃描按鍵來決定是否設定參數來執(zhí)行相應功能的程序,進而在數碼管上顯示。設計采用的是時、分、秒顯示,單片機對數據進行處理同時在數碼管上顯示。由于單片機可以很容易實現芯片的智能化,所以在電子鐘的基礎上,人們可以根據自己的需要以及場合要求添加 不同的附加功能。公元 1582 年 左右 ,意大利物理學家伽利略發(fā)明了重力擺。其次在使用壽命方面,因為電子鐘不是機械驅動,所以使用壽命更長。 基于這種情況 ,我多方查閱資料,反復論證設計出了這款既簡單實用,又價格便宜的 —— 單片機電子時鐘。 關鍵詞: 單片機;時鐘;計時 Abstract This design uses crystal to connect with the machine AT89C51, takes AT89C51 chips as core. It adopts the dynamic state of the scanning method to show. Using this MCU and 7407 drive electric circuit, we are able to show date, time, fix the time, make bell on 6 LED figures tubes. We can use 6 key to constitute date, adjust time, enact the bell and set the countdown timer. When the electric carrying out each function, the figures tube show the tight function .When the alarm clock and the countdown timer were reached, the voice begins. While 3 or 4 is pressed, the voice stops. The software part is realized by assembler language. It was divided into to show, delay, adjust, make bell, in fixed time etc. part. We get the end purpose bining the software and the hardware. Keywords: Electric clock MCU ; Dynamic state scaning; assembler language 2 目錄 1 緒論 ............................................. 1 ......................... 1 國內外研究 .................................. 1 ................................. 2 2 電子時鐘設計方案 .................................. 2 ..................... 2 系統(tǒng)電路 .................................... 3 ......................... 4 電路各功能圖解分析 ...................... 4 電路功能使用說明 ........................ 6 3 軟件總體設計方案 .................................. 7 主程序流程圖 ........................
點擊復制文檔內容
公司管理相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1