1MCS-51指令(1)数据传送类指令(7种助记符)助记符英文注释功能MOVMove对内部数据寄存器RAM和特殊功能寄存器SFR的数据进行传送MOVCMoveCode读取程序存储器数据表格的数据传送MOVXMoveExternalRAM对外部RAM的数据传送XCHExchange字节交换XCHDExchangelow-orderDigit低半字节交换PUSHPushontoStack)入栈POPPopfromStack)出栈(2)算术运算类指令(8种助记符)ADDAddition加法ADDCAddwithCarry带进位加法SUBBSubtractwithBorrow带借位减法DADecimalAdjust十进制调整INCIncrement加1DECDecrement减1MULMultiplication、Multiply乘法DIVDivision、Divide除法(3)逻辑运算类指令(10种助记符)ANLAndLogic逻辑与ORLORLogic逻辑或XRLExclusive-ORLogic逻辑异或CLRClear清零CPLComplement取反RLRotateleft循环左移RLCRotateLeftthroughttheCarryflag带进位循环左移RRRotateRight循环右移RRCRotateRightthroughttheCarryflag带进位循环右移SWAPSwap低4位与高4位交换(4)控制转移类指令(17种助记符)ACALLAbsolutesubroutineCall子程序绝对调用LCALLLongsubroutineCall子程序长调用RETReturnfromsubroutine子程序返回RETIReturnfromInterruption中断返回JMPJumpIndirectSJMPShortJump短转移AJMPAbsoluteJump绝对转移LJMPLongJump长转移CJNECompareandJumpifNotEqual比较不相等则转移DJNZDecrementandJumpifNotZero减1后不为0则转移JZJumpifZero结果为0则转移JNZJumpifNotZero结果不为0则转移JCJumpiftheCarryflagisset有进位则转移2JNCJumpifNotCarry无进位则转移JBJumpiftheBitisset)B位为1则转移JNBJumpiftheBitisNotsetB位为0则转移JBCJumpiftheBitissetandClearthebit位为1则转移,并清除该位NOPNoOperation空操作(5)位操作指令(1种助记符)SETBSetBit置位伪指令助记符英文注释功能ORGOriginDBDefineByteDWDefineWordEQUEqualDATADataXDATAExternalDataBITBitENDEnd51外部引脚缩写英文解释中文解释RST(9)Reset复位信号引脚RxD(10--P3.0)ReceiveData串口接收端TxD(11--P3.1)TransmitData串口发送端INT0(————)(12--P3.2)Interrupt0外部中断0信号输入引脚INT1(————)(13--P3.3)Interrupt1外部中断1信号输入引脚T0(14--P3.4)Timer0定时/计数器0输入信号引脚T1(15--P3.5)Timer1定时/计数器1输入信号引脚WR(———)(16--P3.6)write写信号引脚RD(———)(17--P3.7)read读信号引脚PSEN(—————)(29)progammersavingenable外部程序存储器读选通信号ALE(30)AddressLatchEnable地址锁存允许信号EA(———)(31)enable外部ROM选择信号51内部寄存器SFRspecialfuntionregister特殊功能寄存器ACCaccumulate累加器APSWprogammerstatusword程序状态字CY(PSW.7)carry进位标志位AC(PSW.6)assistantcarry辅助进位标志位OV(PSW.2)overflow溢出标志位PCprogammercounter程序计数器DPTRdatapointregister数据指针寄存器3SPstackpoint堆栈指针TCONtimercontrol定时器控制寄存器TF1(TCON.7)Timer1flagT1中断标志位TR1(TCON.6)Timer1RunT1运行控制位TF0(TCON.5)Timer0flagT0中断标志位TR0(TCON.4)Timer0RunT0运行控制位IE1(TCON.3)Interrupt1exterior外部中断1中断标志位IT1(TCON.2)Interrupt1touch外部中断1触发方式选择位IE0(TCON.1)Interrupt0exterior外部中断0中断标志位IT0(TCON.0)Interrupt0touch0-电平触发1-下降沿触发IE(A8H)interruptenable中断允许寄存器EA(IE.7)enableallinterrupt中断总允许位ES(IE.4)enableserial串行口中断允许位ET1(IE.3)enabletimer1T1中断允许位EX1(IE.2)enableexterior1外部中断1中断允许位ET0(IE.1)enabletimer0T0中断允许位EX0(IE.0)enableexterior0外部中断0中断允许位IP(B8H)interruptpriority中断优先级寄存器PS(IP.4)priorityserial串口优先级标志位PT1(IP.3)prioritytimer1定时器1优先级标志位PX1(IP.2)priorityexterior1外部中断1优先级标志位PT0(IP.1)prioritytimer0定时器0优先级标志位PX0(IP.0)priorityexterior0外部中断0优先级标志位PCON(87H)powercontrol电源控制和波特率选择TMOD(89H)timermode定时器方式控制寄存器MSB=mostsignificantbit//最高有效位LSB=lastsignificantbit//最低有效位OE=outputenable//输出使能AC(alternatingcurrent)交流(电)tnHhF(qA/D(analogtodigital)模拟/数字转换6oTBADC(analogtodigitalconvertor)模拟/数字转换器GCu[-Z8NDNADM(adaptivedeltamodulation)自适应增量调制lO-6kCADPCM(adaptivedifferentialpulsecodemodulation)自适应差分脉冲编码调制(4~UEALU(arithmeticlogicunit)算术逻辑单元ydgjd,ikASCII(Americanstandardcodeforinformation)Fy*&-interchange)美国信息交换标准码jk8y:JM(AV(audiovisual)声视,视听c-,(,$tkBCD(binarycodeddecimal)二进制编码的十进制数~$`5%zPBCR(bi-directionalcontrolledrectifier)双向晶闸管ZPoLm__BBCR(buffercourtierreset)缓冲计数器l@!&|BZ(buzzer)蜂鸣器,蜂音器ZB8ndc+C(capacitance,capacitor)电容量,电容器9|0:~'UyCATV(cabletelevision)电缆电视^wJxLO?4CCD(charge-coupleddevice)电荷耦合器件dAU-sDCCTV(closed-circuittelevision)闭路电视.3{qmj&YICMOS(complementary)互补MOSjd1SQCPU(centralprocessingunit)**处理单元u^MoCS(controlsignal)控制信号jf7=t,:-wD(diode)二极管?wj?-/DAST(directanalogstoretechnology)直接模拟存储技术xpe-i&,!DC(directcurrent)直流;vLeet'qDIP(dualin-linepackage)双列直插封装-IS%E_-DP(dialpulse)拨号脉冲Zy6#!i#yDRAM(dynamicrandomaccessmemory)动态随机存储器4;%[{t*sDTL(diode-transistorlogic)二极管晶体管逻辑#A0aq-&IxDUT(deviceundertest)被测器件biQDDVM(digitalvoltmeter)数字电压表tBj5^LhmECG(electrocardiograph)心电图y9yEjG}F!ECL(emittercoupledlogic)射极耦合逻辑&6/uChDlEDI(electronicdatainterchange)电子数据交换@!?hC&f1EIA(ElectronicIndustriesAssociation)电子工业联合会iS~o6,dEOC(endofconversion)转换结束B]#&Y;]EPROM(erasableprogrammablereadonlymemory)可擦可编程只读存储器\'bqd=-EEPROM(electricallyEPROM)电可擦可编程只读存储器-X#5O[ESD(electro-staticdischarge)静电放电RW~fIv,/-FET(field-effecttransistor)场效应晶体管P$P0DcFS(fullscale)满量程NF.PV-3*e6F/V(frequencytovoltageconvertor)频率/电压转换FM(frequencymodulation)调频CBRbc5+TrFSK(frequencyshiftkeying)频移键控FSM(fieldstrengthmeter)场强计sZw*WS&QFST(fastswitchingshyster)快速晶闸管7%wlXSeFT(fixedtime)固定时间ey-xkR\FU(fuseunit)保险丝装置b$Oo1}zFWD(forward)正向的GAL(genericarraylogic)通用阵列逻辑k:\K^]RYGND(ground)接地,地线o)I%^h%GTO(Sateturnoffthruster)门极可关断晶体管sR:-Yi*jW\HART(highwayaddressableremotetransducer)可寻址远程传感器数据公路*GJ=m3SHCMOS(highdensityCOMS)高密度互补金属氧化物半导体(器件)Xd`iF3I!HF(highfrequency)高频bh~-MHaakHTL(highthresholdlogic)高阈值逻辑电路\y=JHTS(heattemperaturesensor)热温度传感器PNi[E0';IC(integratedcircuit)集成电路xh.ID(internationaldata)国际数据IGBT(insulatedgatebipolartransistor)绝缘栅双极型晶体管LM]VH%MIGFET(insulatedgatefieldeffecttransistor)绝缘栅场效应晶体管m70O.l^5I/O(input/output)输入/输出ei^-uWI/V(currenttovoltageconvertor)电流-电压变换器zf`GT.jIPM(incidentalphasemodulation)附带的相位调制LuEFIPM(intelligentpowerm