SlideShare a Scribd company logo
NAME:- Chauhan Sachin V.
EN.NO:- 170993109001
TOPIC :- Instruction Set Of 8051 (Microcontroller)
GUIDE:- Mr. Krunal Shah (DEE Ass.professor)
CONTENT
• TypesOf Instructions
 Data Transfer Instructions.
 Arithmetic Instructions
 Logical Instructions
 BranchingAnd Machine Control Instruction
Data Transfer Instruction
Data transfer instructions are used to transfer the data between
registers, memory, and ports. Thisis akind of data movement
instruction,application of which performs movement of data from
one location to other locations.
Examples:
• MOVdestination, source.
• MOV A, Rn
This Instruction Used To Move Any Data Of Register Bank
To Accumulator.
• MOV A, @Ri
This Instruction Used To Move Data From Any Particular
Register To Accumulator.
• MOV A, #Data
This Instruction Used To Move Direct Value To
Accumulator.
• XCH A, Rn
This Instruction Used To Exchange Data Between
Register Bank And Accumulator.
Arithmetic Instruction
Arithmetic instructions of8051 Microcontroller performs
arithmetic operations like addition, subtraction,
multiplication, and division.
Advanced features of this set of instruction range to increment,
decrement and adjust decimaloperations.
Examples:
• ADDA, Rn
this instruction used to addition of data between register bank
and accumulator. And result will save on accumulator.
• SUBA,#40H
this instruction used to subtract direct data 40H from
accumulator.And result will save on accumulator.
• INC A
this instruction used to increment data of accumulator by 1.
• DEC Rn
this instruction used to decrement data of register bank by
1.
• MUL AB
this instruction used to multiply A and B.
• DIV AB
this instruction used to division of A by B.
LOGICAL INSTRUCTION
Theinstruction performs logical operation between the
source byte and destination byte.
Example:
• ANL A,Rn
thisinstructionusedtoapplyingANDgatelogicregisterbank
andaccumulator.Andresultwillsaveinaccumulator.
• ORL A,#51H
thisinstructionusedtoapplyORgatelogictodirectdata51H
andaccumulator.
• CLR A
This instruction used to clear accumulator.
 CPL A
this instruction used to make complement of accumulator.
 RL A
this instruction used to rotate accumulator on left side.
 RR A
this instruction used to rotate accumulator on right side.
 RRC A
this instruction used to rotate accumulator right side with
carry.
 SWAP A
this instruction used to swap data.
[ D7 D6 D5 D4 D3 D2 D1 D0 ]
[ D3 D2 D1 D0 D7 D6 D5 D4 ]
Branching And Machine Control
Instruction
• A CALL ADD
this instruction un-conditionally calls a sub- routine at the
indicated to address at the end of sub- routine the program
will resume operation at the opcode address following the call
instruction.
• RET
when this instruction is educated, it informs the
microcontroller to return back to the program, from where
subroutine was called.
• RET I
this instruction informs the microcontroller that it is
returning from an ISR routine.
Conditional Jump
MAMI_170993109001

More Related Content

What's hot

Microcontroller 8051 introduction
Microcontroller 8051 introductionMicrocontroller 8051 introduction
Microcontroller 8051 introduction
Engr umar
 
DSD-INT 2014 - Symposium Next Generation Hydro Software (NGHS) - Dutch spatia...
DSD-INT 2014 - Symposium Next Generation Hydro Software (NGHS) - Dutch spatia...DSD-INT 2014 - Symposium Next Generation Hydro Software (NGHS) - Dutch spatia...
DSD-INT 2014 - Symposium Next Generation Hydro Software (NGHS) - Dutch spatia...
Deltares
 
Register
RegisterRegister
Register
AL IMRAN
 
Optimized declarative transformation First Eclipse QVTc results
Optimized declarative transformation First Eclipse QVTc resultsOptimized declarative transformation First Eclipse QVTc results
Optimized declarative transformation First Eclipse QVTc results
Edward Willink
 
Lecture 10
Lecture 10Lecture 10
Lecture 10
RahulRathi94
 
Shift Microoperations by Pir Sarfraz RSDT larkana
Shift Microoperations by Pir Sarfraz RSDT larkanaShift Microoperations by Pir Sarfraz RSDT larkana
Shift Microoperations by Pir Sarfraz RSDT larkana
Pir Sarfraz Ahmed
 
