SlideShare a Scribd company logo
GANDHINAGAR INSTITUTE OF
TECHNOLOGY
 ACTIVE LEARNING ASSIGNMENT
 MICROPROCESSOR & MICROCONTROLLER
ARCHITECTURE & INTERFACING (2150907)
 TOPIC: 8051 ARCHITECTURE & INSTRUCTIONS
 GUIDED BY: PROF. SUPRAJA GIDDALURU
 BRANCH: ELECTRICAL
 BATCH: B-2
GROUP MEMBERS
NAME ENROLLMENT NO.
Patel Ashutosh 140120109029
Patel Krupal 140120109034
Shah Darshil 140120109050
CONTENTS
 Introduction
 About 8051
 8051 Architecture & Description
 Instruction Set
 Application of 8051
 Programming of 8051
 Conclusion
 References
INTRODUCTION
 Nowadays, all the devices of Commercial & Industrial Technologies
are dependent on the Controlling Devices & also on the Computers.
 Here, we are going to get some basic knowledge about the 8051
Microcontroller. 8051 & 8085 are most commonly used in nowadays
expansion of technologies.
 8051 Microcontroller contents the Programming Unit,
Assembling Unit & Memory Unit in it. So, according to
requirement of user it gives the output.
 8051 Microcontroller is also known as the Microcomputers.
ABOUT 8051 MICROCONTROLLER
 8051 Microcontrollers has numbers of integrated circuits in it. It contains
other support devices like, I/O ports, serial communication interface,
program memory, data memory etc.
 Most grew up companies which made useful small integrated chip of 8051
is INTEL, SIEMENS, ATMEL, PHILLIPS etc. First 8051 Controller is
made by INTEL in 1976 under the name MCS-48, which was an 8 bit
microcontroller. Later in 1980 they released a further improved version
(which is also 8 bit), under the name MCS-51.
 So, the Microcontroller is most popular integrated chip, which can able to
perform any task by fetching the codes which are delivered by user.
ARCHITECTURE OF 8051
DESCRIPTION OF 8051 MICROCONTROLLER
 IMPORTANT FEATURES OF 8051 ARCHITECTURE:
 HIGH INTEGRATION: It contains Built-in program (ROM) & Data Memory (RAM),
Timers, Interrupt Control, Serial & Parallel Ports.
 IMPORTANT COMPONENTS:
 Internal clock Oscillator driving the system clock generated from the external Crystal
Oscillator XTAL1 & XTAL2 pins.
 Core MCS-51 CPU: It is seems like same as CPU of Computer processor of the logic
execution to instructions & drive process engine.
 Interrupt Control Logic: Interrupt from 5 source (2 external : #INT0 & #INT1 & #INT3
Internal : Timer 0, Timer 1 overflow & Serial Interrupt).
 128 Byte RAM: Used as Internal Data Memory constitutes Register Banks (00-1FH), Bit
Addressable RAM (20-2FH), User Memory or Scratch Pad (30-7FH).
DESCRIPTION OF 8051 MICROCONTROLLER (Cont..)
 Two 8 or 16 bit Timer: Timer 0 & Timer 1 operate in 4 possible modes (Mode 0-3) as per
TCON,TMOD,TL0,TL1,TH0,TH1.
 ARITHMETIC & LOGICAL UNIT (ALU):
The ALU can perform arithmetic & logical operations on 8 bit data. It can perform arithmetic
operations like, Addition, Subtraction, Multiplication & Division & logical operations like,
AND, OR, EX-OR, COMPLIMENT, ROTATE.
 Result of ALU stored in Accumulator.
 OSCILLATOR & CLOCK CIRCUIT:
The 8051 has an On- Chip Oscillator, but needs an external clock to run it. The Oscillator
circuit that generates the clock pulse so that all internal operations are synchronized.
 Crystal frequency is internal clock frequency.
DESCRIPTION OF 8051 MICROCONTROLLER (Cont..)
 The Pins XTAL1 & XTAL2 are provided to
