您好,欢迎访问三七文档
当前位置:首页 > 行业资料 > 其它行业文档 > AVR教程第四章AVR单片机指令系统
AVR41(1)89:AT90S1200,;(2)90():Attiny11/12/15/22;90=+89(3)118():AT90S2313/2323/2343/2333,/4414/4433/4434/8515/90S8534/8535;118=+90;(4)121()ATmega603/103;121=+118;(5)130()ATmega161;130=+121AVR42,AT90S4414/4433/4434/8515,AT90S8534/8535BRCCkCADDRd,RrBRSHkSBIP,bI/OADCRd,RrBRLOk()CBIP,bI/OADIWRdl,KBRMIkLSLRdSUBRd,RrBRPLkLSRRdSUBIRd,RrBRGEk()ROLRdSBCRd,RrBRLTk()RORRdSBCIRd,KCBRHSkHASRRdSBIWRdl,KBRHCkHSWAPRdANDRd,RrBRTSkTBSETsSREGANDIRd,KBRTCkTBCLRsSREGORRd,RrBRVSkVBSTRr,bRrbTORIRd,KBRVCkVBLDRdTRrbEORRd,RrBRIEkSECCCOMRdBRIDkCLCCNEGRdSENNSBRRd,KMOVRd,RrCLNNCBRRd,KLDIRd,RrSEZZINCRd1LDRd,XXCLZZDECRd1LDRd,X+XSEIITSTRdLDRd,-XXCLIICLRRdLDRd,YYSESSSERRdFFLDRd,Y+YCLSSLDRd,–YYSEVVRJMPkLDDRd,Y+qYqCLVVIJMP(Z)LDRd,ZZSETTRCALLkLDRd,Z+ZCLTTICALL(Z)LDRd,–ZZSEHHRETLDDRd,Z+qZqCLHHRETILDSRd,KSRAMNOPCPSERd,RrSTX,RrXSLEEPCPRd,RrSTX+,RrXWDRCPCRd,RrST–X,RrXCPIRd,KSTY,RrYSBRCRr,bSTY+,RrYSBRSRr,bST–Y,RrYSBICP,bI/OSTDY+q,RrYqSBISP,bI/OSTZ,RrZ90Attiny11/12/15/22=+89AT90S1200BRBSs,kSREGSTZ+,RrZ+BRBCs,kSREGST–Z,RrZ-BREQkSTDZ+q,RrZ+q118=+90BRNEkSTSk,,RrSRAMBRCSkCLPMINRd,P/OOUTP,RdrI/OPUSHRrPOPRd,AVR43://WWW.SL.COM.CN——AVR45·————·——“”————AVR46···AVR47://WWW.SL.COM.CNAVR49://WWW.SL.COM.CNAVR411··óAVR412()ßßóóóóóó········AVR413·····óóóóóó·········AVR414——ßßóóóóó·················ßßAVR415··············ßßóóóóóó·················AVR416——ß—ßóóóóóó·················——ßßóóóóóó···AVR417··············——ßßóóóóóó··················AVR418——ßßóóóóó··················ßßóóóóó··············AVR419——ß—ßAVR420——ßßóóóóóóAVR421://WWW.SL.COM.CNóóóóóóßóóóóóóAVR423·······AVR424——ß·ßóóó·······——ßßóóóAVR425·······ßßóóó·······AVR426··ßßóóó·······——ßßAVR427·······——ßßóóó·······AVR428·——ßßAVR429·······ßßAVR430··—ß—ßß——AVR431——ßß————ßßAVR432://WWW.SL.COM.CNßßßßAVR434——ßßßßAVR435://WWW.SL.COM.CNßßßßßßßßAVR437://WWW.SL.COM.CN——ßßßßßßßßAVR439——ßßßßAVR440——ßßßßAVR441://WWW.SL.COM.CNßßßßAVR443://WWW.SL.COM.CNßßßß———ßßßAVR445://WWW.SL.COM.CN——ßßßßßAVR447://WWW.SL.COM.CNßßßßßAVR449——ßßAVR450——ßßAVR451://WWW.SL.COM.CN——ßßßß——AVR453(45230.ASM,”.ASM”,),”.ASM”AVR--()AVR454://WWW.SL.COM.CNßß——AVR456://WWW.SL.COM.CNßßßßßßAVR458–ßßßßßßßßßßßAVR459——ßßßßßßßßßßAVR460——ßßßßßAVR461——ßßßßßAVR462——ßßAVR463””··——ßßAVR464://WWW.SL.COM.CN·——ßßß——ßßßAVR466://WWW.SL.COM.CN——ßóóóóóó·······AVR468——ßóóóóó·······AVR469·······——ßóóóóóAVR470·······——ßóóóóó·······——AVR471——ßßßßAVR472——ßßóóóóóóóóßßAVR473://WWW.SL.COM.CN——ßßßßßßßßAVR475——ßßßßßAVR476——ßßßß——ßßAVR477——ßßßß——ßßAVR478——ßßAVR479://WWW.SL.COM.CNßßß——ßßß——ßAVR481——ßßß——ßAVR482——“——AVR483://WWW.SL.COM.CN3.8.1EICALL-:Z(16)I/OEINDPCICALLEICALL:(i)PC(15:0)ßZ(15:0)PC(21:16)ßEIND::::(i)EICALLNoneSeeOperationSTACKßPC+1SPßSP-3(3bytes,22bits)16:1001010100011001(SREG)::(481.ASM)ldir16,$05;EINDZoutEIND,r16ldir30,$00ldir31,$10eicall;$051000Words:1(2bytes)Cycles:4(22PC)4.8.2EIJMP-:Z(16)I/OEIND:(i)PC(15:0)ßZ(15:0)PC(21:16)ßEIND::::(i)EIJMPNoneSeeOperation16:(SREG):AVR485:(482.ASM)ldir16,$05;EINDZoutEIND,r16ldir30,$00ldir31,$10eijmp;$051000Words:1(2bytes)Cycles:24.8.3ELPM-:ZI/ORAMPZRd16Z01ZRAMPZZ24:ELPMr30,Z+ELPMr31,Z+:::::16:(SREG)::(483.ASM)clrr16;RAMPZoutRAMPZ,r16clrr31;ZAVR486,$F0;Z1elpmr16,Z+;;RAMPZ:Z(r31:r30)Words:1(2bytes)Cycles:34.8.4ESPM-:ESPMRAMPZZRAMPZZR1:R0R1:R0ESPM::(i)(RAMPZ:Z)ß$ffff(ii)(RAMPZ:Z)ßR1:R0(iii)(RAMPZ:Z)ßR1:R0(iv)(RAMPZ:Z)ßTEMP(v)BLBITSßR1:R0:::(i)-
本文标题:AVR教程第四章AVR单片机指令系统
链接地址:https://www.777doc.com/doc-23875 .html