8255可編程并行接口試驗試驗報告_第1頁
8255可編程并行接口試驗試驗報告_第2頁
8255可編程并行接口試驗試驗報告_第3頁
8255可編程并行接口試驗試驗報告_第4頁
8255可編程并行接口試驗試驗報告_第5頁
免費預(yù)覽已結(jié)束,剩余1頁可下載查看

下載本文檔

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

文檔簡介

1、o s of 1 ,n,« I m ,- he Sr - 1 or , , <pr>on nt 1 < bid Ing Hu , eaed p “ for 0 t111a a to nes n ”(>on a t- p_lgal Or - . ed _> onl o l_* trage c wk p oce- "w>II > n Tngagy a up p e-!»oLt -gl ban or he eiglnaig I n ta, ng Inpecln n t - rol sop of p o o tlma a dlng

2、 o l n pro t o o p-_>>, -o d he Genea Manga _e he o aC-o on and I, n lgy mpay o Ltl - hlea -i-t - lng o led s p t o t poulo, on tbe d o k y - mut微機原理實驗報告實驗名稱8255可編程并行接口實驗一、實驗?zāi)康?、掌握8255芯片結(jié)構(gòu)及工作方式,2、熟悉8255并行口擴展的編程。二、實驗設(shè)備1、Lab6000P實驗教學(xué)系統(tǒng);2、舊M-PC機三、系統(tǒng)中的8255模塊Lab6000P實驗箱中的8255模塊連線如下圖所示:0 1234567 O1

3、DQDDDDDD NA ft AAMAftA Aft / /PA9F P F F P P PAH AAH A H235 S7MN /I很 WRE方EC 5T F圖1 8255模塊的連線AD0 AD7、A0、A1、RESET、/WR、/RD 已分別連至系統(tǒng) 總線 DB0 DB7、AI0、AB1、RESET /IOW、/IOR ; 8255_CS PA 口、PB 口、PC 口引出留給用戶連接。三、實驗內(nèi)容和實驗步驟1、8255基本輸入輸出方式一一開關(guān)控制 LED顯示1)實驗要求開關(guān)撥上LED亮,開關(guān)撥下LED滅。os of 1 ,n,« I m ,1 he Sr - 1 or , , &

4、lt; pr> on nt 1 < bi d Ing Hu , eaed p “ for 0ng strage a to n tm n ”(>on a t -p_lgal Or - . ed _> oo l_* trage c wk p oce - "w> II > n Tngagy a up p e -!»ons st -g> On or he eiglneig I n te, ng Inpe cln t - rol p of p o o tamer adlng o s n pro t o o p-_>, -o d he G

5、enea e 0e hep o e oo, and I, , lg y mpay o stl - h leva -i-t - lng o led l l> p to t poulo, on tbe d o k y - mut2)電路連接31234567 D D D D D D D D AAAAftAAfi34 53 32 n n012315 67 D D D p PDD D0 123 JT5 67 口 DOD Q口 D口 丁-rTE bJLiJ ez LLLLLLLL和Al/WR 一 /曲一RESLT-CS9 a *_1234 5 6 7EEE6P-E-EE FF ppp FF P6.y

6、 T-l i-I二£.Q12345t7KKKKKKKK圖2電路連接圖8255_CS連至地址譯碼/CS0, PA 口連至LED電平顯示模塊,PB 口連至開關(guān)電路。3)程序框圖 82B 方式沌卜ii; 2 片PR 置一 S255PA. I I圖4程序框圖4)程序代碼見附錄程序2.15)實驗步驟1、在Lab6000該驗箱上完成連接電路;'n - -I-r OH - » -in l b-、k, i , l » -«>>«” - ni»i1be_cosaf”»fou-ist . o -f 0"” non

7、d . - s - on _. . _ .-.2-3._» a-» - 1一-i 1-if or .i by o-»i* .sofi”-1.1r , <-on»"“1”-E1-1 -I* -fodawn”n- - > to »-Hn”. o.- - "l>-s el .-1-ostec.-» Bid - y 11-a -. - -l* -Engi-er-1I-1r a ntI- a nd t - pr-pr, » . do di-knl* -r - I -1 wok a nd by -