connect a resonating comparison network of
Crystal & Capacitor to form an Oscillator.
Normally, Quartz Crystal is used.
 The manufacturer provides 8051 design to
run at ranging of 1MHz to 12MHz.
 GENERAL PURPOSE REGISTERS:
 The register set consist of,
1. Accumulator,
2. Program Counter (PC),
3. Register B,
4. Stack Pointer (SP),
5. Data Pointer (DPTR),
6. Flag Reg. (PSW).
DESCRIPTION OF 8051 MICROCONTROLLER (Cont..)
 ACCUMULATOR: Accumulator is the 8 bit register. It’s SFR address is E0H. It is a
addressable register.
 It is most versatile & holds source operand & receives the result of ALU operations.
 It is used for data transfer between 8051 & external memory. It is also used along with
register B for Multiplication & Division operation.
 B-REGISTER: The B register used with A register for above mentioned operations.
Other instructions treated as Scratch Pad. It’s SFR address is F0H. It is also a 8 bit
register.
 PROGRAM COUNTER (PC): It is a 16 bit register. Used to hold the address of
instruction in memory.
 It’s function to keep the track of execution of the program. The program
instruction bytes are fetch from location in memory that are addressed by PC.
DESCRIPTION OF 8051 MICROCONTROLLER (Cont..)
 Whenever the power supply is switched ON the PC reset to 0000H. PC is automatically
increased after fetching a byte from Memory.
 Example: JUMP, CALL, INTRRUPT this may change the content of PC.
 DATA POINTER (DPTR): DPTR is 16 bit register. It is used to hold the address of data in
memory. It can be used as a 16 bit data register or two independent 8 bit registers.
 It serves as a base register in case of instruction handling Look-Up tables & external data
transfer. For 8 bit operation it works as DPH (8 bit) & DPL (8 bit). SFR address is 82H & 83H.
 PROGRAM STATUS WORD (PSW) & FLAGS: Deny instructions affect the Status Flag.
In order to address grouping they form to PSW.
 Flags are 1 bit registers provided to store the status of the result of same instruction. Flag is a
flip flop that indicates some condition produced by the execution of the instruction. It’s total
size of 8 bit register. SFR address is D0H.
DESCRIPTION OF 8051 MICROCONTROLLER (Cont..)
 The 8051 has four math flags including Carry(CY),
Auxiliary Carry(AC), Overflow(OV), Parity(P).
 CARRY FLAG: The carry flag will be set when the
carry will generate of borrow out from MSB (D7
bit) of result.
 AUXILIARY CARRY FLAG: The AC flag is set
when the carry out of the lower Nibble to higher
Nibble or whenever the borrow from higher Nibble to
lower Nibble.
 OVERFLOW FLAG: The OV flag will be set, if an
arithmetic overflow has occurred, i.e.: a significant
bit has been last because of the result exceeded the
capacity of its destination location.
 PARITY FLAG: The parity flag is set when the result
has even parity, i.e.: Even numbers of 1’s.
 Bit RS0 & RS1 are used to change the Bank
Registers values & F0 flag is user defined flag.
DESCRIPTION OF 8051 MICROCONTROLLER (Cont..)
 STACK POINTER (SP): The stack is reserved area of
the Memory in RAM where Temporary info. may be
stored. An 8 bit SP is used to hold the address of the
most recent Stack entry.
 This location which has the most recent entry is called as
the TOP OF STACK. When the information is written
in Stack, operation is called PUSH. The information is
read on Stack, operation is called POP. Stack works on
the principle of Last in First Out or First in Last Out.
 It can take value from 00 to FFH. On Reset on power
up, SP contains the value 07H as in figure.
DESCRIPTION OF 8051 MICROCONTROLLER (Cont..)
 TIMER & COUNTERS:
 8051 has two 16 bits Timer/Counter registers namely Timer 0 (T0) & Timer 1 (T1).
 Both these registers can operate as timer or an counter. When used as a “Timer” the register is
programmed to count the internal clock pulse. The internal clock pulse are generated from a
constant clock generator, the count loaded in the register gives constant time. Register
incremented every Machine cycle.
 One machine cycle consists 12 Oscillator periods & so the counting rate is 1/12 of
