微机课后习题

微机课后习题

ID:83402713

大小:2.68 MB

页数:15页

时间:2023-04-22

上传者:无敌小子
微机课后习题_第1页
微机课后习题_第2页
微机课后习题_第3页
微机课后习题_第4页
微机课后习题_第5页
微机课后习题_第6页
微机课后习题_第7页
微机课后习题_第8页
微机课后习题_第9页
微机课后习题_第10页
资源描述:

《微机课后习题》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库

⚪2.ᜐᳮᘤᨵὶᜐᳮᘤ!ᜐᳮᘤ"CPU,ᵫ$%&'("ALU,)*ᘤ+,ᵨ./ᘤ012ᦪᘤ42+5ᑴ%&'(ᑁ'89:0ᡂ஺ᜐᳮᘤ=>᪀ᡂ@ABḄD=>@A᡻F12GHIJ/Kᘤ᜜'MᐭஹMPQR᪀ᡂST>B஺UᵫCPU,/KᘤMᐭ/MPQRᵯX+890ᡂ஺YZᐹᨵ\>>@A᡻F12]^_ᨵMᐭ/MP`ᜓᦪbc12=>MᐭdefghijᡈMPl=>mnB஺UopqrIJ᜜'Mᐭ/MP`ᜓcs(t᪀ᡂu஺_ᨵIvs(ḄwpxlᯠBD=>zGHIvs(+{ᵨs(|᪵~omnᵨ஺3.ᜐᳮᘤᨵq⌕'(0ᡂᐸ\>Uᜐᳮᘤ!ᜐᳮᘤ"CPU஺Yᵫ$%&'("ALU,)*ᘤ+./ᘤ0,ᢣᢣ┐./ᘤIP,./ᘤ42+5ᑴ%&'(ᑁ'89:0ᡂ஺ᜐᳮᘤq⌕'(ᵨU$%&'(q⌕ᡂ$dc%&d஺U,ᵨ./ᘤ0ᵨᩭ/*dḄᦪbஹefᡈᙢᙬ஺U12ᦪᘤᢣᔣ⌕᡻FḄᩩᢣ2᡻Fᢣ4ᢣ⁚12ᦪᘤ*loU5ᑴ%&'(᦮Ḅ5ᑴᒹ¡¢/Kᘤᢣᢣ£F¤ṹ+ᑖ᪆,¨©ᢣḄªcª«{Ḅ5ᑴ¬+42,〈ᑮḄᐸ°'(CPUᑁ'c᜜'±²B஺Uᑁ'89ᵨᩭ³〈CPUᑁ'Ḅᦪbc5ᑴ¬஺´⚪1.8086CPUᵫµ'ᑖ0ᡂY¶Ḅq⌕\>8086CPUᵫ89QR'(BIU+ᢣ᡻F'(EU0ᡂB1U+EUḄª·FḄ஺U89QR'(BIUḄ\>ᙢᙬ¸ᡂஹᢣஹᢣ᣸ºஹ»/ᑏªᦪ+895ᑴ஺ᡠᨵ᜜'Ḅªᵫᐸᡂ஺Uᢣ᡻F'(EUḄ\>ᢣ¤ṹ᡻Fᢣ2.8086CPUᨵ./ᘤᔜᨵᵨ⌶8086CPUḄ./ᘤᨵ,ᵨ./ᘤ0ஹᢣ┐+Àᙬ./ᘤஹ./ᘤஹᢣᢣ┐./ᘤc᪗ÂÃ./ᘤPSW஺416Ã,ᵨ./ᘤY¶ᑖAX,BX,CX,DX,ᵨo/16Ãᦪbᡈᙢᙬ஺Dᑖp88Ã./ᘤᩭᵨÄ8ÃALஹBLஹCLஹDL,Å8ÃAHஹBHஹCHஹDH,>/8Ãᦪb=>/ᙢᙬ஺Uᢣ┐+Àᙬ./ᘤ/ḄᑁÆÇᑁᙢᙬÈÉÊᵨᩭ¸ᡂªᦪᙢᙬq⌕ᙠᚮ᪘ª+Àᙬdᵨ஺U./ᘤÎP«{%&Ḅ✌ᙢᙬwp“Ñᙬ”஺ÑᙬᑁÈÉᙢᙬeᔠ¸ᡂ20Ãᱥᳮᙢᙬ஺Uᢣᢣ┐./ᘤᵨᩭ/Õ⌕᡻FḄᩩᢣᙠÖF×ṹḄÈÉᙢᙬ஺16Ã᪗Â./ᘤPSWᵨᩭ/defḄᱯÙnᵨÚÛᩩ(ÜÉᢣḄÜÉ5ᑴᩩ(஺

15.⌕ᡂÝdᡈ5ᑴᵨ᪗ÂÃᑨßᐸàপâãµᦪᔲ«:Õµᦪ«åæᐰè᪗ÂÃZF=14éêµᦪ«:æZF=O4µᦪ=:஺ফµᦪdÚefmᦪìᦪᵨí᪗ÂÃSFᩭᑨßSF=1,pᦪîSF=O,pmᦪ஺বµᦪ«*ÚᔲðPᵨðP᪗ÂÃᩭᑨßOF=1,ñòðPîOF=0,_ᨵðP஺ভôᵨᏔ᪥÷Tø஺ᑨ©ᔲ⌕⊡“1”ᵨ᜻Ꮤ᪥÷᪗ÂÃᑨß,ᨵᏔᦪT4PF=L=◤⌕⊡“1”îᨵ᜻ᦪ"1”4,PF=O,◤⌕⊡"1”஺üµᦪ«åÚâãᜧþ•ZF=14éêµᦪ«:Ḅî•ZF=O4gíᦪ4CF=O,ÿᦪᜧCF=1,ᦪ஺ᦪSF=OF=0ᡈSF=OF=1,ᦪᜧSF=1,OF=0ᡈSF=O,0F1,ᦪ஺6ᔲᐕᵨ᪗ᩭᑨIF=1,ᐕCPUIF=0,!஺6.8086"#$%ᘤ'ᵨ()*᪀ᵨ()ᩭ⌱$%-8086$%ᘤ'ᵨᑖ-/*᪀0Ꮤᙢᙬ$%-4᜻ᙢᙬ$%-ᔜ7512k஺8ᵨA04BHEᩭ⌱9$%-஺:A0=0;<Ꮤᙢᙬ$%-:BHE=0;<᜻ᙢᙬ$%-:A0=0,BHE=0;<=>$%-.@A/BCD$ᘤEᐭ᝞BᦪHᑏJKCḄMN4*Oᙢᙬ஺>a)1000H10000H-1FFFFH>b)1234H12340H-2233FH>c)2300H23000HP32FFFH>d)E000HE0000H-EFFFFHAe)AB00HAB000H-BAFFFH10.ᙠ@A/BRBᑡCS:IPḄTᔠ,WJ⌕᡻ZḄB[ᩩᢣ^Ḅ$%ᘤᙢᙬ஺>a)CS:lP=1000H:2000H12000H>b)CS:IP=2000H:1000H21000HAc)CS:IP=lA00H:B000H25000H>d)CS:IP=3456H:AB09H3F069HU.@A/BWBᑡD$ᘤTᔠᡠ`ᙬḄ$%ᓫᐗᙢᙬ:>a)DS=1000H,DI=2000H12000H>b)SS=2300H,BP=3200H26200HAc)DS=A000H,BX=1000HA1000HAd)SS=2900H,SP=3A00H2CA00H12.d:eSS=3500H,SP=0800H,ghᚮ᪘Cᙠ$%ᘤḄᱥᳮᙢᙬdmᐭ᪘10>n⁚SPᑁqr()dsJ᪘6>n⁚SP7()t?8ᚮ᪘CḄᱥᳮᙢᙬw035000H-44FFFH8:e᪘⚔Ḅᱥᳮᙢᙬ7035OOOH+O800H=35800H

