畢業(yè)論文 基于單片機(jī)的籃球計(jì)時(shí)計(jì)分器設(shè)計(jì).doc
約48頁(yè)DOC格式手機(jī)打開展開
畢業(yè)論文 基于單片機(jī)的籃球計(jì)時(shí)計(jì)分器設(shè)計(jì),摘 要:本設(shè)計(jì)是基于at89c51單片機(jī)的籃球計(jì)時(shí)計(jì)分器,利用7段共陰led作為顯示器件。在此設(shè)計(jì)中共接入了1個(gè)四位一體7段共陰led顯示器,2個(gè)三位一體7段共陰led顯示器,前者用來記錄賽程時(shí)間,其中2位用于顯示分鐘,2位用于顯示秒鐘,后者用于記錄甲乙隊(duì)的分?jǐn)?shù),每隊(duì)2個(gè)led顯示器顯示范圍可達(dá)到0~999分。賽程計(jì)時(shí)...
![](http://img.queshao.com/images/pcgzh.gif)
![](http://preview.queshao.com/tobuy/196648.gif)
內(nèi)容介紹
此文檔由會(huì)員 ljjwl8321 發(fā)布
摘 要:本設(shè)計(jì)是基于AT89C51單片機(jī)的籃球計(jì)時(shí)計(jì)分器,利用7段共陰LED作為顯示器件。在此設(shè)計(jì)中共接入了1個(gè)四位一體7段共陰LED顯示器,2個(gè)三位一體7段共陰LED顯示器,前者用來記錄賽程時(shí)間,其中2位用于顯示分鐘,2位用于顯示秒鐘,后者用于記錄甲乙隊(duì)的分?jǐn)?shù),每隊(duì)2個(gè)LED顯示器顯示范圍可達(dá)到0~999分。賽程計(jì)時(shí)采用倒計(jì)時(shí)方式,比賽開始時(shí)啟動(dòng)計(jì)時(shí),直至計(jì)時(shí)到0為止。
為了配合計(jì)時(shí)器和計(jì)分器校正調(diào)整時(shí)間和比分,我們特定在本設(shè)計(jì)中設(shè)立了7個(gè)按鍵,用于設(shè)置,調(diào)整時(shí)間,啟動(dòng),調(diào)整分?jǐn)?shù)和暫停等功能。采用單片機(jī)控制是這個(gè)系統(tǒng)按鍵操作使用簡(jiǎn)潔,LED顯示,安裝方便。
關(guān)鍵詞:?jiǎn)纹瑱C(jī) ; 計(jì)時(shí) ; 計(jì)分 ; 顯示器 ; 接口
Design of Basketball timing Scoring Device Based on SCM
Abstract:The design is based on AT89C51 microcontroller timing basketball scoring device, the use of 7 as a common cathode LED display.In this design, the CPC has an access to one of four 7-segment common cathode LED display, 2 Trinity 7 common cathode LED displays, the former is used to record the race of time, of which 2 used to display the minutes, 2 seconds to displayminutes, which is used to record scores and B teams, each team two LED display shows the range of 0 to 999 points can be achieved.Schedule time with the countdown mode, the game starts the beginning of time until the timer to 0 so far.
To cope with calibration timer and scoring device to adjust the time and score, we design a specific set in the 7 buttons, for setting, adjusting the time, start, adjust the score and pause functions.The system uses single chip control is to use simple button operation, LED display, easy to install.
Key words:microcontroller ; timer ; score; display ; interface
目 錄
1緒論 1
2系統(tǒng)方案說明 3
2.1 方案選擇 3
2.1.1 籃球賽計(jì)時(shí)計(jì)分器設(shè)計(jì)的現(xiàn)狀 3
2.1.2系統(tǒng)總體設(shè)計(jì)方案 3
3統(tǒng)硬件電路設(shè)計(jì) 8
3.1籃球賽計(jì)時(shí)計(jì)分器電路工作過程 8
3.2系統(tǒng)硬件電路組成 8
3.2.1 主要器件選擇及介紹 8
3.2.2顯示模塊 17
3.2.3報(bào)警模塊 18
3.2.4時(shí)鐘電路模塊 18
3.2.5 復(fù)位電路模塊 19
3.3籃球賽計(jì)時(shí)計(jì)分電路原理圖 20
4 軟件編程及調(diào)試 21
4.1 軟件總體設(shè)計(jì)方案 21
4.2 軟件設(shè)計(jì)具體過程 22
4.2.1延時(shí)模塊設(shè)計(jì) 23
4.2.2 顯示時(shí)間,分?jǐn)?shù)子程序模塊設(shè)計(jì) 23
4.2.3 按鍵控制子程序設(shè)計(jì)模塊 27
4.2.4 中斷程序設(shè)計(jì)模塊 35
4.2.5 主函數(shù)設(shè)計(jì)模塊 37
總結(jié) 41
致謝 43
參考文獻(xiàn) 45
為了配合計(jì)時(shí)器和計(jì)分器校正調(diào)整時(shí)間和比分,我們特定在本設(shè)計(jì)中設(shè)立了7個(gè)按鍵,用于設(shè)置,調(diào)整時(shí)間,啟動(dòng),調(diào)整分?jǐn)?shù)和暫停等功能。采用單片機(jī)控制是這個(gè)系統(tǒng)按鍵操作使用簡(jiǎn)潔,LED顯示,安裝方便。
關(guān)鍵詞:?jiǎn)纹瑱C(jī) ; 計(jì)時(shí) ; 計(jì)分 ; 顯示器 ; 接口
Design of Basketball timing Scoring Device Based on SCM
Abstract:The design is based on AT89C51 microcontroller timing basketball scoring device, the use of 7 as a common cathode LED display.In this design, the CPC has an access to one of four 7-segment common cathode LED display, 2 Trinity 7 common cathode LED displays, the former is used to record the race of time, of which 2 used to display the minutes, 2 seconds to displayminutes, which is used to record scores and B teams, each team two LED display shows the range of 0 to 999 points can be achieved.Schedule time with the countdown mode, the game starts the beginning of time until the timer to 0 so far.
To cope with calibration timer and scoring device to adjust the time and score, we design a specific set in the 7 buttons, for setting, adjusting the time, start, adjust the score and pause functions.The system uses single chip control is to use simple button operation, LED display, easy to install.
Key words:microcontroller ; timer ; score; display ; interface
目 錄
1緒論 1
2系統(tǒng)方案說明 3
2.1 方案選擇 3
2.1.1 籃球賽計(jì)時(shí)計(jì)分器設(shè)計(jì)的現(xiàn)狀 3
2.1.2系統(tǒng)總體設(shè)計(jì)方案 3
3統(tǒng)硬件電路設(shè)計(jì) 8
3.1籃球賽計(jì)時(shí)計(jì)分器電路工作過程 8
3.2系統(tǒng)硬件電路組成 8
3.2.1 主要器件選擇及介紹 8
3.2.2顯示模塊 17
3.2.3報(bào)警模塊 18
3.2.4時(shí)鐘電路模塊 18
3.2.5 復(fù)位電路模塊 19
3.3籃球賽計(jì)時(shí)計(jì)分電路原理圖 20
4 軟件編程及調(diào)試 21
4.1 軟件總體設(shè)計(jì)方案 21
4.2 軟件設(shè)計(jì)具體過程 22
4.2.1延時(shí)模塊設(shè)計(jì) 23
4.2.2 顯示時(shí)間,分?jǐn)?shù)子程序模塊設(shè)計(jì) 23
4.2.3 按鍵控制子程序設(shè)計(jì)模塊 27
4.2.4 中斷程序設(shè)計(jì)模塊 35
4.2.5 主函數(shù)設(shè)計(jì)模塊 37
總結(jié) 41
致謝 43
參考文獻(xiàn) 45