【正文】
了, C、 F、 H 不亮,同時(shí)由于接法為共陽接法,那么為低電平是亮,為高電平是滅。如圖 4 所示。 如果工作于中斷方式,需置位 EA(中斷總開關(guān))及 ETX(允許定時(shí) /計(jì)數(shù) 器中斷),并編寫中斷服務(wù)程序。 void main() { 第 13 頁 共 19 頁 uchar k1=0。 分?jǐn)?shù)減 1 while(P13 == 0)。然后在生成 *.HEX 文件后,進(jìn)入 Protues 軟件,此時(shí)軟件已自動(dòng)打開一新建項(xiàng)目。 在 這期的學(xué)習(xí) 中,雖然 在理論上對(duì)單片機(jī)有了簡(jiǎn)單基本的了解,但是在真正的動(dòng)手操作中還是存在很多的不足,這些個(gè)不足有體現(xiàn)在自己的粗心大意上,更多的是對(duì)知識(shí)的應(yīng)用上能力有所欠缺,以至完成這樣一個(gè)簡(jiǎn)單的設(shè)計(jì)花費(fèi)了不少時(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. 一個(gè)人的時(shí)候,自己的想法總是特別地清晰。 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. 原來,這個(gè)世界上,對(duì)某個(gè)事件能產(chǎn)生化學(xué)反應(yīng)的,除了非做不可的堅(jiān)決,還有,時(shí)間??傆X得自己自己似乎應(yīng)該去做點(diǎn) 什么,或者寫點(diǎn)什么。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。特別是肖老師的細(xì)心指導(dǎo)和與我同組的同學(xué),在他們的鼎力幫助我才能順利的完成了本次課程設(shè)計(jì)。顯示 5 的仿真圖如圖 8 所示 . 圖 7 初始值為 0的仿真圖 第 18 頁 共 19 頁 經(jīng)過 多次 反復(fù)測(cè)試,本系統(tǒng)已能達(dá)到設(shè)計(jì)所要求的所有功能。在用 Protues 進(jìn)行仿真之前,先要用 KEIL UVISION 軟件將我們編寫好的匯編程序編譯。 分?jǐn)?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) 計(jì)數(shù) /定時(shí) 方式選擇 門控開關(guān) 計(jì)數(shù) /定時(shí) 方式選擇 表 2 控制寄存器 TF1 TR1 TF0 TRO IE1 IT1 IE0 IT0 T1 請(qǐng)求 有 /無 T1 工作 啟 /停 T0 請(qǐng)求 有 /無 T0 工作 啟 /停 INT1 請(qǐng)求有 /無 INT1 方式下沿 INT1 請(qǐng)求有 /無 INT1方式下沿 籃球比賽計(jì)分器利用單片機(jī)的計(jì)數(shù)器進(jìn)行工作,計(jì)數(shù)器對(duì)脈沖電平進(jìn)行加 1 計(jì)數(shù),直至計(jì)滿回零。 圖 2 按鍵模塊圖 第 11 頁 共 19 頁 本次課程設(shè)計(jì)的比分范圍是 0~999,所以采用的 3 個(gè) 7 段共陽 LED 來顯示,分別顯示個(gè)位十位百位,其中 P2 顯示個(gè)位, P3 顯示十位, P0 顯示百位。數(shù)碼管實(shí)際上是由 7 個(gè)發(fā)光管組成 8 字形構(gòu)成的,加上小數(shù)點(diǎn)就是 8 個(gè)。 P3 口: P3 口特點(diǎn)在于,為適應(yīng)引腳信號(hào)第二功能的需要,增加了第二功能控制邏輯。 其管腳圖如 圖 1 所示 。 第 5 頁 共 19 頁 硬件總電路圖 第 6 頁 共 19 頁 單片機(jī)模塊 單片 化是把計(jì)算機(jī)系統(tǒng)盡可能集成在一塊半導(dǎo)體芯片上,其目的在于計(jì)算機(jī)微型化和提高系統(tǒng)的可靠性,這種單片計(jì)算機(jī)簡(jiǎn)稱單片機(jī)。如分?jǐn)?shù)計(jì)錯(cuò)需減分時(shí),每按一次 k4 鍵減 1 分 。并通過 3 個(gè)數(shù)碼管進(jìn)行顯示。根據(jù)不同運(yùn)動(dòng)項(xiàng)目的不同比賽規(guī)則要求 , 體育比賽的計(jì)時(shí)記分系統(tǒng)包括測(cè)量類、評(píng)分類、命中類、制勝類、得分類等多種類型。第 1 頁 共 19 頁 課程設(shè)計(jì)任務(wù)書 學(xué) 院 專 業(yè) 學(xué) 生 姓 名 學(xué) 號(hào) 設(shè) 計(jì) 題 目 智能控制開關(guān)設(shè)計(jì) 內(nèi)容 :設(shè)計(jì) 基于單片機(jī)的智能控制開關(guān)設(shè)計(jì),要求學(xué)生運(yùn)用所學(xué)的專業(yè)理論知識(shí)完成該系統(tǒng)的硬件設(shè)計(jì)。 關(guān)鍵詞 : 計(jì)時(shí) 計(jì)分 動(dòng)態(tài)顯示 第 3 頁 共 19 頁 基于單片機(jī)的籃球賽計(jì)分器設(shè)計(jì) 1 緒論 體育比賽計(jì)時(shí)記分系統(tǒng)是 對(duì)體育比賽