SlideShare una empresa de Scribd logo
1 de 18
Descargar para leer sin conexión
8051 Addressing Modes
8051 Addressing Modes
1. Immediate Addressing Mode
2. Register Addressing Mode
3. Direct Addressing Mode
4. Indirect Addressing Mode
8051 Addressing Modes
1. Immediate Addressing Mode :
Data is immediately available in the instruction.
e.g.
ADD A, #77
; Adds 77 (decimal) to A and stores in A
ADD A, #4DH
; Adds 4D (hexadecimal) to A and stores in A
MOV DPTR, #1000H
; Moves 1000 (hexadecimal) to data pointer
8051 Addressing Modes
2. Register Addressing Mode :
This way of addressing accesses the bytes in the current
register bank. Data is available in the register specified
in the instruction. The register bank is decided by 2 bits
of Processor Status Word (PSW).
For example-
ADD A, R0
; Adds content of R0 to A and stores in A
8051 Addressing Modes
3. Direct Addressing Mode :
The address of the data is available in the
instruction.
e.g.
MOV A, 81H
; Moves contents of an address 81H to A
A[81H]
8051 Addressing Modes
4. Indirect Addressing Mode :
• The address of data is available in the R0 or R1
registers as specified in the instruction.
e.g. MOV A, @R0
;moves content of address pointed by R0 to A
• External Data Addressing: Pointer used for external
data addressing can be either R0/R1 (256 byte access)
or DPTR (64kbyte access).
e.g. MOVX A, @R0
; Moves content of 8-bit address pointed by R0 to A
MOVX A, @DPTR
; Moves content of 16-bit address pointed by DPTR to A
8051 Addressing Modes
4. Indirect Addressing Mode :
• External Code Addressing : Sometimes we may
want to store non-volatile data into the ROM
e.g. look-up tables. Such data may require
reading the code memory. This may be done as
follows –
MOVC A, @A+DPTR
;Moves content of addr. pointed by A+DPTR to A
MOVC A, @A+PC
; Moves content of address pointed by A+PC to A
8051 Instruction Set
• 8051 has about 111 instructions. These can be
grouped into the following categories
1. Arithmetic Instructions
2. Logical Instructions
3. Data Transfer instructions
4. Boolean Variable Instructions
5. Program Branching Instructions
1. Data Transfer instructions
1. Data Transfer instructions (Continued..)
1. Data Transfer instructions (Continued..)
2. Arithmetic instructions
2. Arithmetic instructions (Continued..)
3. Logical instructions
3. Logical instructions (Continued..)
4. Boolean Variable instructions
5. Program Branching Instruction
5. Program Branching Instruction (Continued..)

Más contenido relacionado

La actualidad más candente

8051 instruction set
8051 instruction set8051 instruction set
8051 instruction setStefan Oprea
 
Addressing mode of 8051
Addressing mode of 8051Addressing mode of 8051
Addressing mode of 8051Nitin Ahire
 
8051 addressing modes
8051 addressing modes8051 addressing modes
8051 addressing modessb108ec
 
Unit ii microcontrollers final
Unit ii microcontrollers finalUnit ii microcontrollers final
Unit ii microcontrollers finalSARITHA REDDY
 
8051 instruction set
8051 instruction set8051 instruction set
8051 instruction setprakash y
 
Addressing modes 8085
Addressing modes 8085Addressing modes 8085
Addressing modes 8085ShivamSood22
 
Addressing modes of 8085
Addressing modes of 8085Addressing modes of 8085
Addressing modes of 8085Gaurav Solanki
 
4. Instruction Set Of MP 8085.pptx
4. Instruction Set Of MP 8085.pptx4. Instruction Set Of MP 8085.pptx
4. Instruction Set Of MP 8085.pptxISMT College
 
Addressing mode & data transfer instruction of 8085
Addressing mode & data transfer instruction of 8085Addressing mode & data transfer instruction of 8085
Addressing mode & data transfer instruction of 8085Chinmayee samal
 
8085 instructions and addressing modes
8085 instructions and addressing modes8085 instructions and addressing modes
8085 instructions and addressing modesSuchismita Paul
 