Oscillator frequency.
 When used as a “Counter”, the Microcontroller is programmed to count external pulses.
Register is incremented in response to high to low transition of the corresponding external
input pin, T0 & T1.
DESCRIPTION OF 8051 MICROCONTROLLER (Cont..)
The counter/Timer is divided into
8 bit registers called the timer
low and high.
8051 INSTRUCTION SET
8051 INSTRUCTION SET
8051 INSTRUCTION SET
APPLICATION OF 8051 MICROCONTROLLER
 It is used in various fields of day to day life:
 Automobile,
 Aeronautics,
 Space,
 Railways,
 Mobile Phones,
 Washing Machines,
 CD/DVD Players,
 Cameras & Computers,
 Security Alarms,
 Robotics & Remote sensing Devices & Radio,
 Microwave Owens etc.
CONCLUSION
 So, by using this kind of Integrated Chip or IC’s we can able to generate
desired projects very easily. Also, it is very easy to deal with the
Programming of 8051.
REFERENCES
 www.Wikipedia.org/8051-Microcontroller
 www.circuitstoday.com/8051-Microcontroller
 www.engineersgarage.com/Microcontrollers
Mmai ppt

More Related Content

What's hot

Study of 8051 microcontroller
Study of 8051 microcontrollerStudy of 8051 microcontroller
Study of 8051 microcontroller
918007165995
 

What's hot (20)

8051 Microcontroller Overview by Venkatrao Ramisetti
8051 Microcontroller Overview by Venkatrao Ramisetti 8051 Microcontroller Overview by Venkatrao Ramisetti
8051 Microcontroller Overview by Venkatrao Ramisetti
 
Live B tech Projects & Industrial Training @Technogroovy
Live B tech Projects & Industrial Training @Technogroovy Live B tech Projects & Industrial Training @Technogroovy
Live B tech Projects & Industrial Training @Technogroovy
 
c++
c++ c++
c++
 
8085 ppi 8255 and 8155
8085 ppi 8255 and 81558085 ppi 8255 and 8155
8085 ppi 8255 and 8155
 
8051 dev board guide
8051 dev board guide8051 dev board guide
8051 dev board guide
 
8051 Microcontroller
8051 Microcontroller8051 Microcontroller
8051 Microcontroller
 
Microprocessor systems 8085(2)
Microprocessor systems 8085(2)Microprocessor systems 8085(2)
Microprocessor systems 8085(2)
 
Mp 8085
Mp 8085Mp 8085
Mp 8085
 
Week 1.2 pin diagram
Week 1.2   pin diagramWeek 1.2   pin diagram
Week 1.2 pin diagram
 
8085-microprocessor
8085-microprocessor8085-microprocessor
8085-microprocessor
 
8085 microprocessor Embedded system
8085 microprocessor  Embedded system8085 microprocessor  Embedded system
8085 microprocessor Embedded system
 
8051 Microcontroller Tutorial and Architecture with Applications
8051 Microcontroller Tutorial and Architecture with Applications8051 Microcontroller Tutorial and Architecture with Applications
8051 Microcontroller Tutorial and Architecture with Applications
 
8051 microcontroller
8051 microcontroller8051 microcontroller
8051 microcontroller
 
8051 presentation
8051 presentation8051 presentation
8051 presentation
 
8051 i/o port circuit
8051 i/o port circuit8051 i/o port circuit
8051 i/o port circuit
 
Microprocessor 8085 Basics
Microprocessor 8085 BasicsMicroprocessor 8085 Basics
Microprocessor 8085 Basics
 
8051 Microcontroller
8051 Microcontroller8051 Microcontroller
8051 Microcontroller
 
janakiraman I msc 4 unit
janakiraman I msc 4 unitjanakiraman I msc 4 unit
janakiraman I msc 4 unit
 
Microcontroller 8051
Microcontroller 8051Microcontroller 8051
Microcontroller 8051
 
Study of 8051 microcontroller
Study of 8051 microcontrollerStudy of 8051 microcontroller
Study of 8051 microcontroller
 

