SlideShare a Scribd company logo
1 of 17
Contents
• Introduction
• Feature of 8051
• Microcontroller Vs Microprocessor
• Internal Architecture 8051
• Pin Diagram of 8051
• Memory Organization of 8051
Prof. R. S. Devhade (LKDKB Science College, Lonar)
Introduction
Prof. R. S. Devhade (LKDKB Science College, Lonar)
• The microcontroller is nothing but the small programmable controller and same as
that of single chip computer.
• A microcontroller is a computer present in a single integrated circuit which is
dedicated to perform one task and execute one specific application.
• It contains memory, programmable input/output peripherals as well a processor.
• Microcontrollers are mostly designed for embedded applications and are heavily
used in automatically controlled electronic devices such as cell phones, cameras,
microwave ovens, washing machines, etc.
• Microcontrollers are used to execute a single task within an application.
• It consists of CPU, RAM, ROM, I/O ports, serial port, Timers, ADC & DAC, Interrupt
control, Special function block etc.
• All of these above blocks are built in a single chip of 40-pin for 8051 µc.
• The Intel 8051is belonging to MCS51 family which is 8-bit µc family have the
different members as 8031, 8048,8051,8751 out of these 8-bits µc has inbuilt E-
PROM available in it.
•
• The 8051 Microcontroller is one of the basic types of microcontroller, designed by
Intel in 1980’s.
• This microcontroller was based on Harvard Architecture and developed primarily for
use in embedded systems technology.
• Normally, this microcontroller was developed using NMOS technology, which
requires more power to operate.
Prof. R. S. Devhade (LKDKB Science College, Lonar)
Feature of 8051
• Microcontroller having inbuilt 4KB of ROM and 128 byte RAM. The ROM is also
called program memory where as RAM is called as data memory.
• Microcontroller having four I/O ports each of 8-builts available as P0, P1, P2 & P3.
All these port are bit addressable.
• It is having Boolean processor inbuilt available which operates on various Boolean
instruction.
• The microcontroller has five inbuilt interrupt source, out of which two are hardware
and remaining three are software interrupt.
• It has inbuilt 8-bit of data bus and 16-address bus.
• It has 64KB attached external memory because of 16-bit address bus.
• It has four register banks as bank0, bank1, bank2, bank3; each bank is of 8-byte
containing 8 register each of single byte (8-bit).
• It has two 16-bit timer and counter. Prof. R. S. Devhade (LKDKB Science College, Lonar)
Microprocessor Vs Microcontroller
It is a single chip without I/O, memory,
timer/counter and serial interface
It is single chip with built inside ports,
timer/counter, memory and serial interface.
The instruction of microprocessor is lengthy. The instruction set of microcontroller is small.
Microprocessor have not bit addressable
instruction
Microcontroller has built bit addressable
instruction.
Program of microprocessor generally terminated
with HLT instruction.
Program of microcontroller generally terminated
with RET instruction.
Microprocessor is not operated with Boolean
instructions.
Microcontroller operated with Boolean
instruction.
Microprocessor have not inbuilt RAM or ROM Microcontroller have inbuilt internal RAM or
ROM.
Very few pins are programmable. Most of the pins are programmable.
Microprocessor have not inbuilt I/O port Microcontroller have inbuilt I/O four port.
Various microprocessor are 8085, 8086 Various microcontroller are 8031, 8051.
Prof. R. S. Devhade (LKDKB Science College, Lonar)
Internal Architecture of 8051
Prof. R. S. Devhade (LKDKB Science College, Lonar)
• Accumulator
• Register B
• 8-bit ALU
• PSW or flag register (8-bit)
• PC (16-bit)
• DPTR (16-bit)
• SP (8-bit)
• Four I/O port
• Various SFR
The above figure shows the block diagram of Intel 8051 µc. it contains
the following important block:
Prof. R. S. Devhade (LKDKB Science College, Lonar)
Pin Diagram of 8051
Prof. R. S. Devhade (LKDKB Science College, Lonar)
• One of the most useful features of the 8051 is that it contains four
I/O ports (P0 - P3)
• Port 0 (pins 32-39):P0(P0.0~P0.7)
– 8-bit R/W - General Purpose I/O
– Or acts as a multiplexed low byte address and data bus for external memory
design
– The default address of these pin is 80H
• Port 1 (pins 1-8) :P1(P1.0~P1.7)
– Only 8-bit R/W - General Purpose I/O
– The default address of these pin is 90H
• Port 2 (pins 21-28):P2(P2.0~P2.7)
– 8-bit R/W - General Purpose I/O
– Or high byte of the address bus for external memory design
– The default address of these pin is A0H
• Port 3 (pins 10-17):P3(P3.0~P3.7)
– General Purpose I/O
– if not using any of the internal peripherals (timers) or external interrupts.
– The default address of these pin is B0H
• Each port can be used as input or output (bi-direction)
IMPORTANT PINS (IO Ports)
Prof. R. S. Devhade (LKDKB Science College, Lonar)
Memory Organization of 8051
 An 8051 microcontroller is having two types of memory organized as