5. 8085 instruction set ii
5. 8085 instruction set ii5. 8085 instruction set ii
5. 8085 instruction set ii
sandip das
 
Pregel and giraph
Pregel and giraphPregel and giraph
Pregel and giraph
Cao Manh Dat
 
LR(0) PARSER
LR(0) PARSERLR(0) PARSER
My_Speadsheet_Design_Approach
My_Speadsheet_Design_ApproachMy_Speadsheet_Design_Approach
My_Speadsheet_Design_Approach
Phil Orth
 
Lect4 organization
Lect4 organizationLect4 organization
Lect4 organization
Maher Alshammari
 
Measuring Countries and IXPs with RIPE Atlas
Measuring Countries and IXPs with RIPE AtlasMeasuring Countries and IXPs with RIPE Atlas
Measuring Countries and IXPs with RIPE Atlas
RIPE NCC
 
טיול ברומא עם R וcluster analysis
טיול ברומא עם R וcluster analysisטיול ברומא עם R וcluster analysis
טיול ברומא עם R וcluster analysis
Eliav Schmulewitz
 

What's hot (13)

Microcontroller 8051 introduction
Microcontroller 8051 introductionMicrocontroller 8051 introduction
Microcontroller 8051 introduction
 
DSD-INT 2014 - Symposium Next Generation Hydro Software (NGHS) - Dutch spatia...
DSD-INT 2014 - Symposium Next Generation Hydro Software (NGHS) - Dutch spatia...DSD-INT 2014 - Symposium Next Generation Hydro Software (NGHS) - Dutch spatia...
DSD-INT 2014 - Symposium Next Generation Hydro Software (NGHS) - Dutch spatia...
 
Register
RegisterRegister
Register
 
Optimized declarative transformation First Eclipse QVTc results
Optimized declarative transformation First Eclipse QVTc resultsOptimized declarative transformation First Eclipse QVTc results
Optimized declarative transformation First Eclipse QVTc results
 
Lecture 10
Lecture 10Lecture 10
Lecture 10
 
Shift Microoperations by Pir Sarfraz RSDT larkana
Shift Microoperations by Pir Sarfraz RSDT larkanaShift Microoperations by Pir Sarfraz RSDT larkana
Shift Microoperations by Pir Sarfraz RSDT larkana
 
5. 8085 instruction set ii
5. 8085 instruction set ii5. 8085 instruction set ii
5. 8085 instruction set ii
 
Pregel and giraph
Pregel and giraphPregel and giraph
Pregel and giraph
 
LR(0) PARSER
LR(0) PARSERLR(0) PARSER
LR(0) PARSER
 
My_Speadsheet_Design_Approach
My_Speadsheet_Design_ApproachMy_Speadsheet_Design_Approach
My_Speadsheet_Design_Approach
 
Lect4 organization
Lect4 organizationLect4 organization
Lect4 organization
 
Measuring Countries and IXPs with RIPE Atlas
Measuring Countries and IXPs with RIPE AtlasMeasuring Countries and IXPs with RIPE Atlas
Measuring Countries and IXPs with RIPE Atlas
 
טיול ברומא עם R וcluster analysis
טיול ברומא עם R וcluster analysisטיול ברומא עם R וcluster analysis
טיול ברומא עם R וcluster analysis
 

Similar to MAMI_170993109001

Instruction set
Instruction setInstruction set
Instruction set
Mayank Bhatt
 
Instruction Set of 8051 Microcontroller
Instruction Set of 8051 MicrocontrollerInstruction Set of 8051 Microcontroller
Instruction Set of 8051 Microcontroller
Multisoft Virtual Academy
 
Uc 2(vii)
Uc 2(vii)Uc 2(vii)
Uc 2(vii)
Ankita Jaiswal
 
Unit ii microcontrollers final
Unit ii microcontrollers finalUnit ii microcontrollers final
Unit ii microcontrollers final
SARITHA REDDY
 
MES_MODULE 2.pptx
MES_MODULE 2.pptxMES_MODULE 2.pptx
MES_MODULE 2.pptx
Shivakumar M
 
5th unit Microprocessor 8085
5th unit Microprocessor 80855th unit Microprocessor 8085
5th unit Microprocessor 8085
Mani Afranzio
 
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
Chinmayee samal
 
Microprocessors-based systems (under graduate course) Lecture 4 of 9
Microprocessors-based systems (under graduate course) Lecture 4 of 9 Microprocessors-based systems (under graduate course) Lecture 4 of 9
Microprocessors-based systems (under graduate course) Lecture 4 of 9
Randa Elanwar
 
