Instruction set of 8051 Microcontrollers

3,423 views 21 slides Mar 24, 2024
Slide 1
Slide 1 of 21
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21

About This Presentation

8051 instruction set


Slide Content

Instruction Set of 8051 Sushil Karvekar Walchand College of Engineering Sangli

Special Function Registers 8051 has 21 Special Function Registers Address of SFRs : 80H to FFH Some SFRs are both bit addressable and byte addressable Eg : T0CON , T1CON, SMOD, etc

Instruction Set of 8051 MUL AB : Performs multiplication of contents in A and B registers Stores the 16 bit result in registers A(lower byte) and B(higher byte) DIV AB: Divides content of A by B Result=> Quotient in A and Remainder in B

Types of Instruction Sets Arithmetic Logical Data Transfer Boolean variable Program Branching

Arithmetic Intructions Execute in one machine cycle Except INC (Two Machine Cycles) MUL AB and DIV AB (4 machine cycles)

Notations Rn: One of the working registers R0 to R7 A : Accumulator @ Ri : Indirect Registers R0 or R1 Direct :8-bit address of RAM #data : immediate data Addr16 : 16-bit Address

Arithmetic Instructions

Logical Instructions

Bit Related Instructions

Data Copy Instructions

Jump Related Instructions