28ᐭ᪘10>n⁚yz0SP=0800H-000AH=07F6H8J᪘6>n⁚yz0SP=07F6H+0006H=07FCH13.{|}ᦪHC$~=>n1EE5H42A8cH,DS=7850H,ᦪH$~Ḅᙢᙬ73121H285AH஺ghᙠ$%ᘤḄ$~஺d⌕>=>n◤⌕R$%ᘤZ8Ḅᱥᳮᙢᙬᑖr078500H+3121H=7B621H,78500H+285AH=7AD5AH஺A1EE5HḄᙢᙬr3121H,r᜻ᙢᙬ◤⌕Z=2A8cHḄᙢᙬr285AH,rᏔᙢᙬ◤⌕[஺15.gh8086"#“ᨬA/”4“ᨬᜧA/”=/Ḅ⌕r()8ᨬA/7ᓫ"#"#ᡠ◤⌕ḄᑴᵫCPU¢£@¤4$%ᘤI/O¥¦ᵯ¨Ḅ©¥஺8ᨬᜧA/y᪀ᡂ«ᜐᳮᘤ/®ᜐᳮᘤ"#ᓽ[>"#$ᙠ=>y°±ᜐᳮᘤK>ᜐᳮᘤ᡻Z²³Ḅ|}஺"#ᡠ◤⌕Ḅᑴᵫ´µᑴᘤ8288¢£8086CPU¢£ᑴ8288,y@¤ᐰ·¸¹ᑖº´µᑴᩗ¼⌴஺ᙠ=A/CPUḄ24~31¾¿ÀÁ!Â஺8ᨬA/¾¿MN/MX¥+5V,ᨬᜧA/ľ¿¥ᙢ஺16.8086"#7()⌕ᵨᙢᙬ┝$ᘤ8282ᙢᙬ┝$ᘤÆCPU᝞Ç©¥CPUÆ$%ᘤ(ᡈὅI/Oʦ)ZᦪHÌᣚCPU✌ᐜ⌕〈JᙢᙬᯠzsÒJᑴ¼〈ᦪH஺ᵫÓ8086¾¿Ḅ▲ᑴᙢᙬ4ᦪHᑖÕᵨ[T´µᡠy⌕Öᐭᙢᙬ┝$ᘤᐜ┝$ᙢᙬ×ᙠ/ᑏ´µᕜÙᑁᙢᙬÚÛ8282rÜ᝱ÞßḄ8ᦪHÌᣚ┝$ᘤᵫ⌱àSTBÆCPUḄᙢᙬ┝$ᐕALEá©:STBÊ⌱àJ¤8âᐭᦪH┝$ᑮ8>DäÒᘤ஺17.å>᪗ᑴCPUḄINTR¾¿ᐕ᪗IFᑴINTR¾¿Ḅâᐭ஺18.()æ´µᕜÙᙠCPU/ᑏ´µᕜÙᦪHᙠå>ᘤç᝱J¤ᙠᦪH´µ°8´µᕜÙ0BIUèᡂ[;<$%ᘤᡈI/Oʦᡠ◤⌕Ḅé஺8´µᕜÙᙠT3ᡈTWç᝱ᦪHJ¤ᙠᦪH´µ°ᑏ´µᕜÙᙠT2ç᝱ᦪHJ¤ᙠᦪH´µ°20.8086CPUêëìízîÇᜐïN᡻Zᢣ^8îᑁ$ḄFFFF0HïN᡻Zᢣ^஺21.8086CPUᨬA/"#ºðᒹòåóᑖ8ᒹòôÒõᘤஹᙢᙬ┝$ᘤஹᦪHᦈÒᘤஹ$%ᘤI/O¥¦஺⊡ᐙ⚪10Cᙢᙬ4ᙢᙬᑖ72015H40028H,m$%ᓫᐗḄᱥᳮᙢᙬr()8$%ᓫᐗḄᱥᳮᙢᙬ020150H+0028H=20178H⊡ᐙ⚪20dCS=A000H,W:eûṹᙠ$%ᘤḄᱥᳮᙢᙬwr()dᦪHCÓ52000Hᑮ61FFFHḄ64Kwᑁ

3(4)MOVAX,3|BX]ᱥᳮᙢᙬ=1000HX10H+0200H+3H=10203H,AX=5946H(5)MOVAX,[BX+SI]ᱥᳮᙢᙬ=1000HX10H+0200H+2H=10202H,AX=463cH(6)MOVAX,2[BX+SI]ᱥᳮᙢᙬ=1000HX10H+200H+2H+2H=10204H,AX=6B59H3.DS=1000H,ES=2000H,SS=35OOH,SI=OOAOH,DI=(X)24H,BX=0100H,BP=0200H,VAL=0030H(1)MOVAX,[100H]ᙬ10100Hᱥᳮ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ᦪ!஺(10)MOVAX,OFFSET0A20H┯OFFSETI☢KḄLM2NOᙢᙬPQNOᙢᙬḄR%B$%ᦪ஺(11)MOVAL,OFFSETTABLE┯TABLEḄSTᙢᙬ216U"Ḅ'()*/-.(12)XCHGAL,50H┯Vᣚᢣ601ᙠᘤXᘤYCᘤXZ[/0123ᓽᦪ஺(13)INBL,05H┯BL/?%BINᢣ6Ḅ"Ḅ$%ᦪ,\?ᵨALᡈAX(14)OUTAL,OFFEH┯_ᙢᙬ0FFEH>FFH,LᵨDXᙬ@A($%ᦪY"᪗$%ᦪḄUab᎔d,LᦋBOUTDX,ALo8.SS=1050H,SP=0100H,AX=4860H,BX=1287H10.ARRAYDB...............NEWDB7DUP(?)SUMDW0AVERAGEDB0(1)MOVCX,07HMOVBX,OOHNEXTfMOVAL,ARRAY[BX]ADDAL,5DAAMOVNEW[BX],ALINCBXLOOPNEXTHIT(2)MOVCX,06HMOVBX,01HMOVAH,OOHMOVAL,ARRAYLI:ADDAL,ARRAY[BX]DAAADCAH,OOH;9ZUhᑮAH!INCBXLOOPLIMOVSUM,AX(3)MOVDX,SUM;DX=0XXXH(BCDṹ)MOVBL,07HMOVAX,DXlmᓟUஹpUᦪANDAL,OFOHMOVCL,04H

5ROLAL,CL;AX=0X0XHAAD;AL-AHX10+AL,AH-00DIVBLlᓝUᖪᙠAL!sᦪᙠAH!MOVAVERAGE+1,ALltᙳᡂwᓝUMOVAL,DLlm>UYᦪANDAL,OFHAADlAL-AHX10+AL,AH-00DIVBLl>UᖪᙠAL!,sᦪᙠAH!MOVAVERAGE,ALltᙳᡂw>UMOVAVERAGE+2,AH;sᦪll.AX=2508H,BX=0F36H,CX=0004H,DX=1864H(1)ANDAH,CLAH=04H,CF=Ol(00100101B'00000100B)(2)ORBL,30HBL=36H,CF=0l(00110110B00110000B)(3)NOTAXAX=DAF7H,CFxyzl(0010010100001000Bm|I110110101111011IB)(4)XORCX,OFFFOHCX=FFF4H,CF=0l(0000000000000100B1111111111110000B}ᡈI1111111111110100B)(5)TESTDH,OFHTEST$%~/ᦋCF=0l(6)CMPCX,OOHCMP$%~/ᦋCF=0l(7)SHRDX,CLDX=0186H,CF=0l(8)SARAL,1AH=04H,CF=0l(9)SHLBH,CLBH=F0H,CF=0f(10)SALAX,1AX=4A10H,CF=0l(0010010100001000BT)(11)RCLBX,1᡻[XCF=0,BX=1E6CH,CF=0l᡻[XCF=1,BX=1E6DH,CF=0஺(12)RORDX,CLDX=4186H,CF=0»12.DATASEGMENTSTRINGDB'Thepersonalcomputer&TV5DATAENDSEDATASEGMENTGET_CHARDB26DUP(?)NEW_STRDBThecomputer,

6EDATAENDS(1)MOVSI,OFFSETSTRINGMOVDI,OFFSETGET_CHARMOVCX,001AHCLDREPMOVSB(2)MOVSI,OFFSETSTRINGMOVDI,OFFSETNEW_STRMOViCX,001AHCLDREPZCMPSBlDS:SI-ES:DIJNECLR.ALMOVAL,1JMPSET_BLCLR_AL:MOVAL,0SET.BL:MOVBL,001AHSUBBL,CLHET3)MOVDI,OFFSETSTRINGMOVCX,001AHMOVAL&'CLDLI:SCASBlAL-ES:DIJZFINDNEXT:LOOPLIHLTFIND:MOVBLMOV[DI-1],BL;ᵨᣚ&JMPNEXT4)MOVSI,OFFSETSTRING;ᦪ<(MOVDI,OFFSETCAPSl▬h<ᜧᑏNMOVBX,OFFSETCHARTl▬0<ᐸNMOVCX,001AHCLDLI:LODSB»AL-DSSIMOV[SI-1],OOH;mDNIMᓫᐗCMPAL,4JBOTHERCMPAL,ZJAOTHERSTOSBᜧᑏNJMPL2OTHER:XCHGBX,DIᐸN

7STOSBXCHGBX,DIL2:LOOPLIHLT14.(1)JMPPROG_N<ᑁT"ḄᙢᙬB1200H:0278H(ᡈ12278H)(2)JMPBX<ᑁᘤT"ḄᙢᙬB1200H:0300H(ᡈ12300H)(3)JMP[BX]ᱥᳮᙢᙬ=5ஹ10H+BX=2000HX10H+0300H=20300H(20300H)=4800H->IP<ᑁCᘤT"ḄᙢᙬB1200H:4800H(ᡈ16800H)(4)JMPFARPROG.F<3T"ḄᙢᙬB3400H:0ABCH(ᡈ34ABCH)(5)JMPDWORDPTR|BX|ᱥᳮ.ᙢᙬ=DSX10H+BX=2000HX10H+0300H=20300H(20300H)=4800H->IP,(20302H)=00FFHfCS<CᘤT"ḄᙢᙬB00FFH:4800H(ᡈ057F0H)JMPᦋBCALLI"Ḅᙢᙬ'JMP@஺(l)CALLPROG_N<ᑁᵨ3⁚ᢣ60103Hᐭ᪘(2)CALLBX<ᑁᘤᵨ2⁚ᢣ60102Hᐭ᪘(3)CALL[BX1<ᑁCᘤᵨ2⁚ᢣ60102Hᐭ᪘(4)CALLFARPROG_F<ᵨ5⁚ᢣ61200HY0105Hᑖ£ᐭ᪘(5)CALLDWORDPTR[BX]<ᵨ2⁚ᢣ61200HY0102Hᑖ£ᐭ᪘15.(1)LOOPNEXT(2)LOOPENEXT(3)LOOPNENEXTSTART:MOVAX,01HMOVBX,02HMOVDX,03HMOVCX,04HNEXT:INCAXADDBX,AXSHRDX,1()¤[DX=00000011B(1)AX=05HBX=10HCX=00HDX=00H(2)AX=02HBX=04HCX=03HDX=01H(3)AX=03HBX=07HCX=02HDX=00H

818.1!¥¦§OB0040H/4=10H2!¥¨©Ḅ<ᙢᙬBD169H,STᙢᙬB240BH,ᓽD169H:240BH,ᱥᳮᙢᙬBDI69Hx10H+240BH=D3A9BHª«¬%⚪1.®f☟᝱RAM±*²³´\⌕ᵯ(ᙠᑁ·¸/¹º»¼ᜫ஺Ḅ¾Cᵯ¿B6>MOSÀÁᡂ1UÂÃÄᡂ*ÅÆÇὑÉÅᜧ஺-Ê˱ÌÍCᘤᵨÁᡂ஺DRAMḄᑁ·ᙠ10-3ᡈ10-6ÎXIº»¼ᜫÂÃ+,ᕜÐឋḄᙠᑁ·¼ᜫXZ[ᑵÓ஺ᵫÕḄ¾Cᵯ¿ᵫ->ᨔ×ÀØ->ᵯ·ÁᡂÂÃḄÄᡂ*Ëᡂ¾ÅÆ,Ù᜜ὑᵯÉÛÜ◤⌕->Þ᜜ḄᑵÓᵯ¿஺DRAM¤[±*Å᠒,SRAMàDRAM⌕´2~5á-ÊPCãḄ᪗äCᘤåæᵨDRAMÁᡂ஺2.®fçè§ROM!éê2ᔆì᪷ᵨᡝïðḄᡈᦪñᱏóôçèZ[=ᐝö÷ᑏᐭḄᵨᡝø¦ñᱏxùZ[úûᦋ஺PROMDᔆAü☢ýᨵéêᵨᡝæᵨ-þÿᜓᑁᑏᐭPROM,ᑏᐭᦋᓽᐕ஺EPROMᓄᙠᓄ!"᜜ᐝ᯿&◀()*ᓄ*ᦪ,஺EEPROMᓄ-ᑭᵨᵯ1ᩭ&◀3ᱏᑁ)*ᓄ*ᦪ,஺7.67ᵫ9ᡠᵨḄ3ᱏ<1024X1=᪀ᡂ1024X8=@ᓽ1KX8=AḄBCᘤ◤⌕8ᱏGHIᡂ16Kx8=ḄBCᘤ◤⌕16X8=128ᱏ஺ᱏᑁᨵ1024Kᓫᐗ◤⌕10᪷ᙢᙬQ஺16I@RI8ᱏABCᘤ◤⌕16᪷ᱏ⌱TUVW◤⌕4᪷ᙢᙬQXYṹᘤ[\஺]^_᝞a⚓஺A19A18A17A16A15A14A13-A0100000Y0ᨵᦔ80000-83FFFH100001Y1ᨵᦔ84000-87FFFH100010Y2ᨵᦔ88000-8BFFFH100011Y3ᨵᦔ8C000-8FFFFHefghij⚪l1.ூ6noCPUpqrst,ᵫ9vᜐᳮᘤᑁyz{ᡈ᜜}~CPUpᙠrsḄ᡻s~Ḅ᜜}@ᡈᑁyz{AḄ᡻sḄ!<஺ᵫINTRᐭᵨᵯᵯᨵᦔINTRTUḄᵯᢝᑮCPU¡¢£஺!¤{}¥ᩭ᜜yᓽ¦᜜y}ᜓᨵ~CPU§஺o᜜}ᨵᵭ~tᙠo©ᢣ«᡻sCPU✌ᐜ®¯IF=°IF=0,CPUἭ²³᜜}7°IF=1,CPUᐕ᜜}Ḅ~஺ᵫNMIᐭ´µ¶ᓣµ¸ᢝ¹Ktºᕜ¼ᵯᨵᦔ஺ᵨ¤{ᩭḄᨵ~᝞ᵯ½ᣵᵯ¿ÀញÂÃCPU§஺4,6Ä7CPU⌕ᨵÅKᩩ{7᜜}Ç\ᵭ~ÈÉ=ÊÈᐕ஺ᜐᳮḄ!ËᑖᡂÍÎ7~ÈÈÏÐÑÒÈᐭ᡻sÈឮÔÑÒÕ஺

9CPUᙠ᜜y-ᐭÖḄ!⌕×Øanh7পÚᦪ,ÛQ¶ÜÝÞßUᐸBᐭᑁyᨚBᘤ஺ফ᪗äåBᘤPSWḄæᐭç஺বPSWḄᐕ᪗äIFÕᓫÎ᪗äTFé0,᜜yᐸê~ëìCPUᓫÎíî᡻sᜐᳮï஺ভÏÐño©ᢣ«a☢ᩩᢣ«ḄóᙢᙬCSÕᢣ«ᢣ┐IPḄæᐭ᪘ᜐᳮpöᑮ÷øù᡻s஺ম᪷,ÞßUᑮᔣü⊤þᑮᔣüᐭÖ஺যᜐᳮᚮ᪘IPஹCSPSW,ᯠᜐ᡻ᩭḄ஺5.ூ"௃$ᵫ&'()CPU*+ᐵ-(IF=0),ᦑᙠ123STIᢣ5678911:ᝅ஺<=ᙠ123>?9@ᓽBCDᢣ5STI(IF=1),E89:ᝅ஺6.ூ"FG5EOIH◀12JKᘤḄ᪗NOᓽᐕQ'(RSᡈUSVWX┯Z•=\G5EOIC&123]஺7.ூ"௃$ᔣ_⊤ab12ᐭdᙢᙬ⊤஺\ghBᜓḄ12ᐭdᙢᙬ(j_ᙢᙬ)lmᙠᔣ_⊤஺nCPU'(oᑴqr᪷t᜜BvwḄxyz{|ᔣ_⊤ᯠ\12Ḅᐭdᙢᙬ〈ᑮJKᘤᢣ5ᢣ┐JKᘤCPUᐭ123஺᪵ᜧᜧᜐᳮḄ஺8086/8088ᐕQᜐᳮ256xyḄ(xyzV0~FFH஺ᙠKᘤḄ00000H~003FFH,ᓰ1K⁚ᵨKmᔣ_஺ghxyzᓰ4h⁚2h⁚Kmᐭd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OUTDX,AL²ICW2G5MOVAL,00100100B(24H)ª«ICW3,IR2IR5ÈᱏOUTDX,ALMOVAL,0000000IB(01H)ª«ICW4,¹ᐰ:ᝅ»¼½OUTDX,AL»*+EOI6É

11MOVAL,11010011B(0D3H)ª«OCW1,ᐕQIR2ஹ1R3OUTDX,ALIR5ᐸ´µ¶·¸3)1#ᱏ8259A¥¦ᓄ¨$©dᙢᙬVFFE8HFFEAHMOVAL,0001100IB(19H)ª«ICW1,ᱏSὶᵯDZ²MOVDX,0FFE8HOUTDX,AL²ICW1G5MOVAL,90HIR0ḄxyzV90HMOVDX,0FFEAHOUTDX,AL²ICW2G5MOVAL,00000010B(02H)$ª«ICW3,1#ᱏÈᱏḄIR2OUTDX,ALMOVAL,0000000IB(01H)ª«ICW4,¹ᐰ:ᝅ»¼½OUTDX,AL»*+EOI6ÉMOVAL,I110111IB(0EFH)ª«OCW1,ᐕQIR4OUTDX,ALᐸ´µ¶·¸4)2#ᱏ8259A¥¦ᓄ¨$©dᙢᙬVFFECHFFEEHMOVAL,00011001B(19H)ª«ICW1,ᱏSὶᵯDZ²MOVDX,0FFECHOUTDX,AL²ICW1G5MOVAL,0A0HIR0ḄxyzVA0HMOVDX,OFFEEHOUTDX,AL²ICW2G5MOVAL,00000101B(05H)ª«ICW3,2#ᱏÈᱏḄIR5OUTDX,ALMOVAL,0000000IB(01H)ª«ICW4,¹ᐰ:ᝅ»¼½OUTDX,AL»*+EO16ÉMOVAL,11101111B(0EFH)ª«OCW1,ᐕQIR4OUTDX,ALᐸ´µ¶·¸ÊËÌÍÎ⚪Ð1.ூ"௃$8253ᑁÑᒹÓ3h¹ᐰÔRḄÕᦪᘤ/ª)ᘤÁ⍝ᓽ஺Ù2ÕᦪÁ⍝3hÁ⍝ḄÚ¹ᐰÛÜḄ஺8253ḄghÁ⍝Ýᨵ6ßRḄF6É஺6É0<Õᦪ6É$n8253ḄàᢝᑮäÕᦪᘤùᐭúḄÕᦪûᡈBCúḄF6ÉVü஺ᙠÕᦪḄð᝞þGATEæVUᵯÇᑣᨚ1ᦪᦪᘤᢝGATEᨵᦔḄOUTᵯ஺GATEᑮᵯᦪ஺!1"#$%ᓫ'᝱)*!+,CPUᵨ.ᑴ0123ᦪᘤ456!17ᦪᘤḄ)*OUT8ᓽᵯ஺GATE*:";<ᓣ>ᙠ";@ᾭBḄC>DnEᐭᦪᘤḄ᡻HIJK)*LOUTᵫᵯᔣᵯO஺,ᦪᘤḄP)*LOUTQRᵫᑮḄSOᙠOUTTU

12BWXoW஺!2——p᳛rRᘤ+,s3"ᦪt⍝ᑏᐭ.ᑴ0⌱245!2OUTL)*ᵯ஺᝞lGATEᵯᑣᙠᑏᐭᦪḄ";@ᾭBDᦪEᐭ᡻HIJyᦪᘤzḼ@ᾭBḄ)ᐭ|⌴ᦪ஺,ᦪ1OUTLᵫᵯ~ᵯᦪᘤḄ0OUTTUᑮᵯᓽᵯḄᢝ6";)ᐭ@ᕜ஺yKDᦪefgEᐭᦪᘤhi";gḄᦪZ%ᵫyᦪ஺᝞lEᐭᦪᘤḄen,ᙠOUTTU<◞n;@ᾭBQR";YᾭBᐸWX@ᾭBḄᕜK⚣᳛)ᐭ@ᾭB⚣᳛Ḅnᑖ"஺ᙠ5Z%[᎛#ᵫCPUfgᑏᐭgḄᦪ^_,bᦪZ%Ḅ`H஺,ᦪ0";ᦪᕜ8253DᢥgᑏᐭḄᦪ`Hᦪ஺ᙠᦪZ%[,GATEᵯmOUTᵯἭᦪ,GATEcᵯᵯGATELQR<ᓣ>ᑣᙠ";@ᾭB⚜ḄᦪeEᐭᦪᘤcehi⌴ᦪ`H஺!3——rRᘤ+!3!2Ḅ45ac)*LVᑮḄ¡s¢Ḅᡈ¤¥s¢Ḅ¦§஺᝞lᑏᐭᦪᘤḄeᏔᦪᑣ,8253`Hᦪ;)ᐭ";@ᾭBᙳmᦪ2oᦪ0OUT)*TUᵫᵯᡂᵯK¬fgEᐭᦪe`Hᦪ஺,ᦪ0OUTTUᑮᵯK®"¯DᦪeEᐭᦪᘤhi"°ᦪ+᝞lᑏᐭᦪᘤḄe᜻ᦪᑣ,)*LOUTᵯ²";@ᾭBmᦪᘤ1,³ᩭ";@ᾭBmᦪᘤ2,,ᦪ0)*LOUTᵫᵯᵯK¬fgEᐭᦪe`Hᦪ஺µ²";@ᾭBmᦪᘤ3,³;@ᾭBmᦪᘤ2,ᦪ0OUTLᑮᵯfgEᐭᦪehi"°ᦪ஺!4——¶J·r⌱t+,s8253ᑏᐭ.ᑴ¸`ᐭ45!4OUTL)*ᵯ᝞lGATEᵯᑏᐭᦪeᙠ";@ᾭB>D¬ᦪeEᐭ᡻HIJhiᦪ஺,ᦪᡂ0OUTL)*¹Z";@ᕜᑮᵯ§ᡂ";YᾭB஺\ᙠᦪZ%[ᑏᐭ";gḄᦪᑣᙠ:Hᦪᕜᑁ»^_a,ᦪ0DᢥgḄᦪe`HᦪK᪵½¾"¯஺᝞lᙠᦪḄZ%[GATEᵯᑣᦪ,GATEᵯfgDeEᐭᦪᘤcehiᦪ¿ÀᦪᘤḄ0cOUTL)*";YᾭB஺!"ÂJ·r⌱t+$%`ᐭ45!5OUTL)*ᵯ஺,Eᐭ5ᦪnGATETU<)ᐭ";cᑮḄSOÃÄ,ÆÇᙠ";@ᾭB>ᦪeEᐭ᡻HIJhi1ᦪ஺,ᦪᘤḄ0;)*LOUTQR";WX";@ᕜḄYᾭBᯠOUTᑮᵯ஺ᦪᘤ08253¬DᦪnEᐭ᡻HIJahiᦪ⌕ᑮGATEL)ᐭSOÆhi1ᦪ஺ᦪᘤᙠᦪZ%[»Ê.ÃÄGATEᵯḄ^_a¾⌕ᦪᘤË0,GATEḄ<ᓣ>ᓾÇͯ·rᦪᘤ,mÎfgcᦪenhiᦪ¿ᑮᦪ0Æ)*";YᾭB஺᝞lᙠᦪZ%[ᑏᐭgḄᦪaÏᨵ·rᾭBᑣᦪZ%»^_஺,ᦪᘤḄ0GATEL)ᐭSO·rᾭBDᢥgᑏᐭḄe`Hᦪ஺4.ூÑ௃0t⍝45ᙠ!3,nO=2MHz/l.5KHz=13341t⍝45ᙠ!2,nl=1.5KHz/300Hz=52t⍝45ᙠ!0,,CLK2=2MHzn2=2MHz/50Hz—1=39999;,CLK2=OUTO=1.5KHz,n2=1.5KHz/50Hz-1=29;

13,CLK2=OUTl=300Hzn2=300Hz/50Hz-1=5eiᓄ%Ô᝞+0t⍝eiᓄ+MOVDX,306HMOVAL,00110111B(37H)!3,ᐜÖ/ᑏ8Ø:Ö/ᑏ8ØBCDᦪOUTDX,ALMOVDX,300HMOVAL,34He8ØOUTDX,ALMOVAL,13He8ØOUTDX,AL1t⍝eiᓄ+MOVDX,306HMOVAL,01010101B(55H)!2,¾Ö/ᑏ8ØBCDᦪOUTDX,ALMOVDX,302HMOVAL,05HeOUTDX,AL2t⍝eiᓄ+MOVDX,306HMOVAL,10010001B(91H)!0,¾Ö/ᑏ8ØBCDᦪOUTDX,ALMOVDX,304HMOVAL,29H(ᡈ05H)eOUTDX,AL²ÛÜ5ÝÞ⚪à2.ூÑ௃8255Aᐹᨵ3⤥Ḅ45!ᙠs8255A`Heiᓄ$%ãᔣ.ᑴ0äåᘤᑏᐭ!⌱æ.ᑴ0ᵨᩭç28255AᔜLéḄ45!஺µ3⤥45!¡+!o"¤¥)ᐭ)*!+〉ᵨ6◤⌕ᵨãÑÃÄḄìᓫ)ᐭ)*íᔠ஺µâ!AéBé#58ØḄLéCéḄ4Ø4Ø#5ï;4ØḄLé஺!1"⌱t)ᐭ)*!+AéB5ᦪðéᙳ#456)ᐭᡈ)*!஺LéCḄ6᪷òᵨᩭQRᡈó»ὶõÃÄ஺!2—öᔣ÷òI/O!+¾ᨵAé#³456µâ!஺LéA456!2LéCḄ5Ø(PC3~PC7)5AéḄὶõ.ᑴÃÄ஺জ9:8255A+Aé)ᐭBé)*8253+2MHz/2Hz=1000000t⍝0456!2,ùN0=1000t⍝1456!0,ùNl=999,ᓽVOUT10.5ú[û"¯஺¥⚪ᵨ82532[û[ûᜐᳮþÿᐵ᝱LED஺Ꮇ8259Aᓄ᝞.MOVAX,SEGINTRᡂ⊤MOVDS,AXMOVDX,OFFSETINTR

14MOVAL,NMOVAH,25HINT2IHMOVAL,10010000B8255ᓄOUT83H,ALMOVAL,00110101B"⍝0$%2,BCD&ᦪOUT87H,ALMOVAL,OOH()1000OUT84H,ALMOVAL,10HOUT84H,ALMOVAL,01U0001B"⍝1$%0,BCD&ᦪOUT87H,ALMOVAL,99H()999OUT85H,ALMOVAL,09HOUT85H,ALSTIAGAIN:HETJMPAGAIN*+INTR:PUSHAXSTIINAL,80H,-ᐵᔠ/00NOTAL;23OUT81H,AL;LED4ᔠ/5MOVAL,01110001B"⍝1$%0,BCD&ᦪOUT87H,ALMOVAL,99H;()999OUT85H,ALMOVAL,09HOUT85H,ALCLIMOVAL,20H6"EOI78OUT20H,ALPOPAXIRET

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。
最近更新
更多
大家都在看
近期热门
关闭