0% found this document useful (0 votes)
16 views

Instructions

The document describes 35 instructions for a microcontroller including arithmetic, logic, bitwise, and flow control instructions such as ADDWF, ANDWF, COMF, GOTO, MOVF, RETFIE, SLEEP, XORWF, BCF, CPFSG, MOVLB, RETLW, SUBWF.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views

Instructions

The document describes 35 instructions for a microcontroller including arithmetic, logic, bitwise, and flow control instructions such as ADDWF, ANDWF, COMF, GOTO, MOVF, RETFIE, SLEEP, XORWF, BCF, CPFSG, MOVLB, RETLW, SUBWF.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Instruction Description

1/ ADDWF Add W register to f register

2/ ANDWF AND W register with f register

3/ COMF Complement W register

4/ DECF Decrement f register

5/DECFSZ Decrement f register and skip if zero

6/ GOTO Jump to a specific address

7/ INCF Increment f register

8/ INCFSZ Increment f register and skip if zero

Move data from f register to W


9/ MOVF
register

Move data from W register to f


10/MOVWF
register

11/ NOP No operation

Return from subroutine and enable


12/ RETFIE
interrupts

13/RETURN Return from subroutine

14/ RLF Rotate W register left

15/ RRF Rotate W register right

16/ SLEEP Enter sleep mode


17/ SWAP Swap nibbles in W register

18/ TRIS Set tri-state register

19/ XORWF XOR W register with f register

20/ BCF Clear bit f

21/ BSF Set bit f

22/CALL Call subroutine

23/CLRW Clear W register

24/ CLRZ Clear Z register

Compare W register with f register and skip if greater than or


25/CPFSG
signed equal to

Compare W register with f register and skip if less than or signed


26/CPFSSZ
greater than

27/LSF Shift W register left

28/MOVLB Move byte literal to B register

29/OPTION Set option register

30/RETLW Return from subroutine and load W register with literal

31/RRB Rotate W register right through the carry bit

32/SETF Set bit f


33/SUBWF Subtract f register from W register

34/TESTWF Test bits in W register

35 / SWAPF Swap nibbles in W register

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy