SlideShare a Scribd company logo
In 8051 There are six types of addressing modes.
 Register AddressingMode
 Direct AddressingMode
 Register IndirectAddressing Mode
 Immediate AddressingMode
 Implied/Register Specfic AddressingMode
 Indexed AddressingMode
 The register addressing instruction involves
information transfer between registers
 The 8051 can access eight ‘’working registers’’(R0-
R7).
 Three bit code within the instruction selects one of
the eight registers from the selected register bank.
 The programmer can select a register bank by
modifying bits 4 and 3 in the PSW.
 Example: add the content of register r3 and r4 from
bank 2.
 step 1: MOV PSW
 step 2:MOV A, R3
MOV A, R4
 Can access any on chip variable and hardware
register.(RAM and SF register).
 This mode allows you to specify the operand by
giving its actual memory address.
 the MSB of the address decides whether it is a
location within in the chip RAM(MSB=0) or in
SFR.(MSB=1).
 Example: MOV A,50H
ADD A, 51H
 addressing mode R0 and R1 of each register bank
can be used as an index or pointer register.
 R0 and R1 point to the contents in the RAM.
 the instruction with indirect addressing uses the@
sign.
 Example: MOV A , @R0
ADD A ,@R1
 In this Immediate Addressing Mode, the data is
provided in the instruction itself.
 The data is provided immediately after the opcode.
 The sign # indicates it is a immediate addressing
mode.
 Example: MOV A ,#52
 Inherent in the instruction, these refers to a specific
register such as accumulator or DPTR.
 In the implied addressing mode, there will be a
single operand.
 These types of instruction can work on specific
registers only.
 Example: RLA , SWAPA
 These are 1- byte instruction. The first one is used
to rotate the A register content to the Left. The
second one is used to swap the nibbles in A.
 Only program memory can be accessed in the
index addressing.
 Either DPTR or PC can be used as an index.
 Example: MOVCA, @A+PC;
MOVCA, @A+DPTR;
The C in MOVC instruction refers to code byte. For
the first instruction, let us consider A holds 30H. And
the PC value is1125H. The contents of program
memory location 1155H (30H + 1125H) are moved to
register A.
 Comparison b/w MC and MP
 Features of 8051
 Architecture
 Pin configuration
 Memory organization(external data and program)
 Addressing modes
 8051 microcontrollers are manufactured by which of the following
companies?
a) Atmel
b) Philips
c) Intel
d) All of the mentioned
 Unlike microprocessors, microcontrollers make use of batteries
because they have:
a) high power dissipation
b) low power consumption
c) low voltage consumption
d) low current consumption
 The internal RAM memory of the 8051 is:
A. 32 bytes
B. 64 bytes
C. 128 bytes
D. 256 bytes
 The 8051 has ________ 16-bit counter/timers.
A. 1 B. 2 C. 3 D. 4
 Microcontrollers often have:
A. CPUs
B. RAM
C. ROM
D. all of the above
Microcontroller .pptx

More Related Content

Similar to Microcontroller .pptx

Addressing Modes
Addressing ModesAddressing Modes
Addressing Modes
Mayank Garg
 
Instruction set summary
Instruction set summary Instruction set summary
Instruction set summary janicetiong
 
Addressing modes of 8051
Addressing modes of 8051Addressing modes of 8051
Addressing modes of 8051
SARITHA REDDY
 
Qb microprocessors
Qb microprocessorsQb microprocessors
Qb microprocessors
Neelam Kapoor
 
Pdemodule 4
Pdemodule 4Pdemodule 4
Pdemodule 4
neerajtcr1990
 
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
Sreenivas Hanumandla
 
Lecture 4 (8051 instruction set) rv01
Lecture 4 (8051 instruction set) rv01Lecture 4 (8051 instruction set) rv01
Lecture 4 (8051 instruction set) rv01
cairo university
 
Microprocessor 8086
Microprocessor 8086Microprocessor 8086
Microprocessor 8086
Waleed Khan
 
8051 Programming (1).pptx
8051 Programming (1).pptx8051 Programming (1).pptx
8051 Programming (1).pptx
DhyeayaParmar
 
Addressing modes 8085
Addressing modes 8085Addressing modes 8085
Addressing modes 8085
ShivamSood22
 
8051 Addressing Modes
8051 Addressing Modes8051 Addressing Modes
8051 Addressing Modes
Senthil Kumar
 
microcontroller_instruction_set for ENGINEERING STUDENTS
microcontroller_instruction_set for  ENGINEERING STUDENTSmicrocontroller_instruction_set for  ENGINEERING STUDENTS
microcontroller_instruction_set for ENGINEERING STUDENTS
ssuser2b759d
 
Https _doc-0o-c4-apps-viewer.googleusercontent
Https  _doc-0o-c4-apps-viewer.googleusercontent Https  _doc-0o-c4-apps-viewer.googleusercontent
Https _doc-0o-c4-apps-viewer.googleusercontent vijaydeepakg
 
Lecture 02 Data Group of Instructions
Lecture 02 Data Group of InstructionsLecture 02 Data Group of Instructions
Lecture 02 Data Group of Instructions
Zeeshan Ahmed
 
8051 microcontroller
8051 microcontroller8051 microcontroller
8051 microcontroller
chirag patil
 
Unit -2 and 3 mekirirygiygyuguiguihiiqio
Unit -2 and 3 mekirirygiygyuguiguihiiqioUnit -2 and 3 mekirirygiygyuguiguihiiqio
Unit -2 and 3 mekirirygiygyuguiguihiiqio
Manikanta Reddy Sakam
 
Memory intrface and addrs modes
Memory intrface and addrs modesMemory intrface and addrs modes
Memory intrface and addrs modesbalbirvirdi
 
8051d
8051d8051d
unit5_8051_microcontroller presentation.pdf
unit5_8051_microcontroller presentation.pdfunit5_8051_microcontroller presentation.pdf
unit5_8051_microcontroller presentation.pdf
tchandoo1
 
Module 2 instruction set
Module 2 instruction set Module 2 instruction set
Module 2 instruction set
Deepak John
 

Similar to Microcontroller .pptx (20)

Addressing Modes
Addressing ModesAddressing Modes
Addressing Modes
 
Instruction set summary
Instruction set summary Instruction set summary
Instruction set summary
 
Addressing modes of 8051
Addressing modes of 8051Addressing modes of 8051
Addressing modes of 8051
 
Qb microprocessors
Qb microprocessorsQb microprocessors
Qb microprocessors
 
Pdemodule 4
Pdemodule 4Pdemodule 4
Pdemodule 4
 
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
 
Lecture 4 (8051 instruction set) rv01
Lecture 4 (8051 instruction set) rv01Lecture 4 (8051 instruction set) rv01
Lecture 4 (8051 instruction set) rv01
 
Microprocessor 8086
Microprocessor 8086Microprocessor 8086
Microprocessor 8086
 
8051 Programming (1).pptx
8051 Programming (1).pptx8051 Programming (1).pptx
8051 Programming (1).pptx
 
Addressing modes 8085
Addressing modes 8085Addressing modes 8085
Addressing modes 8085
 
8051 Addressing Modes
8051 Addressing Modes8051 Addressing Modes
8051 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
 
Https _doc-0o-c4-apps-viewer.googleusercontent
Https  _doc-0o-c4-apps-viewer.googleusercontent Https  _doc-0o-c4-apps-viewer.googleusercontent
Https _doc-0o-c4-apps-viewer.googleusercontent
 
Lecture 02 Data Group of Instructions
Lecture 02 Data Group of InstructionsLecture 02 Data Group of Instructions
Lecture 02 Data Group of Instructions
 
8051 microcontroller
8051 microcontroller8051 microcontroller
8051 microcontroller
 
Unit -2 and 3 mekirirygiygyuguiguihiiqio
Unit -2 and 3 mekirirygiygyuguiguihiiqioUnit -2 and 3 mekirirygiygyuguiguihiiqio
Unit -2 and 3 mekirirygiygyuguiguihiiqio
 
Memory intrface and addrs modes
Memory intrface and addrs modesMemory intrface and addrs modes
Memory intrface and addrs modes
 
8051d
8051d8051d
8051d
 
unit5_8051_microcontroller presentation.pdf
unit5_8051_microcontroller presentation.pdfunit5_8051_microcontroller presentation.pdf
unit5_8051_microcontroller presentation.pdf
 
Module 2 instruction set
Module 2 instruction set Module 2 instruction set
Module 2 instruction set
 

More from KiruthikaRajasekaran

zeeman effect.pptx
zeeman effect.pptxzeeman effect.pptx
zeeman effect.pptx
KiruthikaRajasekaran
 
x-ray spectra.pptx
x-ray spectra.pptxx-ray spectra.pptx
x-ray spectra.pptx
KiruthikaRajasekaran
 
X-RAY -DIFRACTION TYPES.ppt
X-RAY -DIFRACTION TYPES.pptX-RAY -DIFRACTION TYPES.ppt
X-RAY -DIFRACTION TYPES.ppt
KiruthikaRajasekaran
 
