SlideShare a Scribd company logo
1 of 18
Introduction 
to 
microprocessor 8051 
B.V.S.RAGHAVA 
12MT06PED005
Why do we need to learn 
Microprocessors/controllers? 
• The microprocessor is the core of computer systems. 
• Nowadays many communication, digital 
entertainment, portable devices, are controlled by 
them. 
• A designer should know what types of components 
he needs, ways to reduce production costs and 
product reliable.
Criteria for Choosing a Microcontroller 
• Meeting the computing needs of the task at hand 
efficiently and cost effectively 
▫ Speed 
▫ Packaging 
▫ Power consumption 
▫ The amount of RAM and ROM on chip 
▫ The number of I/O pins and the timer on chip 
▫ How easy to upgrade to higher performance or lower 
power-consumption versions 
▫ Cost per unit
General-purpose microprocessor 
• CPU for Computers 
• No RAM, ROM, I/O on CPU chip itself 
• Example:Intel’s x86, Motorola’s 680x0 
CPU 
General- 
Purpose 
Micro-processor 
Many chips on mother’s board 
RAM ROM I/O 
Port 
Time 
r 
Seria 
l 
COM 
Port 
Data 
Bus 
Address Bus 
General-Purpose Microprocessor System
Microcontroller 
• A smaller computer 
• On-chip RAM, ROM, I/O ports,timers etc 
• Example:Motorola’s 6811, Intel’s 8051, Zilog’s Z8 and PIC 16X 
RAM 
ROM 
I/O 
Port 
Time 
r 
Seria 
l 
COM 
Port 
CP 
U 
A single chip 
Microcontroller
Microprocessor vs. Microcontroller 
Microprocessor 
• CPU is stand-alone, RAM, 
ROM, I/O, timer are separate 
• designer can decide on the 
amount of ROM, RAM and 
I/O ports. 
• expansive 
Microcontroller 
• CPU, RAM, ROM, I/O and 
timer are all on a single 
chip 
• fix amount of on-chip ROM, 
RAM, I/O ports 
• for applications in which 
cost, power and space are 
critical
Microcontroller Applications 
• Home 
▫ Appliances, intercom, telephones, security systems, garage door 
openers, answering machines, fax machines, home computers, TVs, 
cable TV tuner, VCR, camcorder, remote controls, video games, 
cellular phones, musical instruments, sewing machines, lighting 
control, paging, camera, pinball machines, toys, exercise equipment 
etc. 
• Office 
▫ Telephones, computers, security systems, fax machines, microwave, 
copier, laser printer, color printer, paging etc. 
• Auto 
▫ Trip computer, engine control, air bag, ABS, instrumentation, 
security system, transmission control, entertainment, climate 
control, cellular phone, keyless entry 
7
Comparison of the 8051 Family Members 
3 FAMILY MEMBERS 
Feature 8051 8052 8031 
ROM (program space in bytes) 4K 8K 0K 
RAM (bytes) 128 256 128 
Timers 2 3 2 
I/O pins 32 32 32 
Serial port 1 1 1 
Interrupt sources 6 8 6
8051 Features 
• 64KB Program Memory address space 
• 64KB Data Memory address space 
• 4K bytes of on-chip Program Memory 
• 128 bytes of on-chip Data RAM 
• 32 bidirectional and individually addressable 
1/0 lines 
• Two 16-bit timer/counters 
• On-chip clock oscillator 
9
PIN DIAGRAM:
Input/output Ports (I/O Ports) 
8051 microcontrollers have 4 I/O ports each 
comprising 8 bits which can be configured as inputs 
or outputs. 
Pin configuration, i.e. whether it is to be configured 
as an input or an output, depends on its logic state.
Port 0 
The P0 port is characterized by two functions. If 
external memory is used then the lower address 
byte (addresses A0-A7) is applied on it. 
Otherwise, all bits of this port are configured as 
inputs/outputs.
Port 1 
P1 is a true I/O port, because it doesn't have any 
alternative functions as is the case with P0, but 
can be configured as general I/O only. 
It has a pull-up resistor built-in and is completely 
compatible with TTL circuits.
Port 2 
P2 acts similarly to P0 when external memory is used. Pins 
of this port occupy addresses intended for external memory 
chip. 
 This time it is about the higher address byte with addresses 
