16流水燈編程作業(yè)_第1頁
16流水燈編程作業(yè)_第2頁
已閱讀5頁,還剩6頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認(rèn)領(lǐng)

文檔簡介

編程作業(yè)1.32位流水燈。說明:由P0、Pl、P2、P2口組成32位流水燈依次點亮,如此循FileViewEditToolsDesignGraphSourceDebugLibraryTemplateSystemHelp環(huán)。FileViewEditToolsDesignGraphSourceDebugLibraryTemplateSystemHelp]□宮區(qū)丨園龜丨除血|]國臣1串|爭猟翳邑I:■吾■■丨袋舲誥丨圜國置丹丨圃血丨網(wǎng)PJ|T|7SEG-BCDAT89C51BUTTONLED-BLUELED-GREENLED-FIEDLED-YELLOWMINFIES130FIDEVICESD3D2R2R2R2R2R2R2D2D2R2R2R2R2R2D2R2D2R2R2R2R2R2R2R2PJ|T|7SEG-BCDAT89C51BUTTONLED-BLUELED-GREENLED-FIEDLED-YELLOWMINFIES130FIDEVICESD3D2R2R2R2R2R2R2D2D2R2R2R2R2R2D2R2D2R2R2R2R2R2R2R2-1400.0+3300.0th2.-1400.0+3300.0th2.16位拉幕燈。|ONoMessagesIj|Rootsheet1E:\linnan備UI?”,Prof.”說明:由P1、P2組成16位拉幕燈,依次由P1.0逐次點亮到P2.7。再由P2.7到P1.0逐次熄滅。如此循環(huán)。3.323.32位流水燈交替點亮。說明:由P0、Pl、P2、P3組成32位流水燈交替顯示。第一步:先同時點亮P0.0、P0.2、P0.4、、.P3.6。P0.1、P0.3、P0.1、P0.3、P0.5、、P3.7不亮第二步:同時點亮P0.1、P0.3、P0.5、、P3.7。P0.0、P0.2、P0.4、…….、.P3.6不亮。如此循環(huán)。4.8位流水燈閃爍點亮。說明:8位流水燈依次點亮,每位燈閃爍三次,再點亮下一位8位燈依次全部閃爍后,再將8位燈同時點亮閃爍三次。如此循環(huán)。FileViewEditToolsDesignGraphSourceDebugLibraryTemplateSystemHelp忙右日丨闖噩隔|]國廚1*1令找Q殘色|]吟宅丨鷲險(SIM孟録#it/||&両TiB0ISFileViewEditToolsDesignGraphSourceDebugLibraryTemplateSystemHelp忙右日丨闖噩隔|]國廚1*1令找Q殘色|]吟宅丨鷲險(SIM孟録#it/||&両TiB0IS£]L|DEVfEN7SEG-BCDAT89C51BUTTONLED-BLUELED-GREENLED-FlEDLED-YELLOWMINFIES130FI!ED!EDJED!EDJEDLED-RED_3_|?||?|II|■|OrJoMejjagesI]|Rootsheet1]n^OO.O+1100.0―th-I£ISProfe—]nrA蘇畫①力護冒一/□0D8AS*一e!ED22_JQ_2L_AT89C51<TE)a>■XTAL1P0.0/AD0XTAL2P0.1/AD1P0.2/AD2P0.3/AD3RSTP0.4/AD4P0.5/AD5P0.6/AD6P0.7/AD7PSENP2.0/A8P2.1/A9P2.2/A10P2.3/A11ALEP2.4/A12EAP2.5/A13P1.0P2.6/A14P2.7/A15P3.□/RXDP1.1P3.1fD<DP1.2P3.2/iKT0P1.3P3.3/INTTP1.4P3.4/T0P1.5P3.5/T1P1.6P3.6/WRP1.7P3.7/RDE:\l1nnarr\徽機資..5.16位流水燈收縮點亮。說明:由Pl、P2口組成16位流水燈。第一步:由P1.0逐次向P1.7點亮,同時由P2.7逐次向P2.0點亮。第二步:全亮后,由中間向兩邊逐次熄滅。如此循環(huán)。6.166.16位流水燈相向點亮。說明:由Pl、P2口組成16位流水燈依次分別點亮。第一步:由P1.0逐次向P2.7流水點亮。第二步:同時由P2.7逐次向P1.0流水點亮。如此循環(huán)。16led-16led-ISISProfessionalFileViewEditToolsDesignGraphSourceDebugLibraryTemplateSystemHelp□[Ms++9Q'ixsiaI麗常認(rèn)K^JIB0IB£j|TERMINALSDEFAULTINPUTOUTPUTBIDIRPOWERGROUNDBUSU1ML>XTAL1XTAL2RSTP0.0/AD0P0.1/AD1P0.2/AD2P0.3/AD3P0.4/AD4P0.5/AD5P0.6/AD6P0.7/AD738373635JI333222_2L_FileViewEditToolsDesignGraphSourceDebugLibraryTemplateSystemHelp□[Ms++9Q'ixsiaI麗常認(rèn)K^JIB0IB£j|TERMINALSDEFAULTINPUTOUTPUTBIDIRPOWERGROUNDBUSU1ML>XTAL1XTAL2RSTP0.0/AD0P0.1/AD1P0.2/AD2P0.3/AD3P0.4/AD4P0.5/AD5P0.6/AD6P0.7/AD738373635JI333222_2L_PSENALEEAP2.0/A8P2.1/A9P2.2/A10P2.3/A11P2.4/A12P2.5/A13P2.6/A14P2.7/A1524252B2728221-3^0^4^5-6-7-00-P1.0P1.1P1.2P1.3P1.4P1.5P1.6P1.7P3.D/RXDP3.1fR<DP3.2/IWP3.3/INT1P3.4/T0P3.5/T1P3.6/WRP3.7/RDAT89C51EBE宅WF18^0(0..?15QR-1000.0+0.0―thE:\lmnarr\徽貴…7.一鍵多控流水燈。說明:在P1.0設(shè)置一個按鍵,在P2口連接8位流水燈,每按一次按鍵點亮一位燈,再按一次開關(guān),點亮下一位燈,如此循環(huán)。IEEIIswitchSled-ISISFileViewEditToolsDesignGraphSourceDebugLibraryTemplateSystemHelpmeix阻isjh國錢腐I鈴認(rèn)insibibDEFAULTINPUTOUTPUTBIDIFIPlWEFI7]~TERMINALSIEEIIswitchSled-ISISFileViewEditToolsDesignGraphSourceDebugLibraryTemplateSystemHelpmeix阻isjh國錢腐I鈴認(rèn)insibibDEFAULTINPUTOUTPUTBIDIFIPlWEFI7]~TERMINALSSW1SW-SPST-MOM*申%JUMPERR:2GROUNDLitBUS_2_22_JQ_d>XTAL1PO.D/ADOXTAU2P0.1/AD1P0.2/AD2P0.3/AD3RSTP0.4/AD4P0.5/AD5P0.6/AD6P0.7/AD7PSENP2.0/A8P2.1/A9P2.2/A10P2.3/A11ALEP2.4/A12EAP2.5/A13P1.0P2.6/A14P2.7/A15P3.0/RXDP1.1P3.1/TXDP1.2P3.2/INTOP1.3P3.3/iNTTP1.4P3.4/TOP1.5P3.5/T1P1.6P3.6/WRP1.7P3.7/RDAT89C5'1^TEXT>I0k-TUYTih1Fq-丄D1EEnfffl-RFr0iIf■HLuRFrfc£ffi-RE[8.多位開關(guān)控制不同顯示速度。囲8switch8led囲8switch8led-ISISProfessional■1■1說明:在P1.0、P1.1、P1.2、P1.3口設(shè)置4個按鍵,在P2口連接8位流水燈。當(dāng)按下不同的按鍵,使8位流水燈按不同的速度顯示。囲4switch8led-ISISProfessionalFileViewEditToolsDesignGraphSourceDebugLibraryTemplateSystemHelp占日焉色怡囪|]國回*1半忍Q食喩|冋。丨制屜鶴丨主丟■■丨龜#黑/||窗aElwGROUNDBUSdia丄士士±H丄=一一卄4L11扶痺H◎滬護脅一/口。口84園4-一一co廠Ht£j|TERMINALSDEFAULTINPUTOUTPUTBIDIRPOWERSW-SPST-MOMGROUNDBUSdia丄士士±H丄=一一卄4L11扶痺H◎滬護脅一/口。口84園4-一一co廠Ht£j|TERMINALSDEFAULTINPUTOUTPUTBIDIRPOWERSW-SPST-MOMU1'XTAL1XTA^RSTP0.0/AD0P0.1/AD1P0.2/AD2P0.3/AD3P0.4/AD4P0.5/AD5P0.6/AD6P0.7/AD7PSENP2.0/A8P2.1/A9P2.2/A10P2.3/A11ALEP2.4/A12EAP2.5/A13P1.0P2.6/A14P2.7/A15P3.0/RXDP1.1P3.KTXDP1.2P3.2/INTOP1.3P3.3/iNiTP1.4P3.4/TUP1.5P3.5/T1P1.6P3.6/WRP1.7P3.7/RDndUAT89C5aEXT>2677LED-RED<TEXT>|?|IP|II|■|⑨■■-oMessage;Rootsheet19.LED燈顯示8位開關(guān)狀態(tài)。說明:在P1口連接8位開關(guān),在P2口連接8位LED燈,用8位燈的亮或不亮顯示8位開關(guān)的狀態(tài)。按鍵閉合,相應(yīng)位的燈亮按鍵打開,相應(yīng)的燈不亮。改變狀態(tài)時,燈閃爍三次。

FileViewEditToolsDesignGraphSourceDebugLibraryTemplateSystemHelp]□冴闌總丨備囪|]回廚1*1半忍q食喩|円。丨制屜竜丨=丟■■丨龜#黑/||思IaeiwDEFAULTINPUTOUTPUTBIDIRPOWERTERMINALSBUS/□?DaAs+co廠;FileViewEditToolsDesignGraphSourceDebugLibraryTemplateSystemHelp]□冴闌總丨備囪|]回廚1*1半忍q食喩|円。丨制屜竜丨=丟■■丨龜#黑/||思IaeiwDEFAULTINPUTOUTPUTBIDIRPOWERTERMINALSBUS/□?DaAs+co廠;ONoMessagesIjwheet1]|-2400.0+1400.0~th—R3R710k10kJxTEPD.O/ADDP0.1/AD1P0.2/AD2P0.3/AD3P0.4/AD4PD.5/AD5PD.6/AD6PD.7/AD7P2.0/ABP2.1/A9P2.2/A10P2.3/A11P2.4/A12P2.5/A13P2.6/A14P2.7/A15P3.0/RXDP3.1/TXDP3.2^NTOP3.3^NTrP3.4rnoP3.5/T1.P3.6M/RATC9C51E:\linnarr\微機費…21刀I51S8switch8led-ISI...10.紅綠交通信號燈模擬控制。說明:由P2口連接8位顯示燈模擬四個方向的紅綠交通信號燈,要求設(shè)計紅綠交通信號燈的顯示時間。陲2ledjiaotong-ISISProfession;FileViewEditToolsDesignGraphSourceDebugLibraryTemplateSystemHelp思I弗認(rèn)il□?^}|00IB卜4>*眞DEFAULTINPUT7]~TERMINALSOUTPUTBIDIFIPOWERU1:BUSffi一ffi二陲2ledjiaotong-ISISProfession;FileViewEditToolsDesignGraphSourceDebugLibraryTemplateSystemHelp思I弗認(rèn)il□?^}|00IB卜4>*眞DEFAULTINPUT7]~TERMINALSOUTPUTBIDIFIPOWERU1:BUSffi一ffi二ffi22-Jia丄丄丄土丄id>XTAL1XTAL2RSTPSENALEEAP1.0P1.1P1.2P1.3P1.4P1.5P1.6ATB9C51<TE>:T>R:2_P0.0/AD0P0.1/AD1P0.2/AD2P0.3/AD3P0.4/AD4P0.5/AD5P0.6/AD6P0.7/AD7P2.0/A8P2.VAQP2.2/A10P2.3/A11P2.4/A12P2.5/A13P2.6/A14P2.7/A15P3.0/RXDP3.imDP3.24NTOP3.3/iNTTP3.4/T0P3.5/T1P3.6WRP3.7/RD3837非3534333239LED-GREEN<TE>:T>+1400.0-1600.0th|?||?|II|■|曲NoMeviage?I]|+1400.0-1600.0thE:\linnsin\微機資.“11.帶黃等的交通信號燈的模擬控制。說明:由P2口連接6位信號燈模擬兩個方向的交通信號燈,要求設(shè)計紅、黃、綠三種信號燈得顯示時間。12.數(shù)碼管顯示0---9.說明:由P1口連接一位數(shù)碼管顯示數(shù)字09每個數(shù)字閃爍三次再顯示下一個數(shù)字,如此循環(huán)。13.外部輸入數(shù)字的數(shù)碼顯示。說明:由Pl口連接一位數(shù)碼管,由P2口連接8路按鍵開關(guān),將8路開關(guān)的狀態(tài)(開關(guān)閉合為0,打開為1)輸入并轉(zhuǎn)換為相應(yīng)的數(shù)字0---9,并顯示在數(shù)碼管上。

14.2組8位流水燈設(shè)計。說明:由Pl、P2口連接2

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論