• Internal memory
• External memory
 The memory structure or organization for 8051 is follows
Prof. R. S. Devhade (LKDKB Science College, Lonar)
• The internal Memory of 8051 Microcontroller is separated in Program Memory (ROM)
and Data Memory (RAM).
• The Program Memory of the 8051 Microcontroller is used for storing the program to be
executed i.e. instructions.
• The Data Memory on the other hand, is used for storing temporary variable data and
intermediate results.
• The ROM of 8051 is also called as
program memory which is inbuilt in
microcontroller.
• The starting address of this memory
will be from 000H, ending up to
FFFH.
 4 KB ROM:
Prof. R. S. Devhade (LKDKB Science College, Lonar)
Program memory accessed through EA pin. In program memory two
categories takes place:
If EA is HIGH, internal program memory is
accessed from 0000H to 0FFFH memory
location and external program memory
accessed from 1000H to FFFFH memory
locations.
If EA is LOW, only external program
memory accessed from 0000H to FFFFH
memory locations.
Prof. R. S. Devhade (LKDKB Science College, Lonar)
 128 byte RAM:
 This memory is also called as data memory.
 The 128 byte RAM (data memory) which is further distributed as:
• 32-byte register bank
• 16-byte bit addressable
• 80-byte scratched pad
• Also an external memory of size maximum up to 64KB
can be integrated with 8051 microcontroller.
• The 8081 microcontroller has 16 address lines, hence
the total memory addressing capacity is
216 = 64KB.
• Intel 8051 can be interface with maximum 64KB of
memory.
• The starting address to this memory is from 0000H to
FFFFH.
Prof. R. S. Devhade (LKDKB Science College, Lonar)
THANK
YOU……
microcontroller.pptx

More Related Content

Similar to microcontroller.pptx

PRESENTATION OF MICROCONTROLLER
PRESENTATION OF MICROCONTROLLERPRESENTATION OF MICROCONTROLLER
PRESENTATION OF MICROCONTROLLERAviSharma63
 
8051 Microcontroller
8051 Microcontroller8051 Microcontroller
8051 MicrocontrollerJai Sudhan
 
8051 microcontroller
8051 microcontroller 8051 microcontroller
8051 microcontroller nitugatkal
 
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT IV Designing Embedded System with 8051...
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT IV  Designing Embedded System with 8051...SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT IV  Designing Embedded System with 8051...
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT IV Designing Embedded System with 8051...Arti Parab Academics
 
8051 Architecture and PIN Configuration.pdf
8051 Architecture and PIN Configuration.pdf8051 Architecture and PIN Configuration.pdf
8051 Architecture and PIN Configuration.pdfSrikrishna Thota
 
Unit 2 - Microprocessor & Microcontroller.pptx
Unit 2 -  Microprocessor & Microcontroller.pptxUnit 2 -  Microprocessor & Microcontroller.pptx
Unit 2 - Microprocessor & Microcontroller.pptxCharunnath S V
 
EMBEDDED SYSTEMS AND IOT lab manual for enginnering students
EMBEDDED SYSTEMS AND IOT lab manual for enginnering studentsEMBEDDED SYSTEMS AND IOT lab manual for enginnering students
EMBEDDED SYSTEMS AND IOT lab manual for enginnering studentseceprinter6
 
lec3-8051microcontrollerarchitecture-230130044236-5c11a082.pptx
lec3-8051microcontrollerarchitecture-230130044236-5c11a082.pptxlec3-8051microcontrollerarchitecture-230130044236-5c11a082.pptx
lec3-8051microcontrollerarchitecture-230130044236-5c11a082.pptxMadavanR1
 
Embedded training report(mcs 51)
Embedded training report(mcs 51)Embedded training report(mcs 51)
Embedded training report(mcs 51)Gurwinder Singh
 