Addressing modes of 8085 by Er. Swapnil V. Kaware
Addressing modes of 8085 by Er. Swapnil V. KawareAddressing modes of 8085 by Er. Swapnil V. Kaware
Addressing modes of 8085 by Er. Swapnil V. KawareProf. Swapnil V. Kaware
 
Assembly Language Programming Of 8085
Assembly Language Programming Of 8085Assembly Language Programming Of 8085
Assembly Language Programming Of 8085techbed
 
Instruction set 8085
Instruction set 8085Instruction set 8085
Instruction set 8085varun sukheja
 
Data transfer instruction set of 8085 micro processor
Data transfer instruction set of 8085 micro processorData transfer instruction set of 8085 micro processor
Data transfer instruction set of 8085 micro processorvishalgohel12195
 
Unit 5 assembly language programming
Unit 5   assembly language programmingUnit 5   assembly language programming
Unit 5 assembly language programmingKartik Sharma
 
Logical instruction of 8085
Logical instruction of 8085Logical instruction of 8085
Logical instruction of 8085vishalgohel12195
 

La actualidad más candente (20)

8051 instruction set
8051 instruction set8051 instruction set
8051 instruction set
 
Addressing mode of 8051
Addressing mode of 8051Addressing mode of 8051
Addressing mode of 8051
 
8051 addressing modes
8051 addressing modes8051 addressing modes
8051 addressing modes
 
8051 addressing
8051 addressing8051 addressing
8051 addressing
 
Unit ii microcontrollers final
Unit ii microcontrollers finalUnit ii microcontrollers final
Unit ii microcontrollers final
 
8051 instruction set
8051 instruction set8051 instruction set
8051 instruction set
 
Addressing modes 8085
Addressing modes 8085Addressing modes 8085
Addressing modes 8085
 
8051d
8051d8051d
8051d
 
Addressing modes of 8085
Addressing modes of 8085Addressing modes of 8085
Addressing modes of 8085
 
4. Instruction Set Of MP 8085.pptx
4. Instruction Set Of MP 8085.pptx4. Instruction Set Of MP 8085.pptx
4. Instruction Set Of MP 8085.pptx
 
Some advanced instructions of the 8085 microprocessors
Some advanced instructions of the 8085 microprocessorsSome advanced instructions of the 8085 microprocessors
Some advanced instructions of the 8085 microprocessors
 
Addressing mode & data transfer instruction of 8085
Addressing mode & data transfer instruction of 8085Addressing mode & data transfer instruction of 8085
Addressing mode & data transfer instruction of 8085
 
8085 instructions and addressing modes
8085 instructions and addressing modes8085 instructions and addressing modes
8085 instructions and addressing modes
 
Addressing modes of 8085 by Er. Swapnil V. Kaware
Addressing modes of 8085 by Er. Swapnil V. KawareAddressing modes of 8085 by Er. Swapnil V. Kaware
Addressing modes of 8085 by Er. Swapnil V. Kaware
 
Assembly Language Programming Of 8085
Assembly Language Programming Of 8085Assembly Language Programming Of 8085
Assembly Language Programming Of 8085
 
Instruction set 8085
Instruction set 8085Instruction set 8085
Instruction set 8085
 
Instruction.pdf
Instruction.pdfInstruction.pdf
Instruction.pdf
 
Data transfer instruction set of 8085 micro processor
Data transfer instruction set of 8085 micro processorData transfer instruction set of 8085 micro processor
Data transfer instruction set of 8085 micro processor
 
Unit 5 assembly language programming
Unit 5   assembly language programmingUnit 5   assembly language programming
Unit 5 assembly language programming
 
Logical instruction of 8085
Logical instruction of 8085Logical instruction of 8085
Logical instruction of 8085
 

Similar a 8051 addressing modes & instruction set

MICROCONTROLLERS-module2 (7).pptx
MICROCONTROLLERS-module2 (7).pptxMICROCONTROLLERS-module2 (7).pptx
MICROCONTROLLERS-module2 (7).pptxAmoghR3
 
432_17EC563_8051-microcontroller-moving-data_notes.pdf
432_17EC563_8051-microcontroller-moving-data_notes.pdf432_17EC563_8051-microcontroller-moving-data_notes.pdf
432_17EC563_8051-microcontroller-moving-data_notes.pdfShreeKrishnaTarai
 