Similar to Mmai ppt

Ashish microcontroller 8051
Ashish microcontroller 8051Ashish microcontroller 8051
Ashish microcontroller 8051
ASHISH RAJ
 
8051 microcontrolle rclass1
8051 microcontrolle rclass18051 microcontrolle rclass1
8051 microcontrolle rclass1
Nitin Ahire
 
8449972 embedded-systems-and-model-of-metro-train
8449972 embedded-systems-and-model-of-metro-train8449972 embedded-systems-and-model-of-metro-train
8449972 embedded-systems-and-model-of-metro-train
Jitendra Saroj
 
An introduction to microprocessor architecture using INTEL 8085 as a classic...
An introduction to microprocessor  architecture using INTEL 8085 as a classic...An introduction to microprocessor  architecture using INTEL 8085 as a classic...
An introduction to microprocessor architecture using INTEL 8085 as a classic...
Prasad Deshpande
 

Similar to Mmai ppt (20)

Unit1 5-mpi-lecture-notes
Unit1 5-mpi-lecture-notesUnit1 5-mpi-lecture-notes
Unit1 5-mpi-lecture-notes
 
Architecture of 8051
Architecture of 8051Architecture of 8051
Architecture of 8051
 
Embedded System
Embedded SystemEmbedded System
Embedded System
 
8051 microcontroller
8051 microcontroller 8051 microcontroller
8051 microcontroller
 
Advanced Microprocessor 6.pptx
Advanced Microprocessor 6.pptxAdvanced Microprocessor 6.pptx
Advanced Microprocessor 6.pptx
 
Micro controller
Micro controllerMicro controller
Micro controller
 
Embedded systems ppt i
Embedded systems ppt iEmbedded systems ppt i
Embedded systems ppt i
 
Ashish microcontroller 8051
Ashish microcontroller 8051Ashish microcontroller 8051
Ashish microcontroller 8051
 
8051 microcontrolle rclass1
8051 microcontrolle rclass18051 microcontrolle rclass1
8051 microcontrolle rclass1
 
Microcontroller-8051.ppt
Microcontroller-8051.pptMicrocontroller-8051.ppt
Microcontroller-8051.ppt
 
janakiraman egsp collage I msc 4 unit
janakiraman egsp collage  I msc 4 unitjanakiraman egsp collage  I msc 4 unit
janakiraman egsp collage I msc 4 unit
 
POA_Unit 5.pptx
POA_Unit 5.pptxPOA_Unit 5.pptx
POA_Unit 5.pptx
 
Microcontroller Electronics Engineering Sem 4MODULE 1.pptx
Microcontroller Electronics Engineering Sem 4MODULE 1.pptxMicrocontroller Electronics Engineering Sem 4MODULE 1.pptx
Microcontroller Electronics Engineering Sem 4MODULE 1.pptx
 
8085.ppt
8085.ppt8085.ppt
8085.ppt
 
8051 Architecture and PIN Configuration.pdf
8051 Architecture and PIN Configuration.pdf8051 Architecture and PIN Configuration.pdf
8051 Architecture and PIN Configuration.pdf
 
8449972 embedded-systems-and-model-of-metro-train
8449972 embedded-systems-and-model-of-metro-train8449972 embedded-systems-and-model-of-metro-train
8449972 embedded-systems-and-model-of-metro-train
 
An introduction to microprocessor architecture using INTEL 8085 as a classic...
An introduction to microprocessor  architecture using INTEL 8085 as a classic...An introduction to microprocessor  architecture using INTEL 8085 as a classic...
An introduction to microprocessor architecture using INTEL 8085 as a classic...
 
8085 intro
8085 intro8085 intro
8085 intro
 
B sc e5.2 mp unit 4 mc-8051
B sc e5.2 mp unit 4 mc-8051B sc e5.2 mp unit 4 mc-8051
B sc e5.2 mp unit 4 mc-8051
 
8085 (1)
8085 (1)8085 (1)
8085 (1)
 

Recently uploaded