A8-A15. 
When no memory is added, this port can be used as a 
general input/output port showing features similar to P1.
Get a byte from P2 and send it to P1.
Port 3 
All port pins can be used as general I/O, but they also have 
an alternative function. 
In order to use these alternative functions, a logic one (1) 
must be applied to appropriate bit of the P3 register. 
In terms of hardware, this port is similar to P0, with the 
difference that its pins have a pull-up resistor built-in.
Port 3 • Port 3 can be used as input or 
output. 
• Port 3 has the additional 
function of providing some 
extremely important signals
12 mt06ped005

More Related Content

What's hot

Complete factory automation
Complete factory automation Complete factory automation
Complete factory automation Automation123
 
Presentation for EEE engineers on Microcontroller by Dilip Kumar Roy
Presentation for EEE engineers on Microcontroller by Dilip Kumar RoyPresentation for EEE engineers on Microcontroller by Dilip Kumar Roy
Presentation for EEE engineers on Microcontroller by Dilip Kumar RoyDilip Kumar Ckt
 
Interfacing of io device to 8085
Interfacing of io device to 8085Interfacing of io device to 8085
Interfacing of io device to 8085Nitin Ahire
 
Advance Microcontroller AVR
Advance Microcontroller AVRAdvance Microcontroller AVR
Advance Microcontroller AVRDaksh Raj Chopra
 
Part 3 block diagram of PLC.
Part 3 block diagram of PLC.Part 3 block diagram of PLC.
Part 3 block diagram of PLC.KuldeepMakwana6
 
PIC 16F877 micro controller by Gaurav raikar
PIC 16F877 micro controller by Gaurav raikarPIC 16F877 micro controller by Gaurav raikar
PIC 16F877 micro controller by Gaurav raikarGauravRaikar3
 
AVR I/O programming Atmega 64 uNiboard ThinkLABS maaniq
AVR I/O programming Atmega 64 uNiboard ThinkLABS maaniqAVR I/O programming Atmega 64 uNiboard ThinkLABS maaniq
AVR I/O programming Atmega 64 uNiboard ThinkLABS maaniqManicka Raja PL
 
Pe 3231 week 15 18 plc
Pe 3231 week 15 18  plcPe 3231 week 15 18  plc
Pe 3231 week 15 18 plcCharlton Inao
 
ppt on PLC automation
ppt on PLC automationppt on PLC automation
ppt on PLC automationMd Talib
 
Pic microcontroller [autosaved] [autosaved]
Pic microcontroller [autosaved] [autosaved]Pic microcontroller [autosaved] [autosaved]
Pic microcontroller [autosaved] [autosaved]gauravholani
 
Programming with PIC microcontroller
Programming with PIC microcontroller Programming with PIC microcontroller
Programming with PIC microcontroller Raghav Shetty
 
Plc scada by bhushan kumbhalkar
Plc scada by bhushan kumbhalkarPlc scada by bhushan kumbhalkar
Plc scada by bhushan kumbhalkarBhushan Kumbhalkar
 

What's hot (19)

Complete factory automation
Complete factory automation Complete factory automation
Complete factory automation
 
Presentation for EEE engineers on Microcontroller by Dilip Kumar Roy
Presentation for EEE engineers on Microcontroller by Dilip Kumar RoyPresentation for EEE engineers on Microcontroller by Dilip Kumar Roy
Presentation for EEE engineers on Microcontroller by Dilip Kumar Roy
 
Interfacing of io device to 8085
Interfacing of io device to 8085Interfacing of io device to 8085
Interfacing of io device to 8085
 
Advance Microcontroller AVR
Advance Microcontroller AVRAdvance Microcontroller AVR
Advance Microcontroller AVR
 
Part 3 block diagram of PLC.
Part 3 block diagram of PLC.Part 3 block diagram of PLC.
Part 3 block diagram of PLC.
 
PIC 16F877 micro controller by Gaurav raikar
PIC 16F877 micro controller by Gaurav raikarPIC 16F877 micro controller by Gaurav raikar
PIC 16F877 micro controller by Gaurav raikar
 
PIC Microcontrollers
PIC MicrocontrollersPIC Microcontrollers
PIC Microcontrollers
 
