【正文】
了, C、 F、 H 不亮,同時由于接法為共陽接法,那么為低電平是亮,為高電平是滅。如圖 4 所示。 如果工作于中斷方式,需置位 EA(中斷總開關(guān))及 ETX(允許定時 /計數(shù) 器中斷),并編寫中斷服務(wù)程序。 void main() { 第 13 頁 共 19 頁 uchar k1=0。 分數(shù)減 1 while(P13 == 0)。然后在生成 *.HEX 文件后,進入 Protues 軟件,此時軟件已自動打開一新建項目。 在 這期的學習 中,雖然 在理論上對單片機有了簡單基本的了解,但是在真正的動手操作中還是存在很多的不足,這些個不足有體現(xiàn)在自己的粗心大意上,更多的是對知識的應(yīng)用上能力有所欠缺,以至完成這樣一個簡單的設(shè)計花費了不少時間。t agree with the disciplinary action your employer has taken against you ? your employer dismisses you and you think that you have been dismissed unfairly. For more information about dismissal and unfair dismissal, see Dismissal. You can make a claim to an employment tribunal, even if you haven39。s 21 win. Michel Platini, president of European football39。 The end of our life, and can meet many things really do? 而窮盡我們的一生,又能遇到多少事情是真正地非做不可? During my childhood, think lucky money and new clothes are necessary for New Year, but as the advance of the age, will be more and more found that those things are optional。s time, your ideas are always special to clear. Want, want, line is clear, as if nothing could shake his. Also once seemed to be determined to do something, but more often is he backed out at last. Dislike his cowardice, finally found that there are a lot of love, there are a lot of 第 22 頁 共 19 頁 miss, like shadow really have been doomed. Those who do, just green years oneself give oneself an arm injection, or is a selfrighteous spiritual. 一個人的時候,自己的想法總是特別地清晰。 Have declared the end of the encounter that haven39。t. Baumgartner still will free fall at a speed that would cause you and me to pass out, and no parachute is guaranteed to work higher than 25,000 feet (7,620 meters). cause there 。 Those were broken into various shapes of stationery。 Originally, this world, can produce a chemical reaction to an event, in addition to resolutely, have to do, and time. 原來,這個世界上,對某個事件能產(chǎn)生化學反應(yīng)的,除了非做不可的堅決,還有,時間??傆X得自己自己似乎應(yīng)該去做點 什么,或者寫點什么。s Premier League match at Chelsea on Sunday. I am going to be at the match tomorrow and I have asked to meet Yaya Toure, he told BBC Sport. For me it39。特別是肖老師的細心指導和與我同組的同學,在他們的鼎力幫助我才能順利的完成了本次課程設(shè)計。顯示 5 的仿真圖如圖 8 所示 . 圖 7 初始值為 0的仿真圖 第 18 頁 共 19 頁 經(jīng)過 多次 反復測試,本系統(tǒng)已能達到設(shè)計所要求的所有功能。在用 Protues 進行仿真之前,先要用 KEIL UVISION 軟件將我們編寫好的匯編程序編譯。 分數(shù)加 3 while(P12 == 0)。 按鍵 k3 sbit P13=P1^3。其格式見下面兩表: 表 1 方式控制寄存器 TMOD GATE C/T M1 M0 GATE C/T M1 M0 圖 4 數(shù)碼管顯示模塊圖 第 12 頁 共 19 頁 門控開關(guān) 計數(shù) /定時 方式選擇 門控開關(guān) 計數(shù) /定時 方式選擇 表 2 控制寄存器 TF1 TR1 TF0 TRO IE1 IT1 IE0 IT0 T1 請求 有 /無 T1 工作 啟 /停 T0 請求 有 /無 T0 工作 啟 /停 INT1 請求有 /無 INT1 方式下沿 INT1 請求有 /無 INT1方式下沿 籃球比賽計分器利用單片機的計數(shù)器進行工作,計數(shù)器對脈沖電平進行加 1 計數(shù),直至計滿回零。 圖 2 按鍵模塊圖 第 11 頁 共 19 頁 本次課程設(shè)計的比分范圍是 0~999,所以采用的 3 個 7 段共陽 LED 來顯示,分別顯示個位十位百位,其中 P2 顯示個位, P3 顯示十位, P0 顯示百位。數(shù)碼管實際上是由 7 個發(fā)光管組成 8 字形構(gòu)成的,加上小數(shù)點就是 8 個。 P3 口: P3 口特點在于,為適應(yīng)引腳信號第二功能的需要,增加了第二功能控制邏輯。 其管腳圖如 圖 1 所示 。 第 5 頁 共 19 頁 硬件總電路圖 第 6 頁 共 19 頁 單片機模塊 單片 化是把計算機系統(tǒng)盡可能集成在一塊半導體芯片上,其目的在于計算機微型化和提高系統(tǒng)的可靠性,這種單片計算機簡稱單片機。如分數(shù)計錯需減分時,每按一次 k4 鍵減 1 分 。并通過 3 個數(shù)碼管進行顯示。根據(jù)不同運動項目的不同比賽規(guī)則要求 , 體育比賽的計時記分系統(tǒng)包括測量類、評分類、命中類、制勝類、得分類等多種類型。第 1 頁 共 19 頁 課程設(shè)計任務(wù)書 學 院 專 業(yè) 學 生 姓 名 學 號 設(shè) 計 題 目 智能控制開關(guān)設(shè)計 內(nèi)容 :設(shè)計 基于單片機的智能控制開關(guān)設(shè)計,要求學生運用所學的專業(yè)理論知識完成該系統(tǒng)的硬件設(shè)計。 關(guān)鍵詞 : 計時 計分 動態(tài)顯示 第 3 頁 共 19 頁 基于單片機的籃球賽計分器設(shè)計 1 緒論 體育比賽計時記分系統(tǒng)是 對體育比賽