Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Introduction to PIC Microcontrollers (Complete Guide to PIC).pdf
Скачиваний:
237
Добавлен:
12.08.2013
Размер:
1.88 Mб
Скачать

Appendix A - Instruction Set

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

http://www.mikroelektronika.co.yu/english/books/A_Dodatak.htm (1 of 30) [30/12/2001 16:54:56]

Appendix A - Instruction Set

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

A.35 SLEEP

A.1 Write constant in W register

A.2 Copy W to f

http://www.mikroelektronika.co.yu/english/books/A_Dodatak.htm (2 of 30) [30/12/2001 16:54:56]

Appendix A - Instruction Set

A.3 Copy f to d

http://www.mikroelektronika.co.yu/english/books/A_Dodatak.htm (3 of 30) [30/12/2001 16:54:56]

Appendix A - Instruction Set

A.4 Write 0 in W

http://www.mikroelektronika.co.yu/english/books/A_Dodatak.htm (4 of 30) [30/12/2001 16:54:56]

Appendix A - Instruction Set

A.5 Write 0 in f

A.6 Copy the nibbles from f to d crosswise

http://www.mikroelektronika.co.yu/english/books/A_Dodatak.htm (5 of 30) [30/12/2001 16:54:56]

Appendix A - Instruction Set

A.7 Add W to a constant

http://www.mikroelektronika.co.yu/english/books/A_Dodatak.htm (6 of 30) [30/12/2001 16:54:56]

Appendix A - Instruction Set

A.8 Add W to f

A.9 Subtract W from a constant

http://www.mikroelektronika.co.yu/english/books/A_Dodatak.htm (7 of 30) [30/12/2001 16:54:56]

Appendix A - Instruction Set

A.10 Subtract W from f

http://www.mikroelektronika.co.yu/english/books/A_Dodatak.htm (8 of 30) [30/12/2001 16:54:56]

Appendix A - Instruction Set

A.11 Logic AND W with constant

http://www.mikroelektronika.co.yu/english/books/A_Dodatak.htm (9 of 30) [30/12/2001 16:54:56]

Appendix A - Instruction Set

A.12 Logic AND W with f

http://www.mikroelektronika.co.yu/english/books/A_Dodatak.htm (10 of 30) [30/12/2001 16:54:56]

Appendix A - Instruction Set

A.13 Logic OR W with constant

http://www.mikroelektronika.co.yu/english/books/A_Dodatak.htm (11 of 30) [30/12/2001 16:54:56]

Appendix A - Instruction Set

A.14 Logic ILI W with f

http://www.mikroelektronika.co.yu/english/books/A_Dodatak.htm (12 of 30) [30/12/2001 16:54:56]

Appendix A - Instruction Set

A.15 Logic exclusive OR W with constant

http://www.mikroelektronika.co.yu/english/books/A_Dodatak.htm (13 of 30) [30/12/2001 16:54:56]

Appendix A - Instruction Set

A.16 Logic exclusive OR W with f

http://www.mikroelektronika.co.yu/english/books/A_Dodatak.htm (14 of 30) [30/12/2001 16:54:56]

Appendix A - Instruction Set

A.17 Increment f

http://www.mikroelektronika.co.yu/english/books/A_Dodatak.htm (15 of 30) [30/12/2001 16:54:56]

Appendix A - Instruction Set

A.18 Decrement f

http://www.mikroelektronika.co.yu/english/books/A_Dodatak.htm (16 of 30) [30/12/2001 16:54:56]

Appendix A - Instruction Set

A.19 Rotate f to the left through CARRY

http://www.mikroelektronika.co.yu/english/books/A_Dodatak.htm (17 of 30) [30/12/2001 16:54:56]

Appendix A - Instruction Set

A.20 Rotate f to the right through CARRY

http://www.mikroelektronika.co.yu/english/books/A_Dodatak.htm (18 of 30) [30/12/2001 16:54:56]

Appendix A - Instruction Set

A.21 Complement f

http://www.mikroelektronika.co.yu/english/books/A_Dodatak.htm (19 of 30) [30/12/2001 16:54:56]

Appendix A - Instruction Set

A.22 Reset bit b in f

http://www.mikroelektronika.co.yu/english/books/A_Dodatak.htm (20 of 30) [30/12/2001 16:54:56]

Appendix A - Instruction Set

A.23 Set bit b in f

http://www.mikroelektronika.co.yu/english/books/A_Dodatak.htm (21 of 30) [30/12/2001 16:54:56]

Appendix A - Instruction Set

A.24 Test bit b in f, skip if it = 0

http://www.mikroelektronika.co.yu/english/books/A_Dodatak.htm (22 of 30) [30/12/2001 16:54:56]

Appendix A - Instruction Set

A.25 Test bit b in f, skip if =1

http://www.mikroelektronika.co.yu/english/books/A_Dodatak.htm (23 of 30) [30/12/2001 16:54:56]

Appendix A - Instruction Set

A.26 Increment f, skip if=0

http://www.mikroelektronika.co.yu/english/books/A_Dodatak.htm (24 of 30) [30/12/2001 16:54:56]

Appendix A - Instruction Set

A.27 Decrement f, skip if = 0

http://www.mikroelektronika.co.yu/english/books/A_Dodatak.htm (25 of 30) [30/12/2001 16:54:56]

Appendix A - Instruction Set

A.28 Jump to address

http://www.mikroelektronika.co.yu/english/books/A_Dodatak.htm (26 of 30) [30/12/2001 16:54:56]

Appendix A - Instruction Set

A.29 Call a program

A.30 Return from a subprogram

A.31 Return from a subprogram with constant in W

http://www.mikroelektronika.co.yu/english/books/A_Dodatak.htm (27 of 30) [30/12/2001 16:54:56]

Appendix A - Instruction Set

A.32 Return from interrupt routine

A.33 No operation

http://www.mikroelektronika.co.yu/english/books/A_Dodatak.htm (28 of 30) [30/12/2001 16:54:56]

Appendix A - Instruction Set

A.34 Initialize watchdog timer

A.35 Stand by mode

http://www.mikroelektronika.co.yu/english/books/A_Dodatak.htm (29 of 30) [30/12/2001 16:54:56]

Appendix A - Instruction Set

© Copyright 1999. mikroElektronika. All Rights Reserved. For any comments contact webmaster.

http://www.mikroelektronika.co.yu/english/books/A_Dodatak.htm (30 of 30) [30/12/2001 16:54:56]