SlideShare a Scribd company logo
1 of 28
VS
Microprocessor
Microcontroller
MICROPROCESSOR
 CPU on a chip
 General purpose
 Memory and input /output
(I/O) devices should be
interfaced
 Suitable for both big and
small systems (mainframe
Computers to pocket
calculators)
MICROCONTROLLER
 Computer on a chip
 Specific Purpose(Mainly for
embedded applications)
 Contains on chip RAM,
ROM, I/O ports, Oscillator,
Serial port, etc
 Suitable for small systems
having less I/O devices,
memory, power and requiring
smaller space
MICROPROCESSOR
 Based on Von-Neumann
architecture
 Application Software is not
ROM based.
 Instruction set is designed
such that program and data can
be transferred between CPU
and RAM.
Programming is generally
done in Assembly Language.
MICROCONTROLLER
 Based on Harvard
architecture
Application Software is ROM
based.
 Instruction set is designed
such that program and data can
be transferred between CPU
and ROM.
 Programming can be done
either in Assembly or High
level language.
Household Items
Toys, Cameras, Video Recorders, CD players, TVs,
Microwave Ovens, Washing Machines, Vacuum Cleaners,
Home Security Systems, etc.
Office Equipments
Fax Machines, Printers, Plotters, modems, ATM machines,
smart cards, Photocopy machines, etc
Communication
Cell Phones, Telephones, Pagers, Answering Machines, etc
Others
Robotics, Automation , Automobile industries , etc
Intel introduced 8051, referred as MCS-51, in 1981.
 Due to the flexibility and versatility of 8051 family microcontrollers,
they are quite popular till now.
Feature/Chip 8051 8031 8052 AT89S52
ROM 4K 0K 8K Flash 4K
RAM 128 bytes 128 bytes 256 bytes 128 bytes
I/O Pins 32 32 32 32
Serial I/O 1 1 1 1
Timer 2 2 3 2
Interrupt
Source
6 6 8 6
Large block of data is erased and written in Flash EPROM while only byte by byte
erasing and writing is available in EEPROM
INTRODUCTION TO MICROCONTROLLER
 On-chip Oscillator
 On-chip RAM of limited size
 On-chip ROM of limited size
 On-chip I/O ports
 Built in full duplex serial port
On-chip timer/counter
Bus control to interface external RAM and ROM(64
kb each)
 Large Set of Special Purpose registers
Boolean Processing Capacity (Bit addressable)
 Multiple Functionality of Pins
Key Features of 8051 microcontrollers
Organization and Architecture
PIN DESCRIPTION OF 8051 MICROCONTROLLER
Port 1
Port 3
Port 0
Port 2
VCC (PIN 40) :
Supply voltage (+5V) is provided to chip
GND(PIN 20):
Ground or Common terminal of supply
XTAL1 (PIN 19) & XTAL2 (PIN 18):
As discussed earlier 8051 microcontroller possess on-chip
Oscillator. It can generate frequency of 1.24 MHz to 12 MHz
Generally a quartz crystal of 12 MHz frequency is connected
to the pins 18 and 19.
The actual frequency produced is 11.0592 MHz
PIN DESCRIPTION OF 8051 MICROCONTROLLER
Also two capacitors of around 30 pF are connected as shown in figure.
The quartz crystal and capacitors help to produce clock pulse of exact
frequency not some harmonic frequency.
If a frequency source other than a crystal
oscillator is used , such as a TTL Oscillator,
it will be connected to XTAL1 and XTAL2 is
left unconnected.
PIN DESCRIPTION OF 8051 MICROCONTROLLER
RST(PIN 9):
RST stands for system RESET and is active high signal.(Normally low)
The Microcontroller is reset by holding RST high for at least two
machine cycles and then returning it low.
The execution of the program stops and begins at the first location in
program memory (ROM) on reset.
Need of RST circuitry
oWhen the supply is just turned on.
(Transient Effect)
oAs backup power source.
__
EA (PIN 31):
EA stands for “External Access” and is an input signal which is
either connected to VCC or GND.
 If the program is stored in on-chip ROM then, EA is
