67% found this document useful (3 votes)
3K views13 pages

Instruction Set of 8051

The 8051 microcontroller instruction set is divided into 5 groups: data transfer instructions like MOV and POP; arithmetic instructions like ADD and INC; logical instructions like ANL and XRL; boolean or bit manipulation instructions like SETB and JBC; and program branching instructions like LJMP and RET to control program flow. Each group contains multiple mnemonics to perform various operations on data registers and memory. Details on addressing modes, machine cycles, and supported mnemonics are provided in tables for each instruction group.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
67% found this document useful (3 votes)
3K views13 pages

Instruction Set of 8051

The 8051 microcontroller instruction set is divided into 5 groups: data transfer instructions like MOV and POP; arithmetic instructions like ADD and INC; logical instructions like ANL and XRL; boolean or bit manipulation instructions like SETB and JBC; and program branching instructions like LJMP and RET to control program flow. Each group contains multiple mnemonics to perform various operations on data registers and memory. Details on addressing modes, machine cycles, and supported mnemonics are provided in tables for each instruction group.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 13

INSTRUCTION SET OF 8051

• Based on the operation they perform, all the


instructions in the 8051 Microcontroller Instruction
Set are divided into five groups. They are:

• Data Transfer Instructions


• Arithmetic Instructions
• Logical Instructions
• Boolean or Bit Manipulation Instructions
• Program Branching Instructions
Data Transfer Instructions

• The Data Transfer Instructions are associated with transfer with data
between registers or external program memory or external data
memory. The Mnemonics associated with Data Transfer are given
below.

• MOV
• MOVC
• MOVX
• PUSH
• POP
• XCH
• XCHD
• The following table lists out all the possible
data transfer instruction along with other
details like addressing mode, size occupied
and number machine cycles it takes.
Arithmetic Instructions

• Using Arithmetic Instructions, you can perform addition, subtraction, multiplication and
division. The arithmetic instructions also include increment by one, decrement by one and
a special instruction called Decimal Adjust Accumulator.

• The Mnemonics associated with the Arithmetic Instructions of the 8051 Microcontroller
Instruction Set are:

• ADD
• ADDC
• SUBB
• INC
• DEC
• MUL
• DIV
• DA A
• All the possible Mnemonics associated with
Arithmetic Instructions are mentioned in the
following table.
Logical Instructions

• The next group of instructions are the Logical Instructions, which perform logical operations like
AND, OR, XOR, NOT, Rotate, Clear and Swap. Logical Instruction are performed on Bytes of data
on a bit-by-bit basis.

• Mnemonics associated with Logical Instructions are as follows:

• ANL
• ORL
• XRL
• CLR
• CPL
• RL
• RLC
• RR
• RRC
• SWAP
Boolean or Bit Manipulation Instructions

• As the name suggests, Boolean or Bit Manipulation Instructions will deal with bit variables. We know
that there is a special bit-addressable area in the RAM and some of the Special Function Registers
(SFRs) are also bit addressable.

• The Mnemonics corresponding to the Boolean or Bit Manipulation instructions are:

• CLR
• SETB
• MOV
• JC
• JNC
• JB
• JNB
• JBC
• ANL
• ORL
• CPL
Program Branching Instructions

• Program Branching Instructions


• The last group of instructions in the 8051 Microcontroller Instruction Set are the Program Branching
Instructions. These instructions control the flow of program logic. The mnemonics of the Program Branching
Instructions are as follows.

• LJMP
• AJMP
• SJMP
• JZ
• JNZ
• CJNE
• DJNZ
• NOP
• LCALL
• ACALL
• RET
• RETI
• JMP

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