
- •PIC book
- •Chapter 1 - Introduction to Microprocessors
- •Chapter 2 - Microcontroller PIC16F84
- •Chapter 2 - Microcontroller PIC16F84
- •Chapter 2 - Microcontroller PIC16F84
- •Chapter 2 - Microcontroller PIC16F84
- •Chapter 2 - Microcontroller PIC16F84
- •Chapter 2 - Microcontroller PIC16F84
- •Chapter 2 - Microcontroller PIC16F84
- •Chapter 2 - Microcontroller PIC16F84
- •Chapter 2 - Microcontroller PIC16F84
- •Chapter 3 - Instruction Set
- •http://www.mikroelektronika.co.yu/english/product/books/PICbook/4_Poglavlje.htm
- •Chapter 5 - MPLAB
- •Chapter 5 - MPLAB
- •Chapter 5 - MPLAB
- •http://www.mikroelektronika.co.yu/english/product/books/PICbook/5_04Poglavlje.htm
- •Chapter 5 - MPLAB
- •Chapter 5 - MPLAB
- •Chapter 5 - MPLAB
- •Chapter 5 - MPLAB
- •Chapter 6 - Samples
- •Chapter 6 - Samples
- •Chapter 6 - Samples
- •Chapter 6 - Samples
- •Chapter 6 - Samples
- •Chapter 6 - Samples
- •Chapter 6 - Samples
- •Chapter 6 - Samples
- •Chapter 6 - Samples
- •Chapter 6 - Samples
- •Chapter 6 - Samples
- •Chapter 6 - Samples
- •Appendix A - Instruction Set
- •Appendix B - Numeric Systems
- •Appendix C - Glossary

Appendix A - Instruction Set |
|
|
|
Previous page |
Table of contents |
Chapter overview |
Next page |
Appendix A
Instruction Set
Introduction
Appendix contains all instructions presented separately with examples for their use. Syntax, description and its effects on status bits are given for each instruction.
●A.1 MOVLW
●A.2 MOVWF
●A.3 MOVF
●A.4 CLRW
●A.5 CLRF
●A.6 SWAPF
●A.7 ADDLW
●A.8 ADDWF
●A.9 SUBLW
●A.10 SUBWF
●A.11 ANDLW
●A.12 ANDWF
●A.13 IORLW
●A.14 IORWF
●A.15 XORLW
●A.16 XORWF
●A.17 INCF
●A.18 DECF
●A.19 RLF
●A.20 RRF
●A.21 COMF
●A.22 BCF
●A.23 BSF
●A.24 BTFSC
●A.25 BTFSS
●A.26 INCFSZ
●A.27 DECFSZ
●A.28 GOTO
●A.29 CALL
●A.30 RETURN
●A.31 RETLW
●A.32 RETFIE
●A.33 NOP
●A.34 CLRWDT
http://www.mikroelektronika.co.yu/english/product/books/PICbook/A_Dodatak.htm (1 of 21) [4/2/2003 16:19:25]

Appendix A - Instruction Set
● A.35 SLEEP
A.1 MOVLW Write constant in W register
A.2 MOVWF Copy W to f
A.3 MOVF Copy f to d
http://www.mikroelektronika.co.yu/english/product/books/PICbook/A_Dodatak.htm (2 of 21) [4/2/2003 16:19:25]

Appendix A - Instruction Set
A.4 CLRW Write 0 in W
A.5 Write 0 in f
http://www.mikroelektronika.co.yu/english/product/books/PICbook/A_Dodatak.htm (3 of 21) [4/2/2003 16:19:25]

Appendix A - Instruction Set
A.6 SWAPF Copy the nibbles from f to d crosswise
A.7 ADDLW Add W to a constant
http://www.mikroelektronika.co.yu/english/product/books/PICbook/A_Dodatak.htm (4 of 21) [4/2/2003 16:19:25]

Appendix A - Instruction Set
A.8 ADDWF Add W to f
A.9 SUBLW Subtract W from a constant
http://www.mikroelektronika.co.yu/english/product/books/PICbook/A_Dodatak.htm (5 of 21) [4/2/2003 16:19:25]