Study of 8051 microcontroller
Study of 8051 microcontrollerStudy of 8051 microcontroller
Study of 8051 microcontroller918007165995
 

Similar to microcontroller.pptx (20)

PRESENTATION OF MICROCONTROLLER
PRESENTATION OF MICROCONTROLLERPRESENTATION OF MICROCONTROLLER
PRESENTATION OF MICROCONTROLLER
 
8051 Microcontroller
8051 Microcontroller8051 Microcontroller
8051 Microcontroller
 
8051 microcontroller
8051 microcontroller 8051 microcontroller
8051 microcontroller
 
Unit 5
Unit 5Unit 5
Unit 5
 
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT IV Designing Embedded System with 8051...
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT IV  Designing Embedded System with 8051...SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT IV  Designing Embedded System with 8051...
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT IV Designing Embedded System with 8051...
 
Unit 4
Unit 4Unit 4
Unit 4
 
8051 Architecture and PIN Configuration.pdf
8051 Architecture and PIN Configuration.pdf8051 Architecture and PIN Configuration.pdf
8051 Architecture and PIN Configuration.pdf
 
Micro controller
Micro controllerMicro controller
Micro controller
 
Ch3 ppt
Ch3 pptCh3 ppt
Ch3 ppt
 
Micro 8051
Micro 8051Micro 8051
Micro 8051
 
Unit 2 - Microprocessor & Microcontroller.pptx
Unit 2 -  Microprocessor & Microcontroller.pptxUnit 2 -  Microprocessor & Microcontroller.pptx
Unit 2 - Microprocessor & Microcontroller.pptx
 
EMBEDDED SYSTEMS AND IOT lab manual for enginnering students
EMBEDDED SYSTEMS AND IOT lab manual for enginnering studentsEMBEDDED SYSTEMS AND IOT lab manual for enginnering students
EMBEDDED SYSTEMS AND IOT lab manual for enginnering students
 
8051 dev board guide
8051 dev board guide8051 dev board guide
8051 dev board guide
 
8051.pptx
8051.pptx8051.pptx
8051.pptx
 
8051
80518051
8051
 
lec3-8051microcontrollerarchitecture-230130044236-5c11a082.pptx
lec3-8051microcontrollerarchitecture-230130044236-5c11a082.pptxlec3-8051microcontrollerarchitecture-230130044236-5c11a082.pptx
lec3-8051microcontrollerarchitecture-230130044236-5c11a082.pptx
 
002079
002079002079
002079
 
Embedded training report(mcs 51)
Embedded training report(mcs 51)Embedded training report(mcs 51)
Embedded training report(mcs 51)
 
Study of 8051 microcontroller
Study of 8051 microcontrollerStudy of 8051 microcontroller
Study of 8051 microcontroller
 
UNIT 4.pptx
UNIT 4.pptxUNIT 4.pptx
UNIT 4.pptx
 

More from Adarsh College, Hingoli (7)

Microsoft Excell.pptx
Microsoft Excell.pptxMicrosoft Excell.pptx
Microsoft Excell.pptx
 
class and object in c++.pptx
class and object in c++.pptxclass and object in c++.pptx
class and object in c++.pptx
 
The 8086 microprocessor
The  8086 microprocessorThe  8086 microprocessor
The 8086 microprocessor
 
8051 Microcontroller
8051 Microcontroller8051 Microcontroller
8051 Microcontroller
 
Ms excel
Ms excelMs excel
Ms excel
 
DATABASE MANAGEMENT SYSTEM
DATABASE MANAGEMENT SYSTEMDATABASE MANAGEMENT SYSTEM
DATABASE MANAGEMENT SYSTEM
 
DBMS & RDBMS
DBMS & RDBMSDBMS & RDBMS
DBMS & RDBMS
 

Recently uploaded

Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...Lokesh Kothari
 
Recombinant DNA technology (Immunological screening)
Recombinant DNA technology (Immunological screening)Recombinant DNA technology (Immunological screening)
Recombinant DNA technology (Immunological screening)PraveenaKalaiselvan1
 
Botany krishna series 2nd semester Only Mcq type questions
Botany krishna series 2nd semester Only Mcq type questionsBotany krishna series 2nd semester Only Mcq type questions
Botany krishna series 2nd semester Only Mcq type questionsSumit Kumar yadav
 
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 bAsymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 bSérgio Sacani
 