connected to VCC.
 If the program is stored in external ROM then, EA is
connected to GND.
_____
PSEN (PIN 29):
It stands for “Program Store Enable”.
 It is an output pin and it is connected to the OE(Output
Enable) pin of the ROM.
 It distinguish between program memory and data Memory.
ALE (PIN 30):
 ALE stands for “Address Latch Enable” and is an active high
output pin.
 Port o has got three functionality viz. I/O port, Address
and Data.
 ALE indicates if P0 has address or data
• When ALE=0, it provides data D0-D7
•When ALE=1, it has address A0-A7
PORT P0 (PIN 39 TO 32)
Port P0 has got three functionalities.(I/O port, lower order
address(A0 to A7) and data (D0 to D7).
It can be used for input or output , each pin must be connected
externally to a 10K ohm pull-up resistor.
ALE indicates if P0 has address or data
When ALE=0, it provides data D0-D7
When ALE=1, it has address A0-A7
PORT P1 (PIN 1 TO 8)
Port P1 is simple I/O port .
Internal pull up resistor is provided.
PORT P2(PIN 21 TO 28)
Port P2 has dual functionality.( I/o port and higher order address(A8 to
A15).
Port 2 must be used along with P0 to provide the 16-bit address for the
external memory.
 Internal pull up resistor is provided.
PORT P3 (PIN 10 TO 17)
Port 3 can be used as input or output.
Port 3 does not need any pull-up resistors.
Port 3 has the additional function of providing some extremely
important signals.
There are 21 special function registers
Memory
I/O PORTS
Figure : Interfacing Microprocessor
ALU
CONTROL
UNIT
Microprocessor
Microcontroller
Microcontroller
Microcontroller

More Related Content

What's hot

Overview of Microcontroller and ATMega32 microcontroller
Overview of Microcontroller and ATMega32 microcontrollerOverview of Microcontroller and ATMega32 microcontroller
Overview of Microcontroller and ATMega32 microcontrollerRup Chowdhury
 
INTRODUCTION TO MICROCONTROLLER
INTRODUCTION TO MICROCONTROLLERINTRODUCTION TO MICROCONTROLLER
INTRODUCTION TO MICROCONTROLLERAnkita Jaiswal
 
introduction to microprocessors
introduction to microprocessorsintroduction to microprocessors
introduction to microprocessorsvishi1993
 
Introduction to Avr Microcontrollers
Introduction to Avr MicrocontrollersIntroduction to Avr Microcontrollers
Introduction to Avr MicrocontrollersMohamed Tarek
 
Difference Between Microprocessors and Microcontrollers
Difference Between Microprocessors and MicrocontrollersDifference Between Microprocessors and Microcontrollers
Difference Between Microprocessors and Microcontrollerselprocus
 
Microcontroller presentation
Microcontroller presentationMicrocontroller presentation
Microcontroller presentationxavierpaulino
 
microcontroller vs microprocessor
microcontroller vs microprocessormicrocontroller vs microprocessor
microcontroller vs microprocessorsobhadevi
 
Introduction for microprocessor
Introduction for microprocessorIntroduction for microprocessor
Introduction for microprocessorTHANDAIAH PRABU
 
Introduction To Embedded Systems
Introduction To Embedded SystemsIntroduction To Embedded Systems
Introduction To Embedded Systemsanishgoel
 

What's hot (20)

Overview of Microcontroller and ATMega32 microcontroller
Overview of Microcontroller and ATMega32 microcontrollerOverview of Microcontroller and ATMega32 microcontroller
Overview of Microcontroller and ATMega32 microcontroller
 
INTRODUCTION TO MICROCONTROLLER
INTRODUCTION TO MICROCONTROLLERINTRODUCTION TO MICROCONTROLLER
INTRODUCTION TO MICROCONTROLLER
 
introduction to microprocessors
introduction to microprocessorsintroduction to microprocessors
introduction to microprocessors
 
Microcontroller
MicrocontrollerMicrocontroller
Microcontroller
 
8051 Microcontroller
8051 Microcontroller8051 Microcontroller
8051 Microcontroller
 
embedded system and AVR
embedded system and AVRembedded system and AVR
embedded system and AVR
 
Introduction to Avr Microcontrollers
Introduction to Avr MicrocontrollersIntroduction to Avr Microcontrollers
Introduction to Avr Microcontrollers
 
Introduction in microcontroller
Introduction in microcontrollerIntroduction in microcontroller
Introduction in microcontroller
 
Processors selection
Processors selectionProcessors selection
Processors selection
 
The 80386 80486
The 80386 80486The 80386 80486
The 80386 80486
 
Introduction to Microcontroller
Introduction to MicrocontrollerIntroduction to Microcontroller
Introduction to Microcontroller
 
Difference Between Microprocessors and Microcontrollers
Difference Between Microprocessors and MicrocontrollersDifference Between Microprocessors and Microcontrollers
Difference Between Microprocessors and Microcontrollers
 
Microcontroller presentation
Microcontroller presentationMicrocontroller presentation
Microcontroller presentation
 
microcontroller vs microprocessor
microcontroller vs microprocessormicrocontroller vs microprocessor
microcontroller vs microprocessor
 
06 mips-isa
06 mips-isa06 mips-isa
06 mips-isa
 
8051 timer counter
8051 timer counter8051 timer counter
8051 timer counter
 
ARM CORTEX M3 PPT
ARM CORTEX M3 PPTARM CORTEX M3 PPT
ARM CORTEX M3 PPT
 
Embedded c
Embedded cEmbedded c
Embedded c
 
Introduction for microprocessor
Introduction for microprocessorIntroduction for microprocessor
Introduction for microprocessor
 
Introduction To Embedded Systems
Introduction To Embedded SystemsIntroduction To Embedded Systems
Introduction To Embedded Systems
 

Similar to Microcontroller

Microcontroller 8051
Microcontroller 8051Microcontroller 8051
Microcontroller 8051Sadiq Rahim
 
4th yr dmumicrocontroller1
4th yr dmumicrocontroller14th yr dmumicrocontroller1
4th yr dmumicrocontroller1haymanotyehuala
 
Microcontroller 8051 By Mitesh kumar
Microcontroller 8051 By Mitesh kumarMicrocontroller 8051 By Mitesh kumar
Microcontroller 8051 By Mitesh kumarMitesh Kumar
 
Microcontroller 8051
Microcontroller 8051Microcontroller 8051
Microcontroller 8051Rashmi
 
Embedded systems, 8051 microcontroller
Embedded systems, 8051 microcontrollerEmbedded systems, 8051 microcontroller
Embedded systems, 8051 microcontrollerAmandeep Alag
 
Microcontroller 8051
Microcontroller 8051Microcontroller 8051
Microcontroller 8051guest70d48b1
 
Embedded systems, 8051 microcontroller
Embedded systems, 8051 microcontrollerEmbedded systems, 8051 microcontroller
Embedded systems, 8051 microcontrollerAmandeep Alag
 
Microcontroller (8051) by K. Vijay Kumar
Microcontroller (8051) by K. Vijay KumarMicrocontroller (8051) by K. Vijay Kumar
Microcontroller (8051) by K. Vijay KumarVijay Kumar
 
Presentation On: "Micro-controller 8051 & Embedded System"
Presentation On: "Micro-controller 8051 & Embedded System"Presentation On: "Micro-controller 8051 & Embedded System"
Presentation On: "Micro-controller 8051 & Embedded System"surabhii007
 
8051 microcontroller by K. Vijay Kumar
8051 microcontroller by K. Vijay Kumar8051 microcontroller by K. Vijay Kumar
8051 microcontroller by K. Vijay KumarVijay Kumar
 
8051 Microcontroller
8051 Microcontroller8051 Microcontroller
8051 Microcontrollerthokalpv
 
The hardware of the Mcs 51 microcontroller
 The hardware of the Mcs 51 microcontroller The hardware of the Mcs 51 microcontroller
The hardware of the Mcs 51 microcontrollerGarba Geidam
 
8051 microcontroller training (2) (sahil gupta 9068557926)
8051 microcontroller training  (2) (sahil gupta   9068557926)8051 microcontroller training  (2) (sahil gupta   9068557926)
8051 microcontroller training (2) (sahil gupta 9068557926)Sahil Gupta
 
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 unitjanakiramang6
 

Similar to Microcontroller (20)

Microcontroller 8051 gs
Microcontroller 8051 gsMicrocontroller 8051 gs
Microcontroller 8051 gs
 
Microcontroller 8051
Microcontroller 8051Microcontroller 8051
Microcontroller 8051
 
4th yr dmumicrocontroller1
4th yr dmumicrocontroller14th yr dmumicrocontroller1
4th yr dmumicrocontroller1
 
Microcontroller 8051 By Mitesh kumar
Microcontroller 8051 By Mitesh kumarMicrocontroller 8051 By Mitesh kumar
Microcontroller 8051 By Mitesh kumar
 
8051 full ppt
8051 full ppt8051 full ppt
8051 full ppt
 
Microcontroller 8051
Microcontroller 8051Microcontroller 8051
Microcontroller 8051
 
Embedded systems, 8051 microcontroller
Embedded systems, 8051 microcontrollerEmbedded systems, 8051 microcontroller
Embedded systems, 8051 microcontroller
 
Microcontroller 8051
Microcontroller 8051Microcontroller 8051
Microcontroller 8051
 
Microcontroller 8051
Microcontroller 8051Microcontroller 8051
Microcontroller 8051
 
Embedded systems, 8051 microcontroller
Embedded systems, 8051 microcontrollerEmbedded systems, 8051 microcontroller
Embedded systems, 8051 microcontroller
 
Microcontroller (8051) by K. Vijay Kumar
Microcontroller (8051) by K. Vijay KumarMicrocontroller (8051) by K. Vijay Kumar
Microcontroller (8051) by K. Vijay Kumar
 
Presentation On: "Micro-controller 8051 & Embedded System"
Presentation On: "Micro-controller 8051 & Embedded System"Presentation On: "Micro-controller 8051 & Embedded System"
Presentation On: "Micro-controller 8051 & Embedded System"
 
8051 microcontroller by K. Vijay Kumar
8051 microcontroller by K. Vijay Kumar8051 microcontroller by K. Vijay Kumar
8051 microcontroller by K. Vijay Kumar
 
8051 Microcontroller
8051 Microcontroller8051 Microcontroller
8051 Microcontroller
 
Ppt embedded
Ppt embeddedPpt embedded
Ppt embedded
 
8051 Presentation
8051 Presentation8051 Presentation
8051 Presentation
 
The hardware of the Mcs 51 microcontroller
 The hardware of the Mcs 51 microcontroller The hardware of the Mcs 51 microcontroller
The hardware of the Mcs 51 microcontroller
 
8051 microcontroller training (2) (sahil gupta 9068557926)
8051 microcontroller training  (2) (sahil gupta   9068557926)8051 microcontroller training  (2) (sahil gupta   9068557926)
8051 microcontroller training (2) (sahil gupta 9068557926)
 
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
 
8051.pptx
8051.pptx8051.pptx
8051.pptx
 

More from Kshitij Wagle

Seven Segment Display
Seven Segment DisplaySeven Segment Display
Seven Segment DisplayKshitij Wagle
 
Prerequriment of microcontroller
Prerequriment of microcontrollerPrerequriment of microcontroller
Prerequriment of microcontrollerKshitij Wagle
 
Basic electronic components used in robotics
Basic electronic components used in roboticsBasic electronic components used in robotics
Basic electronic components used in roboticsKshitij Wagle
 
Data Mining: Human and Wildlife conflict of CNP
Data Mining: Human and Wildlife conflict of CNPData Mining: Human and Wildlife conflict of CNP
Data Mining: Human and Wildlife conflict of CNPKshitij Wagle
 
Asp.net introduction
Asp.net introductionAsp.net introduction
Asp.net introductionKshitij Wagle
 
Wordpress vs Google Blogger/ Wampserver
Wordpress vs Google Blogger/ WampserverWordpress vs Google Blogger/ Wampserver
Wordpress vs Google Blogger/ WampserverKshitij Wagle
 

More from Kshitij Wagle (7)

Seven Segment Display
Seven Segment DisplaySeven Segment Display
Seven Segment Display
 
Prerequriment of microcontroller
Prerequriment of microcontrollerPrerequriment of microcontroller
Prerequriment of microcontroller
 
LCD interfacing
LCD interfacingLCD interfacing
LCD interfacing
 
Basic electronic components used in robotics
Basic electronic components used in roboticsBasic electronic components used in robotics
Basic electronic components used in robotics
 
Data Mining: Human and Wildlife conflict of CNP
Data Mining: Human and Wildlife conflict of CNPData Mining: Human and Wildlife conflict of CNP
Data Mining: Human and Wildlife conflict of CNP
 
Asp.net introduction
Asp.net introductionAsp.net introduction
Asp.net introduction
 
Wordpress vs Google Blogger/ Wampserver
Wordpress vs Google Blogger/ WampserverWordpress vs Google Blogger/ Wampserver
Wordpress vs Google Blogger/ Wampserver
 

Recently uploaded

Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girlsssuser7cb4ff
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and usesDevarapalliHaritha
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxPoojaBan
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLDeelipZope
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZTE
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionDr.Costas Sachpazis
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.eptoze12
 

Recently uploaded (20)

Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girls
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and uses
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptx
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCL
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.
 

Microcontroller

  • 2. MICROPROCESSOR  CPU on a chip  General purpose  Memory and input /output (I/O) devices should be interfaced  Suitable for both big and small systems (mainframe Computers to pocket calculators) MICROCONTROLLER  Computer on a chip  Specific Purpose(Mainly for embedded applications)  Contains on chip RAM, ROM, I/O ports, Oscillator, Serial port, etc  Suitable for small systems having less I/O devices, memory, power and requiring smaller space
  • 3. MICROPROCESSOR  Based on Von-Neumann architecture  Application Software is not ROM based.  Instruction set is designed such that program and data can be transferred between CPU and RAM. Programming is generally done in Assembly Language. MICROCONTROLLER  Based on Harvard architecture Application Software is ROM based.  Instruction set is designed such that program and data can be transferred between CPU and ROM.  Programming can be done either in Assembly or High level language.
  • 4. Household Items Toys, Cameras, Video Recorders, CD players, TVs, Microwave Ovens, Washing Machines, Vacuum Cleaners, Home Security Systems, etc.
  • 5. Office Equipments Fax Machines, Printers, Plotters, modems, ATM machines, smart cards, Photocopy machines, etc
  • 6. Communication Cell Phones, Telephones, Pagers, Answering Machines, etc
  • 7. Others Robotics, Automation , Automobile industries , etc
  • 8. Intel introduced 8051, referred as MCS-51, in 1981.  Due to the flexibility and versatility of 8051 family microcontrollers, they are quite popular till now. Feature/Chip 8051 8031 8052 AT89S52 ROM 4K 0K 8K Flash 4K RAM 128 bytes 128 bytes 256 bytes 128 bytes I/O Pins 32 32 32 32 Serial I/O 1 1 1 1 Timer 2 2 3 2 Interrupt Source 6 6 8 6 Large block of data is erased and written in Flash EPROM while only byte by byte erasing and writing is available in EEPROM INTRODUCTION TO MICROCONTROLLER
  • 9.  On-chip Oscillator  On-chip RAM of limited size  On-chip ROM of limited size  On-chip I/O ports  Built in full duplex serial port On-chip timer/counter Bus control to interface external RAM and ROM(64 kb each)  Large Set of Special Purpose registers Boolean Processing Capacity (Bit addressable)  Multiple Functionality of Pins Key Features of 8051 microcontrollers
  • 11. PIN DESCRIPTION OF 8051 MICROCONTROLLER Port 1 Port 3 Port 0 Port 2
  • 12. VCC (PIN 40) : Supply voltage (+5V) is provided to chip GND(PIN 20): Ground or Common terminal of supply XTAL1 (PIN 19) & XTAL2 (PIN 18): As discussed earlier 8051 microcontroller possess on-chip Oscillator. It can generate frequency of 1.24 MHz to 12 MHz Generally a quartz crystal of 12 MHz frequency is connected to the pins 18 and 19. The actual frequency produced is 11.0592 MHz PIN DESCRIPTION OF 8051 MICROCONTROLLER
  • 13. Also two capacitors of around 30 pF are connected as shown in figure. The quartz crystal and capacitors help to produce clock pulse of exact frequency not some harmonic frequency. If a frequency source other than a crystal oscillator is used , such as a TTL Oscillator, it will be connected to XTAL1 and XTAL2 is left unconnected. PIN DESCRIPTION OF 8051 MICROCONTROLLER
  • 14. RST(PIN 9): RST stands for system RESET and is active high signal.(Normally low) The Microcontroller is reset by holding RST high for at least two machine cycles and then returning it low. The execution of the program stops and begins at the first location in program memory (ROM) on reset. Need of RST circuitry oWhen the supply is just turned on. (Transient Effect) oAs backup power source.
  • 15. __ EA (PIN 31): EA stands for “External Access” and is an input signal which is either connected to VCC or GND.  If the program is stored in on-chip ROM then, EA is connected to VCC.  If the program is stored in external ROM then, EA is connected to GND.
  • 16. _____ PSEN (PIN 29): It stands for “Program Store Enable”.  It is an output pin and it is connected to the OE(Output Enable) pin of the ROM.  It distinguish between program memory and data Memory.
  • 17. ALE (PIN 30):  ALE stands for “Address Latch Enable” and is an active high output pin.  Port o has got three functionality viz. I/O port, Address and Data.  ALE indicates if P0 has address or data • When ALE=0, it provides data D0-D7 •When ALE=1, it has address A0-A7
  • 18. PORT P0 (PIN 39 TO 32) Port P0 has got three functionalities.(I/O port, lower order address(A0 to A7) and data (D0 to D7). It can be used for input or output , each pin must be connected externally to a 10K ohm pull-up resistor. ALE indicates if P0 has address or data When ALE=0, it provides data D0-D7 When ALE=1, it has address A0-A7
  • 19. PORT P1 (PIN 1 TO 8) Port P1 is simple I/O port . Internal pull up resistor is provided. PORT P2(PIN 21 TO 28) Port P2 has dual functionality.( I/o port and higher order address(A8 to A15). Port 2 must be used along with P0 to provide the 16-bit address for the external memory.  Internal pull up resistor is provided.
  • 20. PORT P3 (PIN 10 TO 17) Port 3 can be used as input or output. Port 3 does not need any pull-up resistors. Port 3 has the additional function of providing some extremely important signals.
  • 21. There are 21 special function registers
  • 22.
  • 23.
  • 24.
  • 25. Memory I/O PORTS Figure : Interfacing Microprocessor ALU CONTROL UNIT Microprocessor