microprocessor and microcontroller notes ppt
microprocessor and microcontroller notes pptmicroprocessor and microcontroller notes ppt
microprocessor and microcontroller notes pptmananjain543
 
8051 microcontroller
8051 microcontroller 8051 microcontroller
8051 microcontroller nitugatkal
 
Addressing Modes of 8051.pptx
Addressing Modes of 8051.pptxAddressing Modes of 8051.pptx
Addressing Modes of 8051.pptxTumkurInfomedia
 
Unit iv introduction to 8051 microcontroller ppts
Unit iv introduction to 8051 microcontroller pptsUnit iv introduction to 8051 microcontroller ppts
Unit iv introduction to 8051 microcontroller pptsSreenivas Hanumandla
 
Addressing mode
Addressing modeAddressing mode
Addressing modeilakkiya
 
3. Addressing Modes in 8085 microprocessor.pptx
3. Addressing Modes in 8085 microprocessor.pptx3. Addressing Modes in 8085 microprocessor.pptx
3. Addressing Modes in 8085 microprocessor.pptxISMT College
 
microcontroller_instruction_set for ENGINEERING STUDENTS
microcontroller_instruction_set for  ENGINEERING STUDENTSmicrocontroller_instruction_set for  ENGINEERING STUDENTS
microcontroller_instruction_set for ENGINEERING STUDENTSssuser2b759d
 
8085-instruction.ppt
8085-instruction.ppt8085-instruction.ppt
8085-instruction.pptSudeshnaDey22
 
Microcontroller 8051 addressing modes
Microcontroller 8051 addressing modes Microcontroller 8051 addressing modes
Microcontroller 8051 addressing modes UshaRani289
 

Similar a 8051 addressing modes & instruction set (20)

addressing-mode-of-8051.pdf
addressing-mode-of-8051.pdfaddressing-mode-of-8051.pdf
addressing-mode-of-8051.pdf
 
MICROCONTROLLERS-module2 (7).pptx
MICROCONTROLLERS-module2 (7).pptxMICROCONTROLLERS-module2 (7).pptx
MICROCONTROLLERS-module2 (7).pptx
 
432_17EC563_8051-microcontroller-moving-data_notes.pdf
432_17EC563_8051-microcontroller-moving-data_notes.pdf432_17EC563_8051-microcontroller-moving-data_notes.pdf
432_17EC563_8051-microcontroller-moving-data_notes.pdf
 
microprocessor and microcontroller notes ppt
microprocessor and microcontroller notes pptmicroprocessor and microcontroller notes ppt
microprocessor and microcontroller notes ppt
 
8051 instruction_set.ppt
8051 instruction_set.ppt8051 instruction_set.ppt
8051 instruction_set.ppt
 
Addressing modes
Addressing modesAddressing modes
Addressing modes
 
addressingmodes8051.ppt
addressingmodes8051.pptaddressingmodes8051.ppt
addressingmodes8051.ppt
 
8051 microcontroller
8051 microcontroller 8051 microcontroller
8051 microcontroller
 
Addressing Modes of 8051.pptx
Addressing Modes of 8051.pptxAddressing Modes of 8051.pptx
Addressing Modes of 8051.pptx
 
Unit iv introduction to 8051 microcontroller ppts
Unit iv introduction to 8051 microcontroller pptsUnit iv introduction to 8051 microcontroller ppts
Unit iv introduction to 8051 microcontroller ppts
 
Microcontroller .pptx
Microcontroller .pptxMicrocontroller .pptx
Microcontroller .pptx
 
Addressing mode
Addressing modeAddressing mode
Addressing mode
 
3. Addressing Modes in 8085 microprocessor.pptx
3. Addressing Modes in 8085 microprocessor.pptx3. Addressing Modes in 8085 microprocessor.pptx
3. Addressing Modes in 8085 microprocessor.pptx
 
instructions set of 8051.pdf
instructions set of 8051.pdfinstructions set of 8051.pdf
instructions set of 8051.pdf
 
13229286.ppt
13229286.ppt13229286.ppt
13229286.ppt
 
5 addressing modes
5 addressing modes5 addressing modes
5 addressing modes
 
