Professional Documents
Culture Documents
Latha N
16/09/2020
CONTENTS- FEATURES OF 8051
UNIT – 2 Total duration = 9 Hours teaching +2 Hours discussion
Unit Objective:
Lecture Discussion
Lecture Explain the basics of Instruction sets in 8051 and Addressing modes
Objective
Lecture
Outline the basics of Instruction sets and Addressing modes of 8051
Outcome
FEATURES OF 8051
The 8051 Microcontroller instruction set can have up to 28 = 256 Instructions
FEATURES OF 8051
Instruction Set and these 49 Mnemonics are divided into five groups
FEATURES OF 8051
Data transfer instructions
Arithmetic instructions
Instruction set of
Logical instructions
8051
Boolean instructions
Instruction set of
8051
FEATURES OF 8051
Register –
Immediate Register Direct Indexed
Indirect
Addressing Addressing Addressing Addressing
Addressing
FEATURES OF 8051
In this Immediate Addressing Mode, the data is provided in the instruction itself
One of the eight registers (R0 – R7) is specified as Operand in the Instruction
Important to select the appropriate Bank with the help of PSW Register
FEATURES OF 8051
MOV R2, #45H; Register R2 is the destination #45H is the immediate data
The source or destination address is specified by using 8-bit data in the instruction
The source memory can only be accessed from program memory only
MOVC A, @A+PC; Suppose A holds 30H PC value is1125H The contents of program
memory location 1155H
(30H + 1125H) are
moved to register A.