8、br - >、- - * f a.j»., noHBn nt<>m - fo m _ of -r and-I»-I a - -1 o br ” o -1*0* >> f -and _l, -of of m a - . ft* or h* -11 i n - A-n1 * -in- t - I sop of p o - t r a -di ng o s pr o - Im - p,wo->»I-. Mamg. _ h !- -o. and- - ir -一I y 1- -par-i -r 一 i.t ing-“dp - -.lsl

9、>- b» t o -t. , on p - -el tb*1- - < y 0 - p-d-1eRoad-on- m - h -_ andrR L-» -S - - edo* - a si p-SsSst p- b-d H- - -a - tms- -taa-o. r, non lp_.a - S1p d os a - sr- o、1 r 、 - idPo - Ii- -stonp.- n,ti.r -lb- a nd a-p n am . “ apo-p y -l -1 2、開啟計算機電源,開啟Lab6000該驗箱電源;3、啟動WAVE6000軟件;4、確認

10、 WAVE6000 與 Lab60001pt接;5、輸入源代碼;6、編譯源代碼(F9);7、單步運行源代碼(F8),觀察每條指令執(zhí)行結(jié)果;8、連續(xù)運行程序,上下?lián)軇娱_關(guān)觀察LED顯示情況。2、8255選通輸入方式開關(guān)控制 LED顯示1)實驗要求開關(guān)上的邏輯信號在選通信號有效時讀入微處理器,并送到LED顯示。2)電路連接將選通信號(單脈沖)接到PC2,其余連線和實驗1中的相同。3)程序框圖o s of l ,I my heSl 1"a ,D, < on nt 1 < bid In) Dn , eaed p “ for 0 ng strage a to nes _Ugr ”(

11、on a - t - p_lgal Or - . ed _> oO trage c wk p oce - "r II d n Tngagy D a ip d p e -kmo st-gl ban or he eiglnaig I n ta, _isl ng ecln - - i> t- rolp of p o o turner a dl ng o s pr o t o o p-_>, -o d - he Genea e0 e hep o a oo|T and iaculy , 、, mpay o Stl - h leva di-t lng o led l Is st

12、- p t o t podc on p l m_tbe d o ky- mut圖5程序框圖4)程序代碼見附錄程序2.25)實驗步驟1、在Lab6000該驗箱上完成連接電路;2、開啟計算機電源,開啟Lab6000該驗箱電源;3、啟動WAVE6000軟件;4、確認 WAVE6000 與 Lab60001pt接;5、輸入源代碼;6、編譯源代碼(F9);7、單步運行源代碼(F8),觀察每條指令執(zhí)行結(jié)果;8、連續(xù)運行程序,上下?lián)軇娱_關(guān)觀察LED顯示情況四、實驗結(jié)果'n - -I-r OH - » -in l b-、k, i , l » -«>>«

13、;” - ni»i1be_cosaf”»fou-i st . o -f 0"” no” i n d . - s - on _. . _ . -.2- 3._» a-»-1一-i 1 - i f or .i by o - » i* .sofi”-1.1r ,<-on »" “ 1”- - E 1-1 -I* -fodawn”n- - > to »-Hn”. o.- - "l>-s el .-1-ostec.-» Bid - y D-1-a -. - -l- D -Eng

14、i-er -1 I-1r a ntI- a nd t - pr-pr, » . do di-knl* -r - I -1 wok a nd by - br - >、- - * f a.j»., noHBn nt <>m - fo m _ of -r and-I»-I a - -1 o br” o -1*0* >> f -and _l, -of of m a - . ftonsorh* -11 i n 1, A-n1-p* -in- t - I sop of p o - t r a -di ng o s pr o - Im - p,wo

15、->»I-. Mamg. _ h !- -o. and- - ir -一I y 1- -par-i -r 一 i.t ing-“dp - -.lsl>- b» t o -t. , on p - -el tb*- - < y 0 - p-d-1-1-e Foa d -on- m - h -_ andrR L-» ns .> - edo* - a si posssst p- b-d H- - -a - tms- -t a a - o. r, non .a - s.0p d os a - sr- o、1 r 、 - idPo - Ii- - st onp n,ti.r.so-Jb- a nd _. _ a-p n a-sm - . “ apo-p y -l -1 1、8255基本輸入輸出方式一一開關(guān)控制 LED顯示:當開關(guān)打開時,與之相對應(yīng)的LED

溫馨提示

  • 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)容負責。
  • 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論