Hubble Asteroid Hunter III. Physical properties of newly found asteroids
Hubble Asteroid Hunter III. Physical properties of newly found asteroidsHubble Asteroid Hunter III. Physical properties of newly found asteroids
Hubble Asteroid Hunter III. Physical properties of newly found asteroidsSérgio Sacani
 
Green chemistry and Sustainable development.pptx
Green chemistry  and Sustainable development.pptxGreen chemistry  and Sustainable development.pptx
Green chemistry and Sustainable development.pptxRajatChauhan518211
 
Pests of mustard_Identification_Management_Dr.UPR.pdf
Pests of mustard_Identification_Management_Dr.UPR.pdfPests of mustard_Identification_Management_Dr.UPR.pdf
Pests of mustard_Identification_Management_Dr.UPR.pdfPirithiRaju
 
Raman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral Analysis
Raman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral AnalysisRaman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral Analysis
Raman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral AnalysisDiwakar Mishra
 
Natural Polymer Based Nanomaterials
Natural Polymer Based NanomaterialsNatural Polymer Based Nanomaterials
Natural Polymer Based NanomaterialsAArockiyaNisha
 
Hire 💕 9907093804 Hooghly Call Girls Service Call Girls Agency
Hire 💕 9907093804 Hooghly Call Girls Service Call Girls AgencyHire 💕 9907093804 Hooghly Call Girls Service Call Girls Agency
Hire 💕 9907093804 Hooghly Call Girls Service Call Girls AgencySheetal Arora
 
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...Sérgio Sacani
 
Biopesticide (2).pptx .This slides helps to know the different types of biop...
Biopesticide (2).pptx  .This slides helps to know the different types of biop...Biopesticide (2).pptx  .This slides helps to know the different types of biop...
Biopesticide (2).pptx .This slides helps to know the different types of biop...RohitNehra6
 
Botany 4th semester file By Sumit Kumar yadav.pdf
Botany 4th semester file By Sumit Kumar yadav.pdfBotany 4th semester file By Sumit Kumar yadav.pdf
Botany 4th semester file By Sumit Kumar yadav.pdfSumit Kumar yadav
 
Physiochemical properties of nanomaterials and its nanotoxicity.pptx
Physiochemical properties of nanomaterials and its nanotoxicity.pptxPhysiochemical properties of nanomaterials and its nanotoxicity.pptx
Physiochemical properties of nanomaterials and its nanotoxicity.pptxAArockiyaNisha
 
Presentation Vikram Lander by Vedansh Gupta.pptx
Presentation Vikram Lander by Vedansh Gupta.pptxPresentation Vikram Lander by Vedansh Gupta.pptx
Presentation Vikram Lander by Vedansh Gupta.pptxgindu3009
 
TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...
TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...
TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...ssifa0344
 
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCR
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCRStunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCR
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCRDelhi Call girls
 
GBSN - Biochemistry (Unit 1)
GBSN - Biochemistry (Unit 1)GBSN - Biochemistry (Unit 1)
GBSN - Biochemistry (Unit 1)Areesha Ahmad
 

Recently uploaded (20)

Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
Labelling Requirements and Label Claims for Dietary Supplements and Recommend...
 
Recombinant DNA technology (Immunological screening)
Recombinant DNA technology (Immunological screening)Recombinant DNA technology (Immunological screening)
Recombinant DNA technology (Immunological screening)
 
Botany krishna series 2nd semester Only Mcq type questions
Botany krishna series 2nd semester Only Mcq type questionsBotany krishna series 2nd semester Only Mcq type questions
Botany krishna series 2nd semester Only Mcq type questions
 
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 bAsymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
 
Hubble Asteroid Hunter III. Physical properties of newly found asteroids
Hubble Asteroid Hunter III. Physical properties of newly found asteroidsHubble Asteroid Hunter III. Physical properties of newly found asteroids
Hubble Asteroid Hunter III. Physical properties of newly found asteroids
 
Green chemistry and Sustainable development.pptx
Green chemistry  and Sustainable development.pptxGreen chemistry  and Sustainable development.pptx
Green chemistry and Sustainable development.pptx
 
Pests of mustard_Identification_Management_Dr.UPR.pdf
Pests of mustard_Identification_Management_Dr.UPR.pdfPests of mustard_Identification_Management_Dr.UPR.pdf
Pests of mustard_Identification_Management_Dr.UPR.pdf
 
Raman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral Analysis
Raman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral AnalysisRaman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral Analysis
Raman spectroscopy.pptx M Pharm, M Sc, Advanced Spectral Analysis
 