AVR I/O programming Atmega 64 uNiboard ThinkLABS maaniq
AVR I/O programming Atmega 64 uNiboard ThinkLABS maaniqAVR I/O programming Atmega 64 uNiboard ThinkLABS maaniq
AVR I/O programming Atmega 64 uNiboard ThinkLABS maaniq
 
Microprocessor history1
Microprocessor history1Microprocessor history1
Microprocessor history1
 
Microcontroller
MicrocontrollerMicrocontroller
Microcontroller
 
Pe 3231 week 15 18 plc
Pe 3231 week 15 18  plcPe 3231 week 15 18  plc
Pe 3231 week 15 18 plc
 
ppt on PLC automation
ppt on PLC automationppt on PLC automation
ppt on PLC automation
 
Digital i o
Digital i oDigital i o
Digital i o
 
Pic microcontroller [autosaved] [autosaved]
Pic microcontroller [autosaved] [autosaved]Pic microcontroller [autosaved] [autosaved]
Pic microcontroller [autosaved] [autosaved]
 
Programming with PIC microcontroller
Programming with PIC microcontroller Programming with PIC microcontroller
Programming with PIC microcontroller
 
Intrerfacing i
Intrerfacing iIntrerfacing i
Intrerfacing i
 
Em s7 plc
Em s7 plcEm s7 plc
Em s7 plc
 
Presentation
PresentationPresentation
Presentation
 
Plc scada by bhushan kumbhalkar
Plc scada by bhushan kumbhalkarPlc scada by bhushan kumbhalkar
Plc scada by bhushan kumbhalkar
 

Viewers also liked

Viewers also liked (18)

Struktur sel (konsep sel)
Struktur sel (konsep sel)Struktur sel (konsep sel)
Struktur sel (konsep sel)
 
Hemanth143
Hemanth143 Hemanth143
Hemanth143
 
Basic programming of 8085
Basic programming of 8085 Basic programming of 8085
Basic programming of 8085
 
8051 serial communication1
8051 serial communication1 8051 serial communication1
8051 serial communication1
 
Lyon
LyonLyon
Lyon
 
Struktur sel (organel)
Struktur sel (organel)Struktur sel (organel)
Struktur sel (organel)
 
Ms community.cloud express-route
Ms community.cloud express-routeMs community.cloud express-route
Ms community.cloud express-route
 
презентация1
презентация1презентация1
презентация1
 
Untitled Presentation
Untitled PresentationUntitled Presentation
Untitled Presentation
 
Azure de szenarien-v2-eshelter
Azure de szenarien-v2-eshelterAzure de szenarien-v2-eshelter
Azure de szenarien-v2-eshelter
 
Ihminen puhdastilassa
Ihminen puhdastilassaIhminen puhdastilassa
Ihminen puhdastilassa
 
Jaringan komputer
Jaringan komputerJaringan komputer
Jaringan komputer
 
Storage Spaces Direct - Introduction
Storage Spaces Direct - IntroductionStorage Spaces Direct - Introduction
Storage Spaces Direct - Introduction
 
Digitale Transformation Now & Then
Digitale Transformation Now & ThenDigitale Transformation Now & Then
Digitale Transformation Now & Then
 
Puhdastilatekniikan perusteet
Puhdastilatekniikan perusteetPuhdastilatekniikan perusteet
Puhdastilatekniikan perusteet
 
Surat niaga
Surat niagaSurat niaga
Surat niaga
 
Cleanroom clothing - Why, what and how?
Cleanroom clothing - Why, what and how?Cleanroom clothing - Why, what and how?
Cleanroom clothing - Why, what and how?
 
Réinvestir le blog
Réinvestir le blogRéinvestir le blog
Réinvestir le blog
 

Similar to 12 mt06ped005

INTRODUCTION TO MICROCONTROLLER
INTRODUCTION TO MICROCONTROLLERINTRODUCTION TO MICROCONTROLLER
INTRODUCTION TO MICROCONTROLLERAnkita Jaiswal
 
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT III The 8051 Microcontrollers
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT III  The 8051 MicrocontrollersSYBSC IT SEM IV EMBEDDED SYSTEMS UNIT III  The 8051 Microcontrollers
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT III The 8051 MicrocontrollersArti Parab Academics
 