microcontroller_instruction_set for ENGINEERING STUDENTS
microcontroller_instruction_set for  ENGINEERING STUDENTSmicrocontroller_instruction_set for  ENGINEERING STUDENTS
microcontroller_instruction_set for ENGINEERING STUDENTS
 
8085-instruction.ppt
8085-instruction.ppt8085-instruction.ppt
8085-instruction.ppt
 
module-3.pptx
module-3.pptxmodule-3.pptx
module-3.pptx
 
Microcontroller 8051 addressing modes
Microcontroller 8051 addressing modes Microcontroller 8051 addressing modes
Microcontroller 8051 addressing modes
 

Más de Manoj Babar

Exp 10 Waveform Generation using DAC0808 and 8085.pptx
Exp 10 Waveform Generation using DAC0808 and 8085.pptxExp 10 Waveform Generation using DAC0808 and 8085.pptx
Exp 10 Waveform Generation using DAC0808 and 8085.pptxManoj Babar
 
Exp 8 LED Blinking using 8255.pptx
Exp 8 LED Blinking using 8255.pptxExp 8 LED Blinking using 8255.pptx
Exp 8 LED Blinking using 8255.pptxManoj Babar
 
Exp 7 IO & BSR Mode.pptx
Exp 7 IO & BSR Mode.pptxExp 7 IO & BSR Mode.pptx
Exp 7 IO & BSR Mode.pptxManoj Babar
 
Exp 6 Largest & Smallest No..pptx
Exp 6 Largest & Smallest No..pptxExp 6 Largest & Smallest No..pptx
Exp 6 Largest & Smallest No..pptxManoj Babar
 
Exp 5 Even & Odd No. Counting.pptx
Exp 5 Even & Odd No. Counting.pptxExp 5 Even & Odd No. Counting.pptx
Exp 5 Even & Odd No. Counting.pptxManoj Babar
 
Exp 4 Data Conversion (H2B, B2A).pptx
Exp 4 Data Conversion (H2B, B2A).pptxExp 4 Data Conversion (H2B, B2A).pptx
Exp 4 Data Conversion (H2B, B2A).pptxManoj Babar
 
Exp 3 Block Transfer & Block Exchange.pptx
Exp 3 Block Transfer & Block Exchange.pptxExp 3 Block Transfer & Block Exchange.pptx
Exp 3 Block Transfer & Block Exchange.pptxManoj Babar
 
Addition & subtraction using 8085 microprocessor
Addition & subtraction using 8085 microprocessorAddition & subtraction using 8085 microprocessor
Addition & subtraction using 8085 microprocessorManoj Babar
 
8255 mode 1 & 2
8255 mode 1 & 28255 mode 1 & 2
8255 mode 1 & 2Manoj Babar
 

Más de Manoj Babar (9)

Exp 10 Waveform Generation using DAC0808 and 8085.pptx
Exp 10 Waveform Generation using DAC0808 and 8085.pptxExp 10 Waveform Generation using DAC0808 and 8085.pptx
Exp 10 Waveform Generation using DAC0808 and 8085.pptx
 
Exp 8 LED Blinking using 8255.pptx
Exp 8 LED Blinking using 8255.pptxExp 8 LED Blinking using 8255.pptx
Exp 8 LED Blinking using 8255.pptx
 
Exp 7 IO & BSR Mode.pptx
Exp 7 IO & BSR Mode.pptxExp 7 IO & BSR Mode.pptx
Exp 7 IO & BSR Mode.pptx
 
Exp 6 Largest & Smallest No..pptx
Exp 6 Largest & Smallest No..pptxExp 6 Largest & Smallest No..pptx
Exp 6 Largest & Smallest No..pptx
 
Exp 5 Even & Odd No. Counting.pptx
Exp 5 Even & Odd No. Counting.pptxExp 5 Even & Odd No. Counting.pptx
Exp 5 Even & Odd No. Counting.pptx
 
Exp 4 Data Conversion (H2B, B2A).pptx
Exp 4 Data Conversion (H2B, B2A).pptxExp 4 Data Conversion (H2B, B2A).pptx
Exp 4 Data Conversion (H2B, B2A).pptx
 
Exp 3 Block Transfer & Block Exchange.pptx
Exp 3 Block Transfer & Block Exchange.pptxExp 3 Block Transfer & Block Exchange.pptx
Exp 3 Block Transfer & Block Exchange.pptx
 
