个发光管闪时次右移亮( light emitting diode flashes to right shift light)

个发光管闪时次右移亮( light emitting diode flashes to right shift light)

ID:12522443

大小:21.57 KB

页数:15页

时间:2018-07-17

个发光管闪时次右移亮( light emitting diode flashes to right shift light)_第1页
个发光管闪时次右移亮( light emitting diode flashes to right shift light)_第2页
个发光管闪时次右移亮( light emitting diode flashes to right shift light)_第3页
个发光管闪时次右移亮( light emitting diode flashes to right shift light)_第4页
个发光管闪时次右移亮( light emitting diode flashes to right shift light)_第5页
资源描述:

《个发光管闪时次右移亮( light emitting diode flashes to right shift light)》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库

1、8个发光管闪时次右移亮(8lightemittingdiodeflashestorightshiftlight)Thirdchapters3-1choicequestions1,MOVXA,@DPTRinstructionsinthesourceoperandaddressingmodeis(B)(A)registeraddressing(B)registerindirectaddressing(C)directaddressing(D)immediateaddressing2.ORG0003HLJMP2000HORG000BHLJMP3000H,whenCPUresponds

2、toexternalinterrupt0,thevalueofPCis(B)(A)0003H(B)2000H(C)000BH(D)3000H3.performthePUSHACCinstruction,andtheMCS-51completestheoperation(A)(A)SP+1SP(ACC)(SP)(B)(ACC)(SP)SP-1SP(B)(C)SP-1SP(ACC)(SP)(D)(ACC)()(SP)SP+1SP4,LCALLinstructionopcodeaddressis2000H,afterthecompletionofthesubroutinetoretu

3、rninstructions,PC=(D)(C)2000H(B)2001H(C)2002H(D)2003HAfter5,51executeMOVA,#08H,PSWisset(D)(A)(A)C(B)F0(C)OV(D)P6.ThefollowinginstructionsetstheworkingregistersoftheMCS-51into3zones(B)(A)MOVPSW,#13H(B)MOVPSW,#18H(B)SETBPSW.4CLRPSW.3(d)SETBPSW.3CLRPSW.47,whenexecutingMOVXA,DPTRinstruction,thec

4、ontrolsignalproducedbyMCS-51is(C)(D)/PSEN(B)ALE(C)/RD(D)/WR8,MOVC,#00Haddressingmodeis(A)(A)bitaddressing(B)directaddressing(C)immediateaddressing(D)registeraddressing9,ORG0000HAJMP0040HORG0040HMOVSP,#00H,whentheleftprogramisexecuted,thevalueofPCis(C)(A)0040H(B)0041H(C)0042H(D)0043H10.Therea

5、doperationofprogrammemorycanonlybeused(D)(A)MOVinstruction(B)PUSHinstruction(C)MOVXinstruction(D)MOVCinstruction3-2judgmentquestions.Themaximumnegativejumpdistanceoftherelativetransfercommandof4.MCS-51is127B.(wrong)128B5.whentheMCS-51poweronreset,thestackpointerSP=00H.(SP=07H)(wrong)6.CallSu

6、broutineinstructions(suchas:CALL)andreturninstructions(e.g.:RET)arerelatedtothestack,buthavenothingtodowiththePC.Thereturnof(error)subsequenceisalsorelatedtoPC(PCintostackandoutstack)7.MOV@R1,#80H(wrong)5,INCDPTR(pairs)6,CLRR0(error)instructionsystemdoesnotexist.7,MOV@R1,#80H(pairs)8,ANLR1,#

7、0FH(wrong)9,ADDCA,C(wrong)10,XORP1,#31H(pairs)3-3simpleanswer1brieflydescribetheinstructionformatofMCS-51assemblylanguage.Answer:MCS-51assemblylanguageformatisasfollows:[][mnemoniclabel:theoperationcodeoperand1]2][[operandoperands]3][annotationlabe

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

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

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