microprocessor ppt (branching and logical instructions)
microprocessor ppt (branching and logical instructions)microprocessor ppt (branching and logical instructions)
microprocessor ppt (branching and logical instructions)
Nemish Bhojani
 
Microprocessors-based systems (under graduate course) Lecture 6 of 9
Microprocessors-based systems (under graduate course) Lecture 6 of 9 Microprocessors-based systems (under graduate course) Lecture 6 of 9
Microprocessors-based systems (under graduate course) Lecture 6 of 9
Randa Elanwar
 
8051 instruction set
8051 instruction set8051 instruction set
8051 instruction set
prakash y
 
13229286.ppt
13229286.ppt13229286.ppt
13229286.ppt
DrRajalakshmiM
 
instructions set of 8051.pdf
instructions set of 8051.pdfinstructions set of 8051.pdf
instructions set of 8051.pdf
DhilibanSwaminathan
 
Data transfer and manipulation
Data transfer and  manipulationData transfer and  manipulation
Data transfer and manipulation
PreethaPreetha5
 
8085 instructions and addressing modes
8085 instructions and addressing modes8085 instructions and addressing modes
8085 instructions and addressing modes
Suchismita Paul
 
8086 instruction set
8086 instruction set8086 instruction set
8086 instruction set
Sazzad Hossain
 
Lect08
Lect08Lect08
unit5_8051_microcontroller presentation.pdf
unit5_8051_microcontroller presentation.pdfunit5_8051_microcontroller presentation.pdf
unit5_8051_microcontroller presentation.pdf
tchandoo1
 
Data transfer and manipulation
Data transfer and manipulationData transfer and manipulation
Data transfer and manipulation
Sanjeev Patel
 
8051d
8051d8051d

Similar to MAMI_170993109001 (20)

Instruction set
Instruction setInstruction set
Instruction set
 
Instruction Set of 8051 Microcontroller
Instruction Set of 8051 MicrocontrollerInstruction Set of 8051 Microcontroller
Instruction Set of 8051 Microcontroller
 
Uc 2(vii)
Uc 2(vii)Uc 2(vii)
Uc 2(vii)
 
Unit ii microcontrollers final
Unit ii microcontrollers finalUnit ii microcontrollers final
Unit ii microcontrollers final
 
MES_MODULE 2.pptx
MES_MODULE 2.pptxMES_MODULE 2.pptx
MES_MODULE 2.pptx
 
5th unit Microprocessor 8085
5th unit Microprocessor 80855th unit Microprocessor 8085
5th unit Microprocessor 8085
 
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
 
Microprocessors-based systems (under graduate course) Lecture 4 of 9
Microprocessors-based systems (under graduate course) Lecture 4 of 9 Microprocessors-based systems (under graduate course) Lecture 4 of 9
Microprocessors-based systems (under graduate course) Lecture 4 of 9
 
microprocessor ppt (branching and logical instructions)
microprocessor ppt (branching and logical instructions)microprocessor ppt (branching and logical instructions)
microprocessor ppt (branching and logical instructions)
 
Microprocessors-based systems (under graduate course) Lecture 6 of 9
Microprocessors-based systems (under graduate course) Lecture 6 of 9 Microprocessors-based systems (under graduate course) Lecture 6 of 9
Microprocessors-based systems (under graduate course) Lecture 6 of 9
 
8051 instruction set
8051 instruction set8051 instruction set
8051 instruction set
 
13229286.ppt
13229286.ppt13229286.ppt
13229286.ppt
 
instructions set of 8051.pdf
instructions set of 8051.pdfinstructions set of 8051.pdf
instructions set of 8051.pdf
 
Data transfer and manipulation
Data transfer and  manipulationData transfer and  manipulation
Data transfer and manipulation
 
8085 instructions and addressing modes
8085 instructions and addressing modes8085 instructions and addressing modes
8085 instructions and addressing modes
 
8086 instruction set
8086 instruction set8086 instruction set
8086 instruction set
 
Lect08
Lect08Lect08
Lect08
 
unit5_8051_microcontroller presentation.pdf
unit5_8051_microcontroller presentation.pdfunit5_8051_microcontroller presentation.pdf
unit5_8051_microcontroller presentation.pdf
 
Data transfer and manipulation
Data transfer and manipulationData transfer and manipulation
Data transfer and manipulation
 
