PIC12C5XX Instruction Set

ADDWF(Add W and F)
syntaxADDWF f,d
operation(W)+(f) → (dest);
ANDLW(AND Literal with W)
syntaxANDLW k
operation(W).AND.k → (W);
ANDWF(AND W with F)
syntaxANDWF f,d
operation(W).AND.(f) → (dest);
BCF(Bit Clear f)
syntaxBCF f,b
operation0 → (f<b>);
BSF(Bit Set F)
syntaxBSF f,b
operation1 → (f<b>);
BTFSC(Bit Test F,Skip if Clear)
syntaxBTFSC f,b
operationskip if (f<b>) == 0;
BTFSS(Bit Test F,Skip if Set)
syntaxBTFSS f,b
operationskip if (f<b>) == 1;
CALL(subroutine CALL)
syntaxCALL k
operation(PC) + 1 → Top of Stack;
k → PC<7:0>;
(STATUS<6:5>) → PC(10:9);
0 → PC<8>;
CLRF(CLeaR F)
syntaxCLRF f
operation0 → (f);
1 → Z;
CLRW(CLeaR W)
syntaxCLRW
operation0 → (W);
1 → Z;
CLRWDT(CLeaR WatchDog Timer)
syntaxCLRWDT
operation0 → WDT;
0 → WDT prescaler(if assigned);
1 → \TO;
1 → \PD;
COMF(COMplement F)
syntaxCOMF f,d
operation\(f) → (dest);
DECF(DECrement F)
syntaxDECF f,d
operation(f) - 1 → (dest);
DECFSZ(DECrement F,Skip if Zero)
syntaxDECFSZ f,d
operation(f) - 1 → (dest);
skip if result == 0;
GOTO(unconditional branch)
syntaxGOTO k
operationk → PC<8:0>;
STATUS<6:5> → PC<10:9>;
INCFM(INCrement F)
syntaxINCF f,d
operation(f) + 1 → (dest);
INCFSZ(INCrement F,Skip if Zero)
syntaxINCFSZ f,d
operation(f) + 1 → (dest);
skip if resulut == 0;
IORLW(Inclusive OR Literal with W)
syntaxIORLW k
operation(W).OR.k → (W);
IORWF(Inclusive OR W with F)
syntaxIORWF f,d
operation(W).OR.(f) → (dest);
MOVF(MOVe F)
syntaxMOVF f,d
operation(f) → (dest);
MOVLW(MOVe Literal to W)
syntaxMOVLW k
operationk → (W);
MOVWF(MOVe W to F)
syntaxMOVWF f
operation(W) → (f);
NOP(No OPeration)
syntaxNOP
operationNone
OPTION(load OPTION register)
syntaxOPTION
operation(W) → OPTION;
RETLW(RETurn with Literal in W)
syntaxRETLW k
operationk → (W);
TOS → PC;
RLF(Rotate Left F through carry)
syntaxRLF f,d
operation( C ← (f) ← C ) → (dest);
RRF(Rotate Right through carry)
syntaxRRF f,d
operation( C → (f) → C ) → (dest);
SLEEP(enter SLEEP mode)
syntaxSLEEP
operation0 → WDT;
0 → WDT prescaler;
1 → \TO;
0 → \PD;
SUBWF(SUBtract W from F)
syntaxSUBWF f,d
operation(f) - (W) → (dest);
SWAPF(SWAP nibbles in F)
syntaxSWAPF f,d
operation(f<3:0>) → (dest<7:4>);
(f<7:4>) → (dest<3:0>);
TRIS(load TRIS register)
syntaxTRIS f
operation(W) → TRIS resister f;
XORLW(eXclusive OR Literal with W)
syntaxXORLW k
operation(W).XOR.k → (W);
XORWF(eXclusive OR W with F)
syntaxXORWF f,d
operation(W).XOR.(f) → (dest);


Back to software menu
Back to home
Back to PICの勉強
メールはこちらから