Natural Polymer Based Nanomaterials
Natural Polymer Based NanomaterialsNatural Polymer Based Nanomaterials
Natural Polymer Based Nanomaterials
 
Hire 💕 9907093804 Hooghly Call Girls Service Call Girls Agency
Hire 💕 9907093804 Hooghly Call Girls Service Call Girls AgencyHire 💕 9907093804 Hooghly Call Girls Service Call Girls Agency
Hire 💕 9907093804 Hooghly Call Girls Service Call Girls Agency
 
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...
 
Biopesticide (2).pptx .This slides helps to know the different types of biop...
Biopesticide (2).pptx  .This slides helps to know the different types of biop...Biopesticide (2).pptx  .This slides helps to know the different types of biop...
Biopesticide (2).pptx .This slides helps to know the different types of biop...
 
Botany 4th semester file By Sumit Kumar yadav.pdf
Botany 4th semester file By Sumit Kumar yadav.pdfBotany 4th semester file By Sumit Kumar yadav.pdf
Botany 4th semester file By Sumit Kumar yadav.pdf
 
Physiochemical properties of nanomaterials and its nanotoxicity.pptx
Physiochemical properties of nanomaterials and its nanotoxicity.pptxPhysiochemical properties of nanomaterials and its nanotoxicity.pptx
Physiochemical properties of nanomaterials and its nanotoxicity.pptx
 
Presentation Vikram Lander by Vedansh Gupta.pptx
Presentation Vikram Lander by Vedansh Gupta.pptxPresentation Vikram Lander by Vedansh Gupta.pptx
Presentation Vikram Lander by Vedansh Gupta.pptx
 
TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...
TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...
TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...
 
The Philosophy of Science
The Philosophy of ScienceThe Philosophy of Science
The Philosophy of Science
 
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCR
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCRStunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCR
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCR
 
GBSN - Biochemistry (Unit 1)
GBSN - Biochemistry (Unit 1)GBSN - Biochemistry (Unit 1)
GBSN - Biochemistry (Unit 1)
 
CELL -Structural and Functional unit of life.pdf
CELL -Structural and Functional unit of life.pdfCELL -Structural and Functional unit of life.pdf
CELL -Structural and Functional unit of life.pdf
 

