電子跑表畢業(yè)設(shè)計(jì).doc
約18頁DOC格式手機(jī)打開展開
電子跑表畢業(yè)設(shè)計(jì),畢業(yè)論文標(biāo)準(zhǔn)word格式排版 18頁 5846字abstract: because of its extremely high performance-price ratio, the single-chip computer (scc) has been paid great attention to ever si...
內(nèi)容介紹
此文檔由會員 莎士比亞 發(fā)布
畢業(yè)論文標(biāo)準(zhǔn)WORD格式排版 18頁 5846字
ABSTRACT: Because of its extremely high performance-price ratio, the single-chip computer (SCC) has been paid great attention to ever since it came out in 1970s of 20th Century, and has gained an extensive applicable field and fast development. Among all kinds of SCCs, 51 SCC is the most typical and representative one. This design, adopting 80C51 chip as the core part with some necessary peripheral circuits, is a simple electronic clock which uses 5V DC as the power supply. In hardware aspect, besides the CPU, four seven-segment LED digi-tubes are used for display, which work in a dynamically scanning display mode and driven by 74SL245 chip. The LEDs can accurately indicate hour and minute and two buttons can be used to adjust the time. While in the software aspect, the programming language is assembly language. The whole electronic clock system has functions of time display, adjustment, stopwatch and reset, etc. This design enables me to have greater insight into the basic circuit of SCC, and the basic methods of timer control and interruption programming, so that is a training of my ability of learning, designing and developing software and hardward.
KEY WORDS:80C51 LED digi-tubes Electronic clock Stopwatch
摘要: 單片機(jī)自20世紀(jì)70年代問世以來,以其極高的性能價(jià)格比,受到人們的重視和關(guān)注,應(yīng)用很廣、發(fā)展很快。而51單片機(jī)是各單片機(jī)中最為典型和最有代表性的一種。本次設(shè)計(jì)以80C51芯片為核心,輔以必要的外圍電路,設(shè)計(jì)了一個(gè)簡易的電子跑表,它由5V直流電源供電。在硬件方面,除了CPU外,使用8個(gè)七段LED數(shù)碼管來進(jìn)行顯示,LED采用的是動態(tài)掃描顯示,使用74LS245芯片進(jìn)行驅(qū)動。通過LED能夠比較準(zhǔn)確顯示時(shí)、分。兩個(gè)簡單的按鍵實(shí)現(xiàn)對時(shí)間的調(diào)整。軟件方面采用匯編語言編程。整個(gè)電子鐘系統(tǒng)能完成時(shí)間的顯示,調(diào)時(shí),秒表計(jì)時(shí),復(fù)位等功能。通過這次設(shè)計(jì)讓我更深入了解單片機(jī)基本電路、如何控制和定時(shí)器和中斷編程的基本方法,從而鍛煉了我學(xué)習(xí)、設(shè)計(jì)和開發(fā)軟、硬件的能力。
關(guān)鍵字:80C51 LED數(shù)碼管 電子鐘 跑表
一、設(shè)計(jì)目的
通過電子跑表的課程設(shè)計(jì),鞏固本學(xué)期學(xué)習(xí)的單片機(jī)知識;
通過過編寫程序,深刻理解定時(shí)器T0、T1的編程方法;
通過PROTEUS仿真系統(tǒng)的仿真,對軟件仿真進(jìn)一步的了解;
提高對LED數(shù)碼管的更進(jìn)一步的認(rèn)識,以及其驅(qū)動電路的認(rèn)識;
學(xué)習(xí)單片機(jī)和其外圍電路的接口方法;
熟悉獨(dú)立式連接鍵盤和矩陣式鍵盤的原理;
提高查閱資料的能力以及知識之間相互聯(lián)系的理解。
二、設(shè)計(jì)要求
利用8051或者8031(2764)作為主控器,組成一個(gè)電子跑表,采用6位LED顯示器。
上電或RESET后能啟動當(dāng)前時(shí)間(時(shí):分:秒);首次上電復(fù)位顯示為0時(shí)0分0秒,以后各次RESET均顯示正確的當(dāng)前時(shí)間。
當(dāng)按下START鍵時(shí),作為跑表使用,顯示范圍是000.0秒~999.9秒,當(dāng)按下STOP鍵時(shí),跑表停止運(yùn)行,并保留所停位置的時(shí)間顯示不變,當(dāng)再按下CLEAR鍵時(shí)跑表清零,再按下START鍵時(shí),跑表從000.0開始計(jì)時(shí),當(dāng)跑到999.9時(shí)變成000.0。當(dāng)按下SECOND鍵時(shí)跑表回到電子時(shí)鐘的狀態(tài),并顯示正確的時(shí)間。
利用SECOND作為秒鐘校正,即按下SECOND(在時(shí)鐘狀態(tài))時(shí),秒鐘加1,當(dāng)加到60時(shí),分鐘加1,秒鐘變?yōu)?。利用MINUTE作為分鐘校正,即按下MINUTE(在時(shí)鐘狀態(tài))時(shí),分鐘加1,當(dāng)加到60時(shí),時(shí)鐘加1,分鐘變?yōu)?,秒鐘變?yōu)?。利用HOUR作為秒鐘校正,即按下HOUR(在時(shí)鐘狀態(tài))時(shí),時(shí)鐘加1,當(dāng)加到24時(shí),時(shí)鐘為0,分鐘為0,秒鐘為0。
三、方案選擇
方案一:利用數(shù)字電子技術(shù)利用555電路組成作為時(shí)鐘發(fā)生信號,讓此脈沖作為一個(gè)計(jì)時(shí)電路的時(shí)鐘信號,讓計(jì)時(shí)電路產(chǎn)生的信號經(jīng)過鎖存驅(qū)動送到LED數(shù)碼管顯示。
方案二:可以利用8031芯片,但考慮到8031沒有ROM,而要添加一個(gè)ROM,這樣構(gòu)成的電路會麻煩些。
方案三:利用80C51芯片,其內(nèi)部有4KB的ROM,對與設(shè)計(jì)電子跑表已經(jīng)足夠,同時(shí)其有兩個(gè)定時(shí)器T0、T1可以一個(gè)用來時(shí)鐘定時(shí),另外一個(gè)用來跑表計(jì)數(shù),設(shè)置T0、和T1中斷。然后通過74LS245驅(qū)動7段數(shù)碼管動態(tài)顯示P0口發(fā)過來的數(shù)據(jù)。
綜上所述,考慮實(shí)際情況,此次課程設(shè)計(jì)選用方案三。
.....
ABSTRACT: Because of its extremely high performance-price ratio, the single-chip computer (SCC) has been paid great attention to ever since it came out in 1970s of 20th Century, and has gained an extensive applicable field and fast development. Among all kinds of SCCs, 51 SCC is the most typical and representative one. This design, adopting 80C51 chip as the core part with some necessary peripheral circuits, is a simple electronic clock which uses 5V DC as the power supply. In hardware aspect, besides the CPU, four seven-segment LED digi-tubes are used for display, which work in a dynamically scanning display mode and driven by 74SL245 chip. The LEDs can accurately indicate hour and minute and two buttons can be used to adjust the time. While in the software aspect, the programming language is assembly language. The whole electronic clock system has functions of time display, adjustment, stopwatch and reset, etc. This design enables me to have greater insight into the basic circuit of SCC, and the basic methods of timer control and interruption programming, so that is a training of my ability of learning, designing and developing software and hardward.
KEY WORDS:80C51 LED digi-tubes Electronic clock Stopwatch
摘要: 單片機(jī)自20世紀(jì)70年代問世以來,以其極高的性能價(jià)格比,受到人們的重視和關(guān)注,應(yīng)用很廣、發(fā)展很快。而51單片機(jī)是各單片機(jī)中最為典型和最有代表性的一種。本次設(shè)計(jì)以80C51芯片為核心,輔以必要的外圍電路,設(shè)計(jì)了一個(gè)簡易的電子跑表,它由5V直流電源供電。在硬件方面,除了CPU外,使用8個(gè)七段LED數(shù)碼管來進(jìn)行顯示,LED采用的是動態(tài)掃描顯示,使用74LS245芯片進(jìn)行驅(qū)動。通過LED能夠比較準(zhǔn)確顯示時(shí)、分。兩個(gè)簡單的按鍵實(shí)現(xiàn)對時(shí)間的調(diào)整。軟件方面采用匯編語言編程。整個(gè)電子鐘系統(tǒng)能完成時(shí)間的顯示,調(diào)時(shí),秒表計(jì)時(shí),復(fù)位等功能。通過這次設(shè)計(jì)讓我更深入了解單片機(jī)基本電路、如何控制和定時(shí)器和中斷編程的基本方法,從而鍛煉了我學(xué)習(xí)、設(shè)計(jì)和開發(fā)軟、硬件的能力。
關(guān)鍵字:80C51 LED數(shù)碼管 電子鐘 跑表
一、設(shè)計(jì)目的
通過電子跑表的課程設(shè)計(jì),鞏固本學(xué)期學(xué)習(xí)的單片機(jī)知識;
通過過編寫程序,深刻理解定時(shí)器T0、T1的編程方法;
通過PROTEUS仿真系統(tǒng)的仿真,對軟件仿真進(jìn)一步的了解;
提高對LED數(shù)碼管的更進(jìn)一步的認(rèn)識,以及其驅(qū)動電路的認(rèn)識;
學(xué)習(xí)單片機(jī)和其外圍電路的接口方法;
熟悉獨(dú)立式連接鍵盤和矩陣式鍵盤的原理;
提高查閱資料的能力以及知識之間相互聯(lián)系的理解。
二、設(shè)計(jì)要求
利用8051或者8031(2764)作為主控器,組成一個(gè)電子跑表,采用6位LED顯示器。
上電或RESET后能啟動當(dāng)前時(shí)間(時(shí):分:秒);首次上電復(fù)位顯示為0時(shí)0分0秒,以后各次RESET均顯示正確的當(dāng)前時(shí)間。
當(dāng)按下START鍵時(shí),作為跑表使用,顯示范圍是000.0秒~999.9秒,當(dāng)按下STOP鍵時(shí),跑表停止運(yùn)行,并保留所停位置的時(shí)間顯示不變,當(dāng)再按下CLEAR鍵時(shí)跑表清零,再按下START鍵時(shí),跑表從000.0開始計(jì)時(shí),當(dāng)跑到999.9時(shí)變成000.0。當(dāng)按下SECOND鍵時(shí)跑表回到電子時(shí)鐘的狀態(tài),并顯示正確的時(shí)間。
利用SECOND作為秒鐘校正,即按下SECOND(在時(shí)鐘狀態(tài))時(shí),秒鐘加1,當(dāng)加到60時(shí),分鐘加1,秒鐘變?yōu)?。利用MINUTE作為分鐘校正,即按下MINUTE(在時(shí)鐘狀態(tài))時(shí),分鐘加1,當(dāng)加到60時(shí),時(shí)鐘加1,分鐘變?yōu)?,秒鐘變?yōu)?。利用HOUR作為秒鐘校正,即按下HOUR(在時(shí)鐘狀態(tài))時(shí),時(shí)鐘加1,當(dāng)加到24時(shí),時(shí)鐘為0,分鐘為0,秒鐘為0。
三、方案選擇
方案一:利用數(shù)字電子技術(shù)利用555電路組成作為時(shí)鐘發(fā)生信號,讓此脈沖作為一個(gè)計(jì)時(shí)電路的時(shí)鐘信號,讓計(jì)時(shí)電路產(chǎn)生的信號經(jīng)過鎖存驅(qū)動送到LED數(shù)碼管顯示。
方案二:可以利用8031芯片,但考慮到8031沒有ROM,而要添加一個(gè)ROM,這樣構(gòu)成的電路會麻煩些。
方案三:利用80C51芯片,其內(nèi)部有4KB的ROM,對與設(shè)計(jì)電子跑表已經(jīng)足夠,同時(shí)其有兩個(gè)定時(shí)器T0、T1可以一個(gè)用來時(shí)鐘定時(shí),另外一個(gè)用來跑表計(jì)數(shù),設(shè)置T0、和T1中斷。然后通過74LS245驅(qū)動7段數(shù)碼管動態(tài)顯示P0口發(fā)過來的數(shù)據(jù)。
綜上所述,考慮實(shí)際情況,此次課程設(shè)計(jì)選用方案三。
.....
TA們正在看...
- 01.1四時(shí)田園雜興課堂教學(xué)教案教學(xué)設(shè)計(jì)(部編版).doc
- 01.2稚子弄冰課堂教學(xué)教案教學(xué)設(shè)計(jì)(部編版).doc
- 01.3村晚課堂教學(xué)教案教學(xué)設(shè)計(jì)(部編版).doc
- 02冬陽·童年·駱駝隊(duì)公開課優(yōu)秀教案教學(xué)設(shè)計(jì)(五年...doc
- 02冬陽·童年·駱駝隊(duì)最新教研教案教學(xué)設(shè)計(jì)(部編版...doc
- 02冬陽·童年·駱駝隊(duì)課堂教學(xué)教案教學(xué)設(shè)計(jì)(部編版).doc
- 03祖父的園子公開課優(yōu)秀教案教學(xué)設(shè)計(jì)(五年級下冊).doc
- 03祖父的園子最新教研教案教學(xué)設(shè)計(jì)(部編版五年級下...doc
- 03祖父的園子課堂教學(xué)教案教學(xué)設(shè)計(jì)(部編版).doc
- 04草船借箭公開課優(yōu)秀教案教學(xué)設(shè)計(jì)(五年級下冊).doc