O'Reilly logo

Designing Embedded Systems with PIC Microcontrollers, 2nd Edition by Tim Wilmshurst

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

APPENDIX 5. The PIC 18 Series instruction set
TABLE A5.1. The PIC 18 Series Standard Instruction Set Summary
Mnemonic, operandsDescriptionCycles16-bit instruction wordStatus affectedNotes
MsbLsb
BYTE-ORIENTED FILE REGISTER OPERATIONS
ADDWFf,d,aAdd WREG and f001001da0ffffffffC, DC, Z, OV, N1,2
ADDWFCf,d,aAdd WREG and Carry bit to f00100daffffffffC, DC, Z, OV, N1,2
ANDWFf,d,aAND WREG with f000101daffffffffZ, N1,2
CLRFf,aClear f0110101affffffffZ2
COMFf,d,aComplement f000111daffffffffZ, N1,2
CPFSEQf,aCompare f with WREG, skip =1 (2 or 3)0110001affffffffNone4
CPFSGTf,aCompare f with WREG, skip >1 (2 or 3)0110010affffffffNone4
CPFSLTf,aCompare f with WREG, skip <1 (2 or 3)0110000affffffffNone1,2
DECFf,d,aDecrement f000001daffffffffC, DC, Z, OV, N1,2,3,4
DECFSZ ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required