Appendix A - Instruction Set
A.10 SUBWF Subtract W from f
A.11 ANDLW Logic AND W with constant
http://www.mikroelektronika.co.yu/english/product/books/PICbook/A_Dodatak.htm (6 of 21) [4/2/2003 16:19:25]

Appendix A - Instruction Set
A.12 ANDWF Logic AND W with f
A.13 IORLW Logic OR W with constant
http://www.mikroelektronika.co.yu/english/product/books/PICbook/A_Dodatak.htm (7 of 21) [4/2/2003 16:19:25]

Appendix A - Instruction Set
A.14 IORWF Logic OR W with f
A.15 XORLW Logic exclusive OR W with constant
http://www.mikroelektronika.co.yu/english/product/books/PICbook/A_Dodatak.htm (8 of 21) [4/2/2003 16:19:25]

Appendix A - Instruction Set
A.16 XORWF Logic exclusive OR W with f
A.17 INCF |
Increment f |
http://www.mikroelektronika.co.yu/english/product/books/PICbook/A_Dodatak.htm (9 of 21) [4/2/2003 16:19:25]

Appendix A - Instruction Set
A.18 DECF |
Decrement f |
http://www.mikroelektronika.co.yu/english/product/books/PICbook/A_Dodatak.htm (10 of 21) [4/2/2003 16:19:25]

Appendix A - Instruction Set
A.19 RLF |
Rotate f to the left through CARRY |
http://www.mikroelektronika.co.yu/english/product/books/PICbook/A_Dodatak.htm (11 of 21) [4/2/2003 16:19:25]

Appendix A - Instruction Set
A.20 RRF |
Rotate f to the right through CARRY |
http://www.mikroelektronika.co.yu/english/product/books/PICbook/A_Dodatak.htm (12 of 21) [4/2/2003 16:19:25]

Appendix A - Instruction Set
A.21 COMF Complement f
http://www.mikroelektronika.co.yu/english/product/books/PICbook/A_Dodatak.htm (13 of 21) [4/2/2003 16:19:25]

Appendix A - Instruction Set
A.22 BCF |
Reset bit b in f |
A.23 BSF |
Set bit b in f |
http://www.mikroelektronika.co.yu/english/product/books/PICbook/A_Dodatak.htm (14 of 21) [4/2/2003 16:19:25]

Appendix A - Instruction Set
A.24 BTFSC |
Test bit b in f, skip if it = 0 |
A.25 BTFSS |
Test bit b in f, skip if =1 |
http://www.mikroelektronika.co.yu/english/product/books/PICbook/A_Dodatak.htm (15 of 21) [4/2/2003 16:19:25]

Appendix A - Instruction Set
A.26 INCFSZ |
Increment f, skip if=0 |
A.27 DECFSZ |
Decrement f, skip if = 0 |
http://www.mikroelektronika.co.yu/english/product/books/PICbook/A_Dodatak.htm (16 of 21) [4/2/2003 16:19:25]

Appendix A - Instruction Set
A.28 GOTO Jump to address
A.29 CALL |
Call a program |
http://www.mikroelektronika.co.yu/english/product/books/PICbook/A_Dodatak.htm (17 of 21) [4/2/2003 16:19:25]

Appendix A - Instruction Set
A.30 RETURN |
Return from a subprogram |
A.31 RETLW Return from a subprogram with constant in W
http://www.mikroelektronika.co.yu/english/product/books/PICbook/A_Dodatak.htm (18 of 21) [4/2/2003 16:19:25]

Appendix A - Instruction Set
A.32 RETFIE |
Return from interrupt routine |
A.33 NOP No operation
A.34 CLRWDT Initialize watchdog timer
http://www.mikroelektronika.co.yu/english/product/books/PICbook/A_Dodatak.htm (19 of 21) [4/2/2003 16:19:25]

Appendix A - Instruction Set
A.35 SLEEP |
Stand by mode |
Previous page |
Table of contents |
Chapter overview |
Next page |
http://www.mikroelektronika.co.yu/english/product/books/PICbook/A_Dodatak.htm (20 of 21) [4/2/2003 16:19:25]

Appendix A - Instruction Set
© Copyright 1999. mikroElektronika. All Rights Reserved. For any comments contact webmaster.
http://www.mikroelektronika.co.yu/english/product/books/PICbook/A_Dodatak.htm (21 of 21) [4/2/2003 16:19:25]