8051d
8051d8051d
8051d
 

More from SACHIN CHAUHAN

SGP_170993109001
SGP_170993109001SGP_170993109001
SGP_170993109001
SACHIN CHAUHAN
 
INDUSTRIAL INSTRUMENTATION_170993109001
INDUSTRIAL INSTRUMENTATION_170993109001INDUSTRIAL INSTRUMENTATION_170993109001
INDUSTRIAL INSTRUMENTATION_170993109001
SACHIN CHAUHAN
 
ICPS_170993109001
ICPS_170993109001ICPS_170993109001
ICPS_170993109001
SACHIN CHAUHAN
 
DACM_170993109001
DACM_170993109001DACM_170993109001
DACM_170993109001
SACHIN CHAUHAN
 
DDMT_170993109001
DDMT_170993109001DDMT_170993109001
DDMT_170993109001
SACHIN CHAUHAN
 
CED_170993109001
CED_170993109001CED_170993109001
CED_170993109001
SACHIN CHAUHAN
 

More from SACHIN CHAUHAN (6)

SGP_170993109001
SGP_170993109001SGP_170993109001
SGP_170993109001
 
INDUSTRIAL INSTRUMENTATION_170993109001
INDUSTRIAL INSTRUMENTATION_170993109001INDUSTRIAL INSTRUMENTATION_170993109001
INDUSTRIAL INSTRUMENTATION_170993109001
 
ICPS_170993109001
ICPS_170993109001ICPS_170993109001
ICPS_170993109001
 
DACM_170993109001
DACM_170993109001DACM_170993109001
DACM_170993109001
 
DDMT_170993109001
DDMT_170993109001DDMT_170993109001
DDMT_170993109001
 
CED_170993109001
CED_170993109001CED_170993109001
CED_170993109001
 

Recently uploaded

Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
Aditya Rajan Patra
 
一比一原版(UC Berkeley毕业证)加利福尼亚大学|伯克利分校毕业证成绩单专业办理
一比一原版(UC Berkeley毕业证)加利福尼亚大学|伯克利分校毕业证成绩单专业办理一比一原版(UC Berkeley毕业证)加利福尼亚大学|伯克利分校毕业证成绩单专业办理
一比一原版(UC Berkeley毕业证)加利福尼亚大学|伯克利分校毕业证成绩单专业办理
skuxot
 
Low power architecture of logic gates using adiabatic techniques
Low power architecture of logic gates using adiabatic techniquesLow power architecture of logic gates using adiabatic techniques
Low power architecture of logic gates using adiabatic techniques
nooriasukmaningtyas
 
Unbalanced Three Phase Systems and circuits.pptx
Unbalanced Three Phase Systems and circuits.pptxUnbalanced Three Phase Systems and circuits.pptx
Unbalanced Three Phase Systems and circuits.pptx
ChristineTorrepenida1
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
Kerry Sado
 
14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application
SyedAbiiAzazi1
 
Understanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine LearningUnderstanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine Learning
SUTEJAS
 
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
zwunae
 
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
obonagu
 
Modelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdfModelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdf
camseq
 
Technical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prismsTechnical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prisms
heavyhaig
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
thanhdowork
 
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTSHeap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Soumen Santra
 
Generative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of contentGenerative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of content
Hitesh Mohapatra
 
Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...
IJECEIAES
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Sreedhar Chowdam
 
Adaptive synchronous sliding control for a robot manipulator based on neural ...
Adaptive synchronous sliding control for a robot manipulator based on neural ...Adaptive synchronous sliding control for a robot manipulator based on neural ...
Adaptive synchronous sliding control for a robot manipulator based on neural ...
IJECEIAES
 
22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt
KrishnaveniKrishnara1
 
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECTCHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
jpsjournal1
 
digital fundamental by Thomas L.floydl.pdf
digital fundamental by Thomas L.floydl.pdfdigital fundamental by Thomas L.floydl.pdf
digital fundamental by Thomas L.floydl.pdf
drwaing
 

Recently uploaded (20)

Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
 
一比一原版(UC Berkeley毕业证)加利福尼亚大学|伯克利分校毕业证成绩单专业办理
一比一原版(UC Berkeley毕业证)加利福尼亚大学|伯克利分校毕业证成绩单专业办理一比一原版(UC Berkeley毕业证)加利福尼亚大学|伯克利分校毕业证成绩单专业办理
一比一原版(UC Berkeley毕业证)加利福尼亚大学|伯克利分校毕业证成绩单专业办理
 