Addition & subtraction using 8085 microprocessor
Addition & subtraction using 8085 microprocessorAddition & subtraction using 8085 microprocessor
Addition & subtraction using 8085 microprocessor
 
8255 mode 1 & 2
8255 mode 1 & 28255 mode 1 & 2
8255 mode 1 & 2
 

Último

2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.
2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.
2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.elesangwon
 
Uk-NO1 Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Exp...
Uk-NO1 Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Exp...Uk-NO1 Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Exp...
Uk-NO1 Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Exp...Amil baba
 
SOFTWARE ESTIMATION COCOMO AND FP CALCULATION
SOFTWARE ESTIMATION COCOMO AND FP CALCULATIONSOFTWARE ESTIMATION COCOMO AND FP CALCULATION
SOFTWARE ESTIMATION COCOMO AND FP CALCULATIONSneha Padhiar
 
Gravity concentration_MI20612MI_________
Gravity concentration_MI20612MI_________Gravity concentration_MI20612MI_________
Gravity concentration_MI20612MI_________Romil Mishra
 
FUNCTIONAL AND NON FUNCTIONAL REQUIREMENT
FUNCTIONAL AND NON FUNCTIONAL REQUIREMENTFUNCTIONAL AND NON FUNCTIONAL REQUIREMENT
FUNCTIONAL AND NON FUNCTIONAL REQUIREMENTSneha Padhiar
 
AntColonyOptimizationManetNetworkAODV.pptx
AntColonyOptimizationManetNetworkAODV.pptxAntColonyOptimizationManetNetworkAODV.pptx
AntColonyOptimizationManetNetworkAODV.pptxLina Kadam
 
A brief look at visionOS - How to develop app on Apple's Vision Pro
A brief look at visionOS - How to develop app on Apple's Vision ProA brief look at visionOS - How to develop app on Apple's Vision Pro
A brief look at visionOS - How to develop app on Apple's Vision ProRay Yuan Liu
 
Artificial Intelligence in Power System overview
Artificial Intelligence in Power System overviewArtificial Intelligence in Power System overview
Artificial Intelligence in Power System overviewsandhya757531
 
Secure Key Crypto - Tech Paper JET Tech Labs
Secure Key Crypto - Tech Paper JET Tech LabsSecure Key Crypto - Tech Paper JET Tech Labs
Secure Key Crypto - Tech Paper JET Tech Labsamber724300
 
Robotics Group 10 (Control Schemes) cse.pdf
Robotics Group 10  (Control Schemes) cse.pdfRobotics Group 10  (Control Schemes) cse.pdf
Robotics Group 10 (Control Schemes) cse.pdfsahilsajad201
 
Uk-NO1 kala jadu karne wale ka contact number kala jadu karne wale baba kala ...
Uk-NO1 kala jadu karne wale ka contact number kala jadu karne wale baba kala ...Uk-NO1 kala jadu karne wale ka contact number kala jadu karne wale baba kala ...
Uk-NO1 kala jadu karne wale ka contact number kala jadu karne wale baba kala ...Amil baba
 
Novel 3D-Printed Soft Linear and Bending Actuators
Novel 3D-Printed Soft Linear and Bending ActuatorsNovel 3D-Printed Soft Linear and Bending Actuators
Novel 3D-Printed Soft Linear and Bending ActuatorsResearcher Researcher
 
Cost estimation approach: FP to COCOMO scenario based question
Cost estimation approach: FP to COCOMO scenario based questionCost estimation approach: FP to COCOMO scenario based question
Cost estimation approach: FP to COCOMO scenario based questionSneha Padhiar
 
Theory of Machine Notes / Lecture Material .pdf
Theory of Machine Notes / Lecture Material .pdfTheory of Machine Notes / Lecture Material .pdf
Theory of Machine Notes / Lecture Material .pdfShreyas Pandit
 
Structural Integrity Assessment Standards in Nigeria by Engr Nimot Muili
Structural Integrity Assessment Standards in Nigeria by Engr Nimot MuiliStructural Integrity Assessment Standards in Nigeria by Engr Nimot Muili
Structural Integrity Assessment Standards in Nigeria by Engr Nimot MuiliNimot Muili
 