microcontroller 8051 17.07.2023.pdf
microcontroller 8051 17.07.2023.pdfmicrocontroller 8051 17.07.2023.pdf
microcontroller 8051 17.07.2023.pdf818Farida
 
Embeded system by Mitesh Kumar
Embeded system by Mitesh KumarEmbeded system by Mitesh Kumar
Embeded system by Mitesh KumarMitesh Kumar
 
Embedded systems, 8051 microcontroller
Embedded systems, 8051 microcontrollerEmbedded systems, 8051 microcontroller
Embedded systems, 8051 microcontrollerAmandeep Alag
 
Embedded training report(mcs 51)
Embedded training report(mcs 51)Embedded training report(mcs 51)
Embedded training report(mcs 51)Gurwinder Singh
 
8051 Microcontroller
8051 Microcontroller8051 Microcontroller
8051 Microcontrollerthokalpv
 
Microcontroller 8051
Microcontroller 8051Microcontroller 8051
Microcontroller 8051guest70d48b1
 
UNIT 4 8051Microcontroller.pptx
UNIT 4 8051Microcontroller.pptxUNIT 4 8051Microcontroller.pptx
UNIT 4 8051Microcontroller.pptxGowrishankar C
 
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
 
8051 microcontroller by K. Vijay Kumar
8051 microcontroller by K. Vijay Kumar8051 microcontroller by K. Vijay Kumar
8051 microcontroller by K. Vijay KumarVijay Kumar
 

Similar to 12 mt06ped005 (20)

INTRODUCTION TO MICROCONTROLLER
INTRODUCTION TO MICROCONTROLLERINTRODUCTION TO MICROCONTROLLER
INTRODUCTION TO MICROCONTROLLER
 
Uc1(vii sem)
Uc1(vii sem)Uc1(vii sem)
Uc1(vii sem)
 
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT III The 8051 Microcontrollers
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT III  The 8051 MicrocontrollersSYBSC IT SEM IV EMBEDDED SYSTEMS UNIT III  The 8051 Microcontrollers
SYBSC IT SEM IV EMBEDDED SYSTEMS UNIT III The 8051 Microcontrollers
 
microcontroller 8051 17.07.2023.pdf
microcontroller 8051 17.07.2023.pdfmicrocontroller 8051 17.07.2023.pdf
microcontroller 8051 17.07.2023.pdf
 
Embeded system by Mitesh Kumar
Embeded system by Mitesh KumarEmbeded system by Mitesh Kumar
Embeded system by Mitesh Kumar
 
8051.pptx
8051.pptx8051.pptx
8051.pptx
 
Embedded systems, 8051 microcontroller
Embedded systems, 8051 microcontrollerEmbedded systems, 8051 microcontroller
Embedded systems, 8051 microcontroller
 
Embedded training report(mcs 51)
Embedded training report(mcs 51)Embedded training report(mcs 51)
Embedded training report(mcs 51)
 
8051 Microcontroller
8051 Microcontroller8051 Microcontroller
8051 Microcontroller
 
8051 dev board guide
8051 dev board guide8051 dev board guide
8051 dev board guide
 
Microcontroller 8051
Microcontroller 8051Microcontroller 8051
Microcontroller 8051
 
Ppt embedded
Ppt embeddedPpt embedded
Ppt embedded
 
8051
80518051
8051
 
UNIT 4.pptx
UNIT 4.pptxUNIT 4.pptx
UNIT 4.pptx
 
unit-2.pptx
unit-2.pptxunit-2.pptx
unit-2.pptx
 
UNIT 4 8051Microcontroller.pptx
UNIT 4 8051Microcontroller.pptxUNIT 4 8051Microcontroller.pptx
UNIT 4 8051Microcontroller.pptx
 
002079
002079002079
002079
 
8051 Presentation
8051 Presentation8051 Presentation
8051 Presentation
 
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 microcontroller by K. Vijay Kumar
8051 microcontroller by K. Vijay Kumar8051 microcontroller by K. Vijay Kumar
8051 microcontroller by K. Vijay Kumar
 