Low power architecture of logic gates using adiabatic techniques
Low power architecture of logic gates using adiabatic techniquesLow power architecture of logic gates using adiabatic techniques
Low power architecture of logic gates using adiabatic techniques
 
Unbalanced Three Phase Systems and circuits.pptx
Unbalanced Three Phase Systems and circuits.pptxUnbalanced Three Phase Systems and circuits.pptx
Unbalanced Three Phase Systems and circuits.pptx
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
 
14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application
 
Understanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine LearningUnderstanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine Learning
 
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
 
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
 
Modelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdfModelagem de um CSTR com reação endotermica.pdf
Modelagem de um CSTR com reação endotermica.pdf
 
Technical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prismsTechnical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prisms
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
 
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTSHeap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
Heap Sort (SS).ppt FOR ENGINEERING GRADUATES, BCA, MCA, MTECH, BSC STUDENTS
 
Generative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of contentGenerative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of content
 
Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
 
Adaptive synchronous sliding control for a robot manipulator based on neural ...
Adaptive synchronous sliding control for a robot manipulator based on neural ...Adaptive synchronous sliding control for a robot manipulator based on neural ...
Adaptive synchronous sliding control for a robot manipulator based on neural ...
 
22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt
 
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECTCHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
 
digital fundamental by Thomas L.floydl.pdf
digital fundamental by Thomas L.floydl.pdfdigital fundamental by Thomas L.floydl.pdf
digital fundamental by Thomas L.floydl.pdf
 

MAMI_170993109001

  • 1. NAME:- Chauhan Sachin V. EN.NO:- 170993109001 TOPIC :- Instruction Set Of 8051 (Microcontroller) GUIDE:- Mr. Krunal Shah (DEE Ass.professor)
  • 2. CONTENT • TypesOf Instructions  Data Transfer Instructions.  Arithmetic Instructions  Logical Instructions  BranchingAnd Machine Control Instruction
  • 3. Data Transfer Instruction Data transfer instructions are used to transfer the data between registers, memory, and ports. Thisis akind of data movement instruction,application of which performs movement of data from one location to other locations. Examples: • MOVdestination, source. • MOV A, Rn This Instruction Used To Move Any Data Of Register Bank To Accumulator. • MOV A, @Ri This Instruction Used To Move Data From Any Particular Register To Accumulator.
  • 4. • MOV A, #Data This Instruction Used To Move Direct Value To Accumulator. • XCH A, Rn This Instruction Used To Exchange Data Between Register Bank And Accumulator.
  • 5. Arithmetic Instruction Arithmetic instructions of8051 Microcontroller performs arithmetic operations like addition, subtraction, multiplication, and division. Advanced features of this set of instruction range to increment, decrement and adjust decimaloperations. Examples: • ADDA, Rn this instruction used to addition of data between register bank and accumulator. And result will save on accumulator. • SUBA,#40H this instruction used to subtract direct data 40H from accumulator.And result will save on accumulator.
  • 6. • INC A this instruction used to increment data of accumulator by 1. • DEC Rn this instruction used to decrement data of register bank by 1. • MUL AB this instruction used to multiply A and B. • DIV AB this instruction used to division of A by B.
  • 7. LOGICAL INSTRUCTION Theinstruction performs logical operation between the source byte and destination byte. Example: • ANL A,Rn thisinstructionusedtoapplyingANDgatelogicregisterbank andaccumulator.Andresultwillsaveinaccumulator. • ORL A,#51H thisinstructionusedtoapplyORgatelogictodirectdata51H andaccumulator.
  • 8. • CLR A This instruction used to clear accumulator.  CPL A this instruction used to make complement of accumulator.  RL A this instruction used to rotate accumulator on left side.  RR A this instruction used to rotate accumulator on right side.
  • 9.  RRC A this instruction used to rotate accumulator right side with carry.  SWAP A this instruction used to swap data. [ D7 D6 D5 D4 D3 D2 D1 D0 ] [ D3 D2 D1 D0 D7 D6 D5 D4 ]
  • 10. Branching And Machine Control Instruction • A CALL ADD this instruction un-conditionally calls a sub- routine at the indicated to address at the end of sub- routine the program will resume operation at the opcode address following the call instruction. • RET when this instruction is educated, it informs the microcontroller to return back to the program, from where subroutine was called. • RET I this instruction informs the microcontroller that it is returning from an ISR routine.