KCD Costa Rica 2024 - Nephio para parvulitos
KCD Costa Rica 2024 - Nephio para parvulitosKCD Costa Rica 2024 - Nephio para parvulitos
KCD Costa Rica 2024 - Nephio para parvulitosVictor Morales
 
Module-1-Building Acoustics(Introduction)(Unit-1).pdf
Module-1-Building Acoustics(Introduction)(Unit-1).pdfModule-1-Building Acoustics(Introduction)(Unit-1).pdf
Module-1-Building Acoustics(Introduction)(Unit-1).pdfManish Kumar
 
Analysis and Evaluation of Dal Lake Biomass for Conversion to Fuel/Green fert...
Analysis and Evaluation of Dal Lake Biomass for Conversion to Fuel/Green fert...Analysis and Evaluation of Dal Lake Biomass for Conversion to Fuel/Green fert...
Analysis and Evaluation of Dal Lake Biomass for Conversion to Fuel/Green fert...arifengg7
 

Último (20)

2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.
2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.
2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.
 
Uk-NO1 Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Exp...
Uk-NO1 Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Exp...Uk-NO1 Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Exp...
Uk-NO1 Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Exp...
 
SOFTWARE ESTIMATION COCOMO AND FP CALCULATION
SOFTWARE ESTIMATION COCOMO AND FP CALCULATIONSOFTWARE ESTIMATION COCOMO AND FP CALCULATION
SOFTWARE ESTIMATION COCOMO AND FP CALCULATION
 
Gravity concentration_MI20612MI_________
Gravity concentration_MI20612MI_________Gravity concentration_MI20612MI_________
Gravity concentration_MI20612MI_________
 
FUNCTIONAL AND NON FUNCTIONAL REQUIREMENT
FUNCTIONAL AND NON FUNCTIONAL REQUIREMENTFUNCTIONAL AND NON FUNCTIONAL REQUIREMENT
FUNCTIONAL AND NON FUNCTIONAL REQUIREMENT
 
Versatile Engineering Construction Firms
Versatile Engineering Construction FirmsVersatile Engineering Construction Firms
Versatile Engineering Construction Firms
 
AntColonyOptimizationManetNetworkAODV.pptx
AntColonyOptimizationManetNetworkAODV.pptxAntColonyOptimizationManetNetworkAODV.pptx
AntColonyOptimizationManetNetworkAODV.pptx
 
A brief look at visionOS - How to develop app on Apple's Vision Pro
A brief look at visionOS - How to develop app on Apple's Vision ProA brief look at visionOS - How to develop app on Apple's Vision Pro
A brief look at visionOS - How to develop app on Apple's Vision Pro
 
Designing pile caps according to ACI 318-19.pptx
Designing pile caps according to ACI 318-19.pptxDesigning pile caps according to ACI 318-19.pptx
Designing pile caps according to ACI 318-19.pptx
 
Artificial Intelligence in Power System overview
Artificial Intelligence in Power System overviewArtificial Intelligence in Power System overview
Artificial Intelligence in Power System overview
 
Secure Key Crypto - Tech Paper JET Tech Labs
Secure Key Crypto - Tech Paper JET Tech LabsSecure Key Crypto - Tech Paper JET Tech Labs
Secure Key Crypto - Tech Paper JET Tech Labs
 
Robotics Group 10 (Control Schemes) cse.pdf
Robotics Group 10  (Control Schemes) cse.pdfRobotics Group 10  (Control Schemes) cse.pdf
Robotics Group 10 (Control Schemes) cse.pdf
 
Uk-NO1 kala jadu karne wale ka contact number kala jadu karne wale baba kala ...
Uk-NO1 kala jadu karne wale ka contact number kala jadu karne wale baba kala ...Uk-NO1 kala jadu karne wale ka contact number kala jadu karne wale baba kala ...
Uk-NO1 kala jadu karne wale ka contact number kala jadu karne wale baba kala ...
 
Novel 3D-Printed Soft Linear and Bending Actuators
Novel 3D-Printed Soft Linear and Bending ActuatorsNovel 3D-Printed Soft Linear and Bending Actuators
Novel 3D-Printed Soft Linear and Bending Actuators
 
Cost estimation approach: FP to COCOMO scenario based question
Cost estimation approach: FP to COCOMO scenario based questionCost estimation approach: FP to COCOMO scenario based question
Cost estimation approach: FP to COCOMO scenario based question
 
