資源描述:
《8255a并行口實(shí)驗(yàn)》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在工程資料-天天文庫(kù)。
1、實(shí)習(xí)報(bào)告計(jì)算機(jī)應(yīng)用綜合實(shí)習(xí)一硬件起止日期:2009年09月14日至2009年09月21日學(xué)生姓名班級(jí)成績(jī)指導(dǎo)教師(簽字)電子與信息工程系2009年9月20日一、實(shí)習(xí)目的(1)利用微機(jī)接口芯片8255,并行控制LED點(diǎn)陣顯示。(2)掌握8088微機(jī)系統(tǒng)與LED點(diǎn)陣之間接口電路設(shè)計(jì)及編程。二、實(shí)習(xí)要求利用589H實(shí)習(xí)系統(tǒng)擴(kuò)展接口CZ7座,在控制板MCI上以并行方式控制LED點(diǎn)陣顯示。要求自建字庫(kù),編制程序?qū)⒆约旱男彰驁D形實(shí)現(xiàn)左移、右移,三、匕下移動(dòng)。編程指南T/0口地址分配擴(kuò)展名稱口地址用處XPA8000H列掃描1XPB8001H列掃描2XPC8002II行代碼1XPCMD8003H825
2、5控制口PA0FF28H行代碼2PCMD0ff2BH8255控制口根據(jù)提供I/O地址、功能,有不同I/O口分別提供自行代碼送行,列掃描信號(hào)送列掃描行,凡字形代碼位“I”、列掃描信號(hào)“0”該點(diǎn)點(diǎn)從!亮,否則燈熄,通過(guò)逐行掃描,硬件連接圖循環(huán)點(diǎn)亮字形獲曲線。O1SX3LKD02IURACRSU尺7CK^F^O1/AD1I>O?>O"AXXF>Od"ADSF*OGAEXSF*O-7/AD7PN"4125PN€S/A14F*2.S/AiaP24S12P2.3/A丄1PJN4IOF>21/A9F>2O“A8X§veerQ.PPPFPPP可xJLjhSEjflHIua1FL2RT3K4RZSR7RB
3、ZN5~1-4OSQ.1.232哼11111111PPPPPPPP0?23:號(hào)3&373^35"53~333N30NO272e>NS^3-A.TS^SS1■VI61□1二冃ijnaovozr>五、程序代碼;CODESEGMENT;USR-LED16X16;ASSUMECS:CODEXPAEQU8000HXPBEQU8001H;L-SAO-1,CTL-MODE:B1NGXINKO;L-SAO-2PAEQUXPCEQUXPCTLEQUPCTLEQUDATA0FF28H;H-CODE-18002H;H-CODE-28OO3HSEGMENTORG2dbOHFLDB?RODW?R1DB?R6DW?
4、DATAENDSCODE0FF2BHAT0;BLSAOFLAG;H-CODE;L-CODE;XPA/XPBSEGMENTASSUMECS:CODE,DS:DATAORG2DC0HSTART:MOVDX,XPCTLMOVAL,80HOUTDX,ALMOVDX,PCTLOUTDX,ALCALLOFFLEDMOVAL,OOHMOVFL,ALMOVR6,8000H;XPAX0:MOVR0,0000HXI:CALLDELIINCROINCROCMPRO,0BOHJNZX1JMPX0DISPW:PUSHRO;H-NUMMOVR1,01H;L-NUMDISP1:MOVAX,ROMOVBX,OFFSET
5、TABADDBX,AXMOVAL,CS:[BX]MOVDX,PAOUTDX,ALINCROMOVAX,ROMOVBX,OFFSETTABADDBX,AXMOVAL,CS:[BX]MOVDX,XPCOUTDX,ALMOVDX,R6MOVAL,R1NOTALOUTDX,ALMOVCX,0080HLOOPSCALLOFFLEDINCRORCLR1,1JNCDISP1CMPFL,OOHJNZEXITINCFLCLCMOVR1,01HMOVR6,8001HJMPDISP1EXIT:MOVR6,8000HMOVFL,OOHPOPRORETOFFLED:MOVDX,XPAMOVAL,0FFHOUTDX
6、,ALMOVDX,XPBOUTDX,ALRETDELI:MOVCX,0020HCONI:PUSHCXCALLDISPWPOPCXLOOPCONIRETTAB:dbOOh,OOh,OOh,OOh,OOh,OOh,OOh,OOh,OOh,OOh,OOh,OOh,OOh,OOh,OOh,OOh,OOhdbOOh,OOh,OOh,OOh,OOh,OOh,OOh,OOh,OOh,OOh,OOh,OOh,OOh,OOh,OOh,OOh,OOhDB02H,00H,04H,l0H,08H,14H,l0H,92H,20H,51H,0C0H,30H,60H,13H,1CH,1CHDB08H,10H,00H,
7、00H,0E0H,1FH,04H,00H,02H,00H,0FCH,0FFH,00H,00H,OOH,OOHDB00H,l2H,00H,12H,80H,l2H,7FH,14H,0A2H,0FFH,22H,l4H,0A2H,lOH,22H,03HDB22H,7CH,22H,48H,22H,48H,0BFH,4FH,00H,48H,00H,48H,00H,08H,00H,()()HDB02H,00H,04H,l0H,08H,14H,l0