types of wiring.pptx
types of wiring.pptxtypes of wiring.pptx
types of wiring.pptx
KiruthikaRajasekaran
 
shell model and ionization chamber.pptx
shell model and ionization chamber.pptxshell model and ionization chamber.pptx
shell model and ionization chamber.pptx
KiruthikaRajasekaran
 
NDT.pptx
NDT.pptxNDT.pptx
multimeter.pptx
multimeter.pptxmultimeter.pptx
multimeter.pptx
KiruthikaRajasekaran
 
metallic glass.pptx
metallic glass.pptxmetallic glass.pptx
metallic glass.pptx
KiruthikaRajasekaran
 
megger testing.pptx
megger testing.pptxmegger testing.pptx
megger testing.pptx
KiruthikaRajasekaran
 
Materials Science -nano ppt 1.pptx
Materials Science -nano ppt 1.pptxMaterials Science -nano ppt 1.pptx
Materials Science -nano ppt 1.pptx
KiruthikaRajasekaran
 
liquid drop model and counter.pptx
liquid drop model and counter.pptxliquid drop model and counter.pptx
liquid drop model and counter.pptx
KiruthikaRajasekaran
 
fullerene seminar_2 (1).pptx
fullerene seminar_2 (1).pptxfullerene seminar_2 (1).pptx
fullerene seminar_2 (1).pptx
KiruthikaRajasekaran
 
electrical measuring instruments.pptx
electrical measuring instruments.pptxelectrical measuring instruments.pptx
electrical measuring instruments.pptx
KiruthikaRajasekaran
 
Earthing.ppt
Earthing.pptEarthing.ppt
Earthing.ppt
KiruthikaRajasekaran
 
applications of nanotubes.pptx
applications of nanotubes.pptxapplications of nanotubes.pptx
applications of nanotubes.pptx
KiruthikaRajasekaran
 
Machine Cycle 1.pptx
Machine Cycle 1.pptxMachine Cycle 1.pptx
Machine Cycle 1.pptx
KiruthikaRajasekaran
 
TENSOR .pptx
TENSOR .pptxTENSOR .pptx
TENSOR .pptx
KiruthikaRajasekaran
 
Bonds in solids.pptx
Bonds in solids.pptxBonds in solids.pptx
Bonds in solids.pptx
KiruthikaRajasekaran
 
ALGEBRA OF TENSOR .pptx
ALGEBRA OF TENSOR .pptxALGEBRA OF TENSOR .pptx
ALGEBRA OF TENSOR .pptx
KiruthikaRajasekaran
 
SAW.pptx
SAW.pptxSAW.pptx

More from KiruthikaRajasekaran (20)

zeeman effect.pptx
zeeman effect.pptxzeeman effect.pptx
zeeman effect.pptx
 
x-ray spectra.pptx
x-ray spectra.pptxx-ray spectra.pptx
x-ray spectra.pptx
 
X-RAY -DIFRACTION TYPES.ppt
X-RAY -DIFRACTION TYPES.pptX-RAY -DIFRACTION TYPES.ppt
X-RAY -DIFRACTION TYPES.ppt
 
types of wiring.pptx
types of wiring.pptxtypes of wiring.pptx
types of wiring.pptx
 
shell model and ionization chamber.pptx
shell model and ionization chamber.pptxshell model and ionization chamber.pptx
shell model and ionization chamber.pptx
 
NDT.pptx
NDT.pptxNDT.pptx
NDT.pptx
 
multimeter.pptx
multimeter.pptxmultimeter.pptx
multimeter.pptx
 
metallic glass.pptx
metallic glass.pptxmetallic glass.pptx
metallic glass.pptx
 
megger testing.pptx
megger testing.pptxmegger testing.pptx
megger testing.pptx
 
Materials Science -nano ppt 1.pptx
Materials Science -nano ppt 1.pptxMaterials Science -nano ppt 1.pptx
Materials Science -nano ppt 1.pptx
 
liquid drop model and counter.pptx
liquid drop model and counter.pptxliquid drop model and counter.pptx
liquid drop model and counter.pptx
 
fullerene seminar_2 (1).pptx
fullerene seminar_2 (1).pptxfullerene seminar_2 (1).pptx
fullerene seminar_2 (1).pptx
 
electrical measuring instruments.pptx
electrical measuring instruments.pptxelectrical measuring instruments.pptx
electrical measuring instruments.pptx
 
Earthing.ppt
Earthing.pptEarthing.ppt
Earthing.ppt
 
applications of nanotubes.pptx
applications of nanotubes.pptxapplications of nanotubes.pptx
applications of nanotubes.pptx
 