Theory of Machine Notes / Lecture Material .pdf
Theory of Machine Notes / Lecture Material .pdfTheory of Machine Notes / Lecture Material .pdf
Theory of Machine Notes / Lecture Material .pdf
 
Structural Integrity Assessment Standards in Nigeria by Engr Nimot Muili
Structural Integrity Assessment Standards in Nigeria by Engr Nimot MuiliStructural Integrity Assessment Standards in Nigeria by Engr Nimot Muili
Structural Integrity Assessment Standards in Nigeria by Engr Nimot Muili
 
KCD Costa Rica 2024 - Nephio para parvulitos
KCD Costa Rica 2024 - Nephio para parvulitosKCD Costa Rica 2024 - Nephio para parvulitos
KCD Costa Rica 2024 - Nephio para parvulitos
 
Module-1-Building Acoustics(Introduction)(Unit-1).pdf
Module-1-Building Acoustics(Introduction)(Unit-1).pdfModule-1-Building Acoustics(Introduction)(Unit-1).pdf
Module-1-Building Acoustics(Introduction)(Unit-1).pdf
 
Analysis and Evaluation of Dal Lake Biomass for Conversion to Fuel/Green fert...
Analysis and Evaluation of Dal Lake Biomass for Conversion to Fuel/Green fert...Analysis and Evaluation of Dal Lake Biomass for Conversion to Fuel/Green fert...
Analysis and Evaluation of Dal Lake Biomass for Conversion to Fuel/Green fert...
 

8051 addressing modes & instruction set

  • 2. 8051 Addressing Modes 1. Immediate Addressing Mode 2. Register Addressing Mode 3. Direct Addressing Mode 4. Indirect Addressing Mode
  • 3. 8051 Addressing Modes 1. Immediate Addressing Mode : Data is immediately available in the instruction. e.g. ADD A, #77 ; Adds 77 (decimal) to A and stores in A ADD A, #4DH ; Adds 4D (hexadecimal) to A and stores in A MOV DPTR, #1000H ; Moves 1000 (hexadecimal) to data pointer
  • 4. 8051 Addressing Modes 2. Register Addressing Mode : This way of addressing accesses the bytes in the current register bank. Data is available in the register specified in the instruction. The register bank is decided by 2 bits of Processor Status Word (PSW). For example- ADD A, R0 ; Adds content of R0 to A and stores in A
  • 5. 8051 Addressing Modes 3. Direct Addressing Mode : The address of the data is available in the instruction. e.g. MOV A, 81H ; Moves contents of an address 81H to A A[81H]
  • 6. 8051 Addressing Modes 4. Indirect Addressing Mode : • The address of data is available in the R0 or R1 registers as specified in the instruction. e.g. MOV A, @R0 ;moves content of address pointed by R0 to A • External Data Addressing: Pointer used for external data addressing can be either R0/R1 (256 byte access) or DPTR (64kbyte access). e.g. MOVX A, @R0 ; Moves content of 8-bit address pointed by R0 to A MOVX A, @DPTR ; Moves content of 16-bit address pointed by DPTR to A
  • 7. 8051 Addressing Modes 4. Indirect Addressing Mode : • External Code Addressing : Sometimes we may want to store non-volatile data into the ROM e.g. look-up tables. Such data may require reading the code memory. This may be done as follows – MOVC A, @A+DPTR ;Moves content of addr. pointed by A+DPTR to A MOVC A, @A+PC ; Moves content of address pointed by A+PC to A
  • 8. 8051 Instruction Set • 8051 has about 111 instructions. These can be grouped into the following categories 1. Arithmetic Instructions 2. Logical Instructions 3. Data Transfer instructions 4. Boolean Variable Instructions 5. Program Branching Instructions
  • 9. 1. Data Transfer instructions
  • 10. 1. Data Transfer instructions (Continued..)
  • 11. 1. Data Transfer instructions (Continued..)
  • 13. 2. Arithmetic instructions (Continued..)
  • 15. 3. Logical instructions (Continued..)
  • 16. 4. Boolean Variable instructions
  • 17. 5. Program Branching Instruction
  • 18. 5. Program Branching Instruction (Continued..)