Laundry management system project report.pdf
Laundry management system project report.pdfLaundry management system project report.pdf
Laundry management system project report.pdf
Kamal Acharya
 
Online blood donation management system project.pdf
Online blood donation management system project.pdfOnline blood donation management system project.pdf
Online blood donation management system project.pdf
Kamal Acharya
 
RS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
RS Khurmi Machine Design Clutch and Brake Exercise Numerical SolutionsRS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
RS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
Atif Razi
 
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
 
Hall booking system project report .pdf
Hall booking system project report  .pdfHall booking system project report  .pdf
Hall booking system project report .pdf
Kamal Acharya
 

Recently uploaded (20)

Laundry management system project report.pdf
Laundry management system project report.pdfLaundry management system project report.pdf
Laundry management system project report.pdf
 
Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.
 
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical EngineeringIntroduction to Machine Learning Unit-4 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical Engineering
 
Online blood donation management system project.pdf
Online blood donation management system project.pdfOnline blood donation management system project.pdf
Online blood donation management system project.pdf
 
Halogenation process of chemical process industries
Halogenation process of chemical process industriesHalogenation process of chemical process industries
Halogenation process of chemical process industries
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
 
Furniture showroom management system project.pdf
Furniture showroom management system project.pdfFurniture showroom management system project.pdf
Furniture showroom management system project.pdf
 
Courier management system project report.pdf
Courier management system project report.pdfCourier management system project report.pdf
Courier management system project report.pdf
 
RS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
RS Khurmi Machine Design Clutch and Brake Exercise Numerical SolutionsRS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
RS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
 
ENERGY STORAGE DEVICES INTRODUCTION UNIT-I
ENERGY STORAGE DEVICES  INTRODUCTION UNIT-IENERGY STORAGE DEVICES  INTRODUCTION UNIT-I
ENERGY STORAGE DEVICES INTRODUCTION UNIT-I
 
Introduction to Machine Learning Unit-5 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-5 Notes for II-II Mechanical EngineeringIntroduction to Machine Learning Unit-5 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-5 Notes for II-II Mechanical Engineering
 
Online resume builder management system project report.pdf
Online resume builder management system project report.pdfOnline resume builder management system project report.pdf
Online resume builder management system project report.pdf
 
2024 DevOps Pro Europe - Growing at the edge
2024 DevOps Pro Europe - Growing at the edge2024 DevOps Pro Europe - Growing at the edge
2024 DevOps Pro Europe - Growing at the edge
 
Peek implant persentation - Copy (1).pdf
Peek implant persentation - Copy (1).pdfPeek implant persentation - Copy (1).pdf
Peek implant persentation - Copy (1).pdf
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
 
Arduino based vehicle speed tracker project
Arduino based vehicle speed tracker projectArduino based vehicle speed tracker project
Arduino based vehicle speed tracker project
 
Top 13 Famous Civil Engineering Scientist
Top 13 Famous Civil Engineering ScientistTop 13 Famous Civil Engineering Scientist
Top 13 Famous Civil Engineering Scientist
 
Pharmacy management system project report..pdf
Pharmacy management system project report..pdfPharmacy management system project report..pdf
Pharmacy management system project report..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
 
Hall booking system project report .pdf
Hall booking system project report  .pdfHall booking system project report  .pdf
Hall booking system project report .pdf
 