Machine Cycle 1.pptx
Machine Cycle 1.pptxMachine Cycle 1.pptx
Machine Cycle 1.pptx
 
TENSOR .pptx
TENSOR .pptxTENSOR .pptx
TENSOR .pptx
 
Bonds in solids.pptx
Bonds in solids.pptxBonds in solids.pptx
Bonds in solids.pptx
 
ALGEBRA OF TENSOR .pptx
ALGEBRA OF TENSOR .pptxALGEBRA OF TENSOR .pptx
ALGEBRA OF TENSOR .pptx
 
SAW.pptx
SAW.pptxSAW.pptx
SAW.pptx
 

Recently uploaded

Democratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek AryaDemocratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek Arya
abh.arya
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
fxintegritypublishin
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
gerogepatton
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
MdTanvirMahtab2
 
Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdf
Kamal Acharya
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Dr.Costas Sachpazis
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
gdsczhcet
 
addressing modes in computer architecture
addressing modes  in computer architectureaddressing modes  in computer architecture
addressing modes in computer architecture
ShahidSultan24
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
bakpo1
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
Intella Parts
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
Massimo Talia
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
karthi keyan
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
SamSarthak3
 
LIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.pptLIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.ppt
ssuser9bd3ba
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
Pipe Restoration Solutions
 
Vaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdfVaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdf
Kamal Acharya
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
R&R Consult
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation & Control
 

Recently uploaded (20)

Democratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek AryaDemocratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek Arya
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
 
Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdf
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
 
addressing modes in computer architecture
addressing modes  in computer architectureaddressing modes  in computer architecture
addressing modes in computer architecture
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
 
LIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.pptLIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.ppt
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
 
Vaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdfVaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdf
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 

Microcontroller .pptx

  • 1.
  • 2. In 8051 There are six types of addressing modes.  Register AddressingMode  Direct AddressingMode  Register IndirectAddressing Mode  Immediate AddressingMode  Implied/Register Specfic AddressingMode  Indexed AddressingMode
  • 3.  The register addressing instruction involves information transfer between registers  The 8051 can access eight ‘’working registers’’(R0- R7).  Three bit code within the instruction selects one of the eight registers from the selected register bank.  The programmer can select a register bank by modifying bits 4 and 3 in the PSW.
  • 4.  Example: add the content of register r3 and r4 from bank 2.  step 1: MOV PSW  step 2:MOV A, R3 MOV A, R4
  • 5.  Can access any on chip variable and hardware register.(RAM and SF register).  This mode allows you to specify the operand by giving its actual memory address.  the MSB of the address decides whether it is a location within in the chip RAM(MSB=0) or in SFR.(MSB=1).  Example: MOV A,50H ADD A, 51H
  • 6.  addressing mode R0 and R1 of each register bank can be used as an index or pointer register.  R0 and R1 point to the contents in the RAM.  the instruction with indirect addressing uses the@ sign.  Example: MOV A , @R0 ADD A ,@R1
  • 7.  In this Immediate Addressing Mode, the data is provided in the instruction itself.  The data is provided immediately after the opcode.  The sign # indicates it is a immediate addressing mode.  Example: MOV A ,#52
  • 8.  Inherent in the instruction, these refers to a specific register such as accumulator or DPTR.  In the implied addressing mode, there will be a single operand.  These types of instruction can work on specific registers only.  Example: RLA , SWAPA  These are 1- byte instruction. The first one is used to rotate the A register content to the Left. The second one is used to swap the nibbles in A.
  • 9.  Only program memory can be accessed in the index addressing.  Either DPTR or PC can be used as an index.  Example: MOVCA, @A+PC; MOVCA, @A+DPTR; The C in MOVC instruction refers to code byte. For the first instruction, let us consider A holds 30H. And the PC value is1125H. The contents of program memory location 1155H (30H + 1125H) are moved to register A.
  • 10.  Comparison b/w MC and MP  Features of 8051  Architecture  Pin configuration  Memory organization(external data and program)  Addressing modes
  • 11.  8051 microcontrollers are manufactured by which of the following companies? a) Atmel b) Philips c) Intel d) All of the mentioned  Unlike microprocessors, microcontrollers make use of batteries because they have: a) high power dissipation b) low power consumption c) low voltage consumption d) low current consumption  The internal RAM memory of the 8051 is: A. 32 bytes B. 64 bytes C. 128 bytes D. 256 bytes
  • 12.  The 8051 has ________ 16-bit counter/timers. A. 1 B. 2 C. 3 D. 4  Microcontrollers often have: A. CPUs B. RAM C. ROM D. all of the above