microcontroller.pptx

  • 1.
  • 2. Contents • Introduction • Feature of 8051 • Microcontroller Vs Microprocessor • Internal Architecture 8051 • Pin Diagram of 8051 • Memory Organization of 8051 Prof. R. S. Devhade (LKDKB Science College, Lonar)
  • 3. Introduction Prof. R. S. Devhade (LKDKB Science College, Lonar) • The microcontroller is nothing but the small programmable controller and same as that of single chip computer. • A microcontroller is a computer present in a single integrated circuit which is dedicated to perform one task and execute one specific application. • It contains memory, programmable input/output peripherals as well a processor. • Microcontrollers are mostly designed for embedded applications and are heavily used in automatically controlled electronic devices such as cell phones, cameras, microwave ovens, washing machines, etc. • Microcontrollers are used to execute a single task within an application. • It consists of CPU, RAM, ROM, I/O ports, serial port, Timers, ADC & DAC, Interrupt control, Special function block etc. • All of these above blocks are built in a single chip of 40-pin for 8051 µc.
  • 4. • The Intel 8051is belonging to MCS51 family which is 8-bit µc family have the different members as 8031, 8048,8051,8751 out of these 8-bits µc has inbuilt E- PROM available in it. • • The 8051 Microcontroller is one of the basic types of microcontroller, designed by Intel in 1980’s. • This microcontroller was based on Harvard Architecture and developed primarily for use in embedded systems technology. • Normally, this microcontroller was developed using NMOS technology, which requires more power to operate. Prof. R. S. Devhade (LKDKB Science College, Lonar)
  • 5. Feature of 8051 • Microcontroller having inbuilt 4KB of ROM and 128 byte RAM. The ROM is also called program memory where as RAM is called as data memory. • Microcontroller having four I/O ports each of 8-builts available as P0, P1, P2 & P3. All these port are bit addressable. • It is having Boolean processor inbuilt available which operates on various Boolean instruction. • The microcontroller has five inbuilt interrupt source, out of which two are hardware and remaining three are software interrupt. • It has inbuilt 8-bit of data bus and 16-address bus. • It has 64KB attached external memory because of 16-bit address bus. • It has four register banks as bank0, bank1, bank2, bank3; each bank is of 8-byte containing 8 register each of single byte (8-bit). • It has two 16-bit timer and counter. Prof. R. S. Devhade (LKDKB Science College, Lonar)
  • 6. Microprocessor Vs Microcontroller It is a single chip without I/O, memory, timer/counter and serial interface It is single chip with built inside ports, timer/counter, memory and serial interface. The instruction of microprocessor is lengthy. The instruction set of microcontroller is small. Microprocessor have not bit addressable instruction Microcontroller has built bit addressable instruction. Program of microprocessor generally terminated with HLT instruction. Program of microcontroller generally terminated with RET instruction. Microprocessor is not operated with Boolean instructions. Microcontroller operated with Boolean instruction. Microprocessor have not inbuilt RAM or ROM Microcontroller have inbuilt internal RAM or ROM. Very few pins are programmable. Most of the pins are programmable. Microprocessor have not inbuilt I/O port Microcontroller have inbuilt I/O four port. Various microprocessor are 8085, 8086 Various microcontroller are 8031, 8051. Prof. R. S. Devhade (LKDKB Science College, Lonar)
  • 7. Internal Architecture of 8051 Prof. R. S. Devhade (LKDKB Science College, Lonar)
  • 8. • Accumulator • Register B • 8-bit ALU • PSW or flag register (8-bit) • PC (16-bit) • DPTR (16-bit) • SP (8-bit) • Four I/O port • Various SFR The above figure shows the block diagram of Intel 8051 µc. it contains the following important block: Prof. R. S. Devhade (LKDKB Science College, Lonar)
  • 9. Pin Diagram of 8051 Prof. R. S. Devhade (LKDKB Science College, Lonar)
  • 10. • One of the most useful features of the 8051 is that it contains four I/O ports (P0 - P3) • Port 0 (pins 32-39):P0(P0.0~P0.7) – 8-bit R/W - General Purpose I/O – Or acts as a multiplexed low byte address and data bus for external memory design – The default address of these pin is 80H • Port 1 (pins 1-8) :P1(P1.0~P1.7) – Only 8-bit R/W - General Purpose I/O – The default address of these pin is 90H • Port 2 (pins 21-28):P2(P2.0~P2.7) – 8-bit R/W - General Purpose I/O – Or high byte of the address bus for external memory design – The default address of these pin is A0H • Port 3 (pins 10-17):P3(P3.0~P3.7) – General Purpose I/O – if not using any of the internal peripherals (timers) or external interrupts. – The default address of these pin is B0H • Each port can be used as input or output (bi-direction) IMPORTANT PINS (IO Ports) Prof. R. S. Devhade (LKDKB Science College, Lonar)
  • 11. Memory Organization of 8051  An 8051 microcontroller is having two types of memory organized as • Internal memory • External memory  The memory structure or organization for 8051 is follows Prof. R. S. Devhade (LKDKB Science College, Lonar)
  • 12. • The internal Memory of 8051 Microcontroller is separated in Program Memory (ROM) and Data Memory (RAM). • The Program Memory of the 8051 Microcontroller is used for storing the program to be executed i.e. instructions. • The Data Memory on the other hand, is used for storing temporary variable data and intermediate results. • The ROM of 8051 is also called as program memory which is inbuilt in microcontroller. • The starting address of this memory will be from 000H, ending up to FFFH.  4 KB ROM: Prof. R. S. Devhade (LKDKB Science College, Lonar)
  • 13. Program memory accessed through EA pin. In program memory two categories takes place: If EA is HIGH, internal program memory is accessed from 0000H to 0FFFH memory location and external program memory accessed from 1000H to FFFFH memory locations. If EA is LOW, only external program memory accessed from 0000H to FFFFH memory locations. Prof. R. S. Devhade (LKDKB Science College, Lonar)
  • 14.  128 byte RAM:  This memory is also called as data memory.  The 128 byte RAM (data memory) which is further distributed as: • 32-byte register bank • 16-byte bit addressable • 80-byte scratched pad
  • 15. • Also an external memory of size maximum up to 64KB can be integrated with 8051 microcontroller. • The 8081 microcontroller has 16 address lines, hence the total memory addressing capacity is 216 = 64KB. • Intel 8051 can be interface with maximum 64KB of memory. • The starting address to this memory is from 0000H to FFFFH. Prof. R. S. Devhade (LKDKB Science College, Lonar)