Types of Instructions for the 8051 Microcontroller
Computer Sciences and Information Technology

Types of Instructions for the 8051 Microcontroller
The 8051 Microcontroller has the following types of instructions; data transfer instructions, arithmetic instructions, logical instructions, program branching instructions and bit manipulation instructions (Ravi et al, 2017). The instructions constitute the opcode. The instructions can be opcode or two-byte instructions.
Data transfer instructions are utilized in the transfer of data between the memory, ports and registers (Ravi et al, 2017). The instructions are considered as data movement instructions or applications that allow the transfer of data from one location to another. It involves the transfer of data from internal RAM and SFR location without passing through the accumulator. The examples of data transfer instructions include the MOV destination, source, XCHD, XCH, PUSH and POP.
The arithmetic instructions of the 8051 Microcontroller perform the arithmetic instructions such as subtraction, multiplication, division and addition. The advanced arithmetic instructions involve operations such as increment, decrement and adjustment of decimal operations. The examples of the arithmetic instructions include ADD A, byte, DAA, DEC byte, INC byte, DIV AB and MUL AB.
The logical instructions perform logical instructions between the destination byte and the source byte. The logical instructions perform Boolean operations such as OR, XOR, and NOT. The examples of logical instructions include; ANL destination-origin, ORL destination-origin, and XRL destination-origin.
On the other hand, the bit manipulation instructions are employed in the manipulation of the values of the specified bit. The instructions reset, set or complement the value of the destination bit. The examples of the bit manipulations instructions are CLR bit, SETB bit, and CPL bit.
The program branching instructions control the flow of program execution. Some of the instructions are also used in providing decision-making capabilities before the process of transfer of control to other parts of the program. Examples include LJMP, AJMP, JZ and JNZ among others.

Reference
Ravi, Manisha, Manisha, John, John, Srivastava, D., … Will. (2017, December 25). 8051 Microcontroller Instruction Set Addressing Modes. Retrieved January 21, 2020, from https://www.electronicshub.org/8051-microcontroller-instruction-set/

Published by
Essays
View all posts