Mmai ppt

  • 1. GANDHINAGAR INSTITUTE OF TECHNOLOGY  ACTIVE LEARNING ASSIGNMENT  MICROPROCESSOR & MICROCONTROLLER ARCHITECTURE & INTERFACING (2150907)  TOPIC: 8051 ARCHITECTURE & INSTRUCTIONS  GUIDED BY: PROF. SUPRAJA GIDDALURU  BRANCH: ELECTRICAL  BATCH: B-2
  • 2. GROUP MEMBERS NAME ENROLLMENT NO. Patel Ashutosh 140120109029 Patel Krupal 140120109034 Shah Darshil 140120109050
  • 3. CONTENTS  Introduction  About 8051  8051 Architecture & Description  Instruction Set  Application of 8051  Programming of 8051  Conclusion  References
  • 4. INTRODUCTION  Nowadays, all the devices of Commercial & Industrial Technologies are dependent on the Controlling Devices & also on the Computers.  Here, we are going to get some basic knowledge about the 8051 Microcontroller. 8051 & 8085 are most commonly used in nowadays expansion of technologies.  8051 Microcontroller contents the Programming Unit, Assembling Unit & Memory Unit in it. So, according to requirement of user it gives the output.  8051 Microcontroller is also known as the Microcomputers.
  • 5. ABOUT 8051 MICROCONTROLLER  8051 Microcontrollers has numbers of integrated circuits in it. It contains other support devices like, I/O ports, serial communication interface, program memory, data memory etc.  Most grew up companies which made useful small integrated chip of 8051 is INTEL, SIEMENS, ATMEL, PHILLIPS etc. First 8051 Controller is made by INTEL in 1976 under the name MCS-48, which was an 8 bit microcontroller. Later in 1980 they released a further improved version (which is also 8 bit), under the name MCS-51.  So, the Microcontroller is most popular integrated chip, which can able to perform any task by fetching the codes which are delivered by user.
  • 7. DESCRIPTION OF 8051 MICROCONTROLLER  IMPORTANT FEATURES OF 8051 ARCHITECTURE:  HIGH INTEGRATION: It contains Built-in program (ROM) & Data Memory (RAM), Timers, Interrupt Control, Serial & Parallel Ports.  IMPORTANT COMPONENTS:  Internal clock Oscillator driving the system clock generated from the external Crystal Oscillator XTAL1 & XTAL2 pins.  Core MCS-51 CPU: It is seems like same as CPU of Computer processor of the logic execution to instructions & drive process engine.  Interrupt Control Logic: Interrupt from 5 source (2 external : #INT0 & #INT1 & #INT3 Internal : Timer 0, Timer 1 overflow & Serial Interrupt).  128 Byte RAM: Used as Internal Data Memory constitutes Register Banks (00-1FH), Bit Addressable RAM (20-2FH), User Memory or Scratch Pad (30-7FH).
  • 8. DESCRIPTION OF 8051 MICROCONTROLLER (Cont..)  Two 8 or 16 bit Timer: Timer 0 & Timer 1 operate in 4 possible modes (Mode 0-3) as per TCON,TMOD,TL0,TL1,TH0,TH1.  ARITHMETIC & LOGICAL UNIT (ALU): The ALU can perform arithmetic & logical operations on 8 bit data. It can perform arithmetic operations like, Addition, Subtraction, Multiplication & Division & logical operations like, AND, OR, EX-OR, COMPLIMENT, ROTATE.  Result of ALU stored in Accumulator.  OSCILLATOR & CLOCK CIRCUIT: The 8051 has an On- Chip Oscillator, but needs an external clock to run it. The Oscillator circuit that generates the clock pulse so that all internal operations are synchronized.  Crystal frequency is internal clock frequency.
  • 9. DESCRIPTION OF 8051 MICROCONTROLLER (Cont..)  The Pins XTAL1 & XTAL2 are provided to connect a resonating comparison network of Crystal & Capacitor to form an Oscillator. Normally, Quartz Crystal is used.  The manufacturer provides 8051 design to run at ranging of 1MHz to 12MHz.  GENERAL PURPOSE REGISTERS:  The register set consist of, 1. Accumulator, 2. Program Counter (PC), 3. Register B, 4. Stack Pointer (SP), 5. Data Pointer (DPTR), 6. Flag Reg. (PSW).
  • 10. DESCRIPTION OF 8051 MICROCONTROLLER (Cont..)  ACCUMULATOR: Accumulator is the 8 bit register. It’s SFR address is E0H. It is a addressable register.  It is most versatile & holds source operand & receives the result of ALU operations.  It is used for data transfer between 8051 & external memory. It is also used along with register B for Multiplication & Division operation.  B-REGISTER: The B register used with A register for above mentioned operations. Other instructions treated as Scratch Pad. It’s SFR address is F0H. It is also a 8 bit register.  PROGRAM COUNTER (PC): It is a 16 bit register. Used to hold the address of instruction in memory.  It’s function to keep the track of execution of the program. The program instruction bytes are fetch from location in memory that are addressed by PC.
  • 11. DESCRIPTION OF 8051 MICROCONTROLLER (Cont..)  Whenever the power supply is switched ON the PC reset to 0000H. PC is automatically increased after fetching a byte from Memory.  Example: JUMP, CALL, INTRRUPT this may change the content of PC.  DATA POINTER (DPTR): DPTR is 16 bit register. It is used to hold the address of data in memory. It can be used as a 16 bit data register or two independent 8 bit registers.  It serves as a base register in case of instruction handling Look-Up tables & external data transfer. For 8 bit operation it works as DPH (8 bit) & DPL (8 bit). SFR address is 82H & 83H.  PROGRAM STATUS WORD (PSW) & FLAGS: Deny instructions affect the Status Flag. In order to address grouping they form to PSW.  Flags are 1 bit registers provided to store the status of the result of same instruction. Flag is a flip flop that indicates some condition produced by the execution of the instruction. It’s total size of 8 bit register. SFR address is D0H.
  • 12. DESCRIPTION OF 8051 MICROCONTROLLER (Cont..)  The 8051 has four math flags including Carry(CY), Auxiliary Carry(AC), Overflow(OV), Parity(P).  CARRY FLAG: The carry flag will be set when the carry will generate of borrow out from MSB (D7 bit) of result.  AUXILIARY CARRY FLAG: The AC flag is set when the carry out of the lower Nibble to higher Nibble or whenever the borrow from higher Nibble to lower Nibble.  OVERFLOW FLAG: The OV flag will be set, if an arithmetic overflow has occurred, i.e.: a significant bit has been last because of the result exceeded the capacity of its destination location.  PARITY FLAG: The parity flag is set when the result has even parity, i.e.: Even numbers of 1’s.  Bit RS0 & RS1 are used to change the Bank Registers values & F0 flag is user defined flag.
  • 13. DESCRIPTION OF 8051 MICROCONTROLLER (Cont..)  STACK POINTER (SP): The stack is reserved area of the Memory in RAM where Temporary info. may be stored. An 8 bit SP is used to hold the address of the most recent Stack entry.  This location which has the most recent entry is called as the TOP OF STACK. When the information is written in Stack, operation is called PUSH. The information is read on Stack, operation is called POP. Stack works on the principle of Last in First Out or First in Last Out.  It can take value from 00 to FFH. On Reset on power up, SP contains the value 07H as in figure.
  • 14. DESCRIPTION OF 8051 MICROCONTROLLER (Cont..)  TIMER & COUNTERS:  8051 has two 16 bits Timer/Counter registers namely Timer 0 (T0) & Timer 1 (T1).  Both these registers can operate as timer or an counter. When used as a “Timer” the register is programmed to count the internal clock pulse. The internal clock pulse are generated from a constant clock generator, the count loaded in the register gives constant time. Register incremented every Machine cycle.  One machine cycle consists 12 Oscillator periods & so the counting rate is 1/12 of Oscillator frequency.  When used as a “Counter”, the Microcontroller is programmed to count external pulses. Register is incremented in response to high to low transition of the corresponding external input pin, T0 & T1.
  • 15. DESCRIPTION OF 8051 MICROCONTROLLER (Cont..) The counter/Timer is divided into 8 bit registers called the timer low and high.
  • 19. APPLICATION OF 8051 MICROCONTROLLER  It is used in various fields of day to day life:  Automobile,  Aeronautics,  Space,  Railways,  Mobile Phones,  Washing Machines,  CD/DVD Players,  Cameras & Computers,  Security Alarms,  Robotics & Remote sensing Devices & Radio,  Microwave Owens etc.
  • 20. CONCLUSION  So, by using this kind of Integrated Chip or IC’s we can able to generate desired projects very easily. Also, it is very easy to deal with the Programming of 8051.