12 mt06ped005

  • 1. Introduction to microprocessor 8051 B.V.S.RAGHAVA 12MT06PED005
  • 2. Why do we need to learn Microprocessors/controllers? • The microprocessor is the core of computer systems. • Nowadays many communication, digital entertainment, portable devices, are controlled by them. • A designer should know what types of components he needs, ways to reduce production costs and product reliable.
  • 3. Criteria for Choosing a Microcontroller • Meeting the computing needs of the task at hand efficiently and cost effectively ▫ Speed ▫ Packaging ▫ Power consumption ▫ The amount of RAM and ROM on chip ▫ The number of I/O pins and the timer on chip ▫ How easy to upgrade to higher performance or lower power-consumption versions ▫ Cost per unit
  • 4. General-purpose microprocessor • CPU for Computers • No RAM, ROM, I/O on CPU chip itself • Example:Intel’s x86, Motorola’s 680x0 CPU General- Purpose Micro-processor Many chips on mother’s board RAM ROM I/O Port Time r Seria l COM Port Data Bus Address Bus General-Purpose Microprocessor System
  • 5. Microcontroller • A smaller computer • On-chip RAM, ROM, I/O ports,timers etc • Example:Motorola’s 6811, Intel’s 8051, Zilog’s Z8 and PIC 16X RAM ROM I/O Port Time r Seria l COM Port CP U A single chip Microcontroller
  • 6. Microprocessor vs. Microcontroller Microprocessor • CPU is stand-alone, RAM, ROM, I/O, timer are separate • designer can decide on the amount of ROM, RAM and I/O ports. • expansive Microcontroller • CPU, RAM, ROM, I/O and timer are all on a single chip • fix amount of on-chip ROM, RAM, I/O ports • for applications in which cost, power and space are critical
  • 7. Microcontroller Applications • Home ▫ Appliances, intercom, telephones, security systems, garage door openers, answering machines, fax machines, home computers, TVs, cable TV tuner, VCR, camcorder, remote controls, video games, cellular phones, musical instruments, sewing machines, lighting control, paging, camera, pinball machines, toys, exercise equipment etc. • Office ▫ Telephones, computers, security systems, fax machines, microwave, copier, laser printer, color printer, paging etc. • Auto ▫ Trip computer, engine control, air bag, ABS, instrumentation, security system, transmission control, entertainment, climate control, cellular phone, keyless entry 7
  • 8. Comparison of the 8051 Family Members 3 FAMILY MEMBERS Feature 8051 8052 8031 ROM (program space in bytes) 4K 8K 0K RAM (bytes) 128 256 128 Timers 2 3 2 I/O pins 32 32 32 Serial port 1 1 1 Interrupt sources 6 8 6
  • 9. 8051 Features • 64KB Program Memory address space • 64KB Data Memory address space • 4K bytes of on-chip Program Memory • 128 bytes of on-chip Data RAM • 32 bidirectional and individually addressable 1/0 lines • Two 16-bit timer/counters • On-chip clock oscillator 9
  • 11. Input/output Ports (I/O Ports) 8051 microcontrollers have 4 I/O ports each comprising 8 bits which can be configured as inputs or outputs. Pin configuration, i.e. whether it is to be configured as an input or an output, depends on its logic state.
  • 12. Port 0 The P0 port is characterized by two functions. If external memory is used then the lower address byte (addresses A0-A7) is applied on it. Otherwise, all bits of this port are configured as inputs/outputs.
  • 13. Port 1 P1 is a true I/O port, because it doesn't have any alternative functions as is the case with P0, but can be configured as general I/O only. It has a pull-up resistor built-in and is completely compatible with TTL circuits.
  • 14. Port 2 P2 acts similarly to P0 when external memory is used. Pins of this port occupy addresses intended for external memory chip.  This time it is about the higher address byte with addresses A8-A15. When no memory is added, this port can be used as a general input/output port showing features similar to P1.
  • 15. Get a byte from P2 and send it to P1.
  • 16. Port 3 All port pins can be used as general I/O, but they also have an alternative function. In order to use these alternative functions, a logic one (1) must be applied to appropriate bit of the P3 register. In terms of hardware, this port is similar to P0, with the difference that its pins have a pull-up resistor built-in.
  • 17. Port 3 • Port 3 can be used as input or output. • Port 3 has the additional function of providing some extremely important signals