2022年實(shí)驗(yàn)報(bào)告花樣流水燈_第1頁(yè)
2022年實(shí)驗(yàn)報(bào)告花樣流水燈_第2頁(yè)
2022年實(shí)驗(yàn)報(bào)告花樣流水燈_第3頁(yè)
2022年實(shí)驗(yàn)報(bào)告花樣流水燈_第4頁(yè)
2022年實(shí)驗(yàn)報(bào)告花樣流水燈_第5頁(yè)
全文預(yù)覽已結(jié)束

下載本文檔

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

文檔簡(jiǎn)介

1、把戲燈網(wǎng)絡(luò)11-2班 陳宇鵬一 實(shí)驗(yàn)?zāi)繒A 1 熟悉LED旳顯示特點(diǎn) 2 理解單片機(jī)系統(tǒng)實(shí)現(xiàn)把戲流水燈實(shí)驗(yàn)旳硬件電路和軟件編程技巧 3 熟悉基本指令旳匯編語(yǔ)言運(yùn)用二 實(shí)驗(yàn)內(nèi)容和環(huán)節(jié) 1 進(jìn)入Keil C51軟件旳操作環(huán)境,編輯源程序并對(duì)原文獻(xiàn)進(jìn)行實(shí)驗(yàn)程序如下:#include #define uchar unsigned char #define uint unsigned int uchar code Pattern_P0= 0 xfc,0 xf9,0 xf3,0 xe7,0 xcf,0 x9f,0 x3f,0 x7f,0 xff,0 xff,0 xff,0 xff,0 xff,0 xff,0

2、 xff,0 xff, 0 xe7,0 xdb,0 xbd,0 x7e,0 xbd,0 xdb,0 xe7,0 xff,0 xe7,0 xc3,0 x81,0 x00,0 x81,0 xc3,0 xe7,0 xff, 0 xaa,0 x55,0 x18,0 xff,0 xf0,0 x0f,0 x00,0 xff,0 xf8,0 xf1,0 xe3,0 xc7,0 x8f,0 x1f,0 x3f,0 x7f, 0 x7f,0 x3f,0 x1f,0 x8f,0 xc7,0 xe3,0 xf1,0 xf8,0 xff,0 x00,0 x00,0 xff,0 xff,0 x0f,0 xf0,0 xf

3、f, 0 xfe,0 xfd,0 xfb,0 xf7,0 xef,0 xdf,0 xbf,0 x7f,0 xff,0 xff,0 xff,0 xff,0 xff,0 xff,0 xff,0 xff, 0 xff,0 xff,0 xff,0 xff,0 xff,0 xff,0 xff,0 xff,0 x7f,0 xbf,0 xdf,0 xef,0 xf7,0 xfb,0 xfd,0 xfe, 0 xfe,0 xfc,0 xf8,0 xf0,0 xe0,0 xc0,0 x80,0 x00,0 x00,0 x00,0 x00,0 x00,0 x00,0 x00,0 x00,0 x00, 0 x00,

4、0 x00,0 x00,0 x00,0 x00,0 x00,0 x00,0 x00,0 x00,0 x80,0 xc0,0 xe0,0 xf0,0 xf8,0 xfc,0 xfe, 0 x00,0 xff,0 x00,0 xff,0 x00,0 xff,0 x00,0 xff ; uchar code Pattern_P2= 0 xff,0 xff,0 xff,0 xff,0 xff,0 xff,0 xff,0 xfe,0 xfc,0 xf9,0 xf3,0 xe7,0 xcf,0 x9f,0 x3f,0 xff, 0 xe7,0 xdb,0 xbd,0 x7e,0 xbd,0 xdb,0 x

5、e7,0 xff,0 xe7,0 xc3,0 x81,0 x00,0 x81,0 xc3,0 xe7,0 xff, 0 xaa,0 x55,0 x18,0 xff,0 xf0,0 x0f,0 x00,0 xff,0 xf8,0 xf1,0 xe3,0 xc7,0 x8f,0 x1f,0 x3f,0 x7f, 0 x7f,0 x3f,0 x1f,0 x8f,0 xc7,0 xe3,0 xf1,0 xf8,0 xff,0 x00,0 x00,0 xff,0 xff,0 x0f,0 xf0,0 xff, 0 xff,0 xff,0 xff,0 xff,0 xff,0 xff,0 xff,0 xff,

6、0 xfe,0 xfd,0 xfb,0 xf7,0 xef,0 xdf,0 xbf,0 x7f, 0 x7f,0 xbf,0 xdf,0 xef,0 xf7,0 xfb,0 xfd,0 xfe,0 xff,0 xff,0 xff,0 xff,0 xff,0 xff,0 xff,0 xff, 0 xff,0 xff,0 xff,0 xff,0 xff,0 xff,0 xff,0 xff,0 xfe,0 xfc,0 xf8,0 xf0,0 xe0,0 xc0,0 x80,0 x00, 0 x00,0 x80,0 xc0,0 xe0,0 xf0,0 xf8,0 xfc,0 xfe,0 xff,0 xff,0 xff,0 xff,0 xff,0 xff,0 xff,0 xff, 0 x00,0 xff,0 x00,0 xff,0 x00,0 xff,0 x00,0 xff ; /延時(shí) void DelayMS(uint x) uchar i; while(x-) for(i=0;i120;i+); /主程序 void main() uchar i; while(1) /從數(shù)組中讀取數(shù)據(jù)送至P0和P2口顯示 for(i=0;i136;i+)

溫馨提示

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

最新文檔

評(píng)論

0/150

提交評(píng)論