SlideShare a Scribd company logo
1 of 14
SHRI MADHWAVADIRAJA INSTITUTEOF
TECHNOLOGY AND MANAGEMENT
Microcontroller
18EC46
Venugopala Rao A S
Dept. of CSE
venugopalrao.cs@sode-edu.in
Microcontrollers for Embedded Systems
• 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
• Availability of software development tools, such as compilers, assemblers, and
debuggers
• Wide availability and reliable sources of the microcontroller
2
7/19/2022 18EC46
Microcontrollers for Embedded Systems
• The 8051 family has the largest number of diversified suppliers
• Intel (original), Atmel, Philips/Signetics, AMD, Infineon (formerly Siemens),
Matra, Dallas Semiconductor/Maxim
• Intel introduced 8051, referred as MCS-51, in 1981
• The 8051 is an 8-bit processor
• The CPU can work on only 8 bits of data at a time
• The 8051 had
• 128 bytes of RAM
• 4K bytes of on-chip ROM
• Two timers
• One serial port
• Four I/O ports, each 8 bits wide
• 6 interrupt sources
3
7/19/2022 18EC46
Overview of 8051 family
• There are two other members in 8051 family of Microcontroller.
• They are 8052 and 8031.
• 8052 has all standard features of 8051 with an extra 128 bytes of RAM and an
extra timer. i.e. a total of 256 bytes of RAM and 3 timers.
• It also has 8K bytes of on chip program instead of 4K bytes.
• 8031 Microcontroller is often referred as a ROM less 8051 since it has 0K bytes
of on chip ROM.
• To use this chip we must add external ROM to it.
• Two ports will be lost in the process of adding external ROM.
4
7/19/2022 18EC46
Overview of 8051 family
• Comparison of 8051 family
5
7/19/2022 18EC46
8051 Architecture
• Functional Diagram:
6
7/19/2022 18EC46
8051 Architecture
• CPU(Central Processing Unit)
• Main part of the microcontroller that actually does all the processing works.
• It has control circuit and ALU to perform logical and mathematical operations.
• A user can not access the processor or CPU of the microcontroller.
• The CPU is internally connected or interfaced with the memory units such as
ROM and RAM.
• CPU works according to the instruction or programs stored in the ROM.
• Oscillator and Timers
• Pulse signal generator circuit which provides the pulse signal to the CPU to
complete its operation and to work with cycles per unit time.
7
7/19/2022 18EC46
8051 Architecture
• It is an on-chip crystal oscillator mounted outside of the CPU.
• The crystal frequency of this oscillator is 12 MHz.
• Memory Units
• Has a ROM of 4kb and RAM of 128bytes
• The ROM is used for the preloaded or stored program and according to this
program, the CPU works.
• CPU can read or fetch data from the ROM but it can not write or store any data
to the ROM.
• RAM is used to store data temporarily during the operation or program execution.
CPU can store data into the RAM.
8
7/19/2022 18EC46
8051 Architecture
• Interrupts
• The interrupt is the subroutine call that interrupts the main ongoing program
execution in the CPU and tells to execute another important task or program.
• We can say the interrupts help for the emergency operations.
• There are mainly five interrupt sources in the microcontroller 8051,
• TF0 - it is the Timer 0 overflow interrupt
• TF1 - it is the Timer 2 overflow interrupt
• INT0 - it is an external hardware interrupt
• INT1 - it also an external hardware interrupt
• R1/T1 - it is the serial communication interrupt
9
7/19/2022 18EC46
8051 Architecture
• Input/Output Ports
• There are four parallel 8-bit ports such as P0, P1, P2, and P3.
• These ports are bidirectional and used to carry both address and data.
• Bus
• The system bus connects all the circuits or components(memory, timers, ports) to
the CPU.
• The system bus consists of an 8-bit data bus and a 16-bit address bus.
• The address bus helps to carry the memory addresses where the data is stored
whereas the data bus helps to carry the actual data.
10
7/19/2022 18EC46
8051 Architecture
• Pin Diagram:
• Pins 1 to 8 − These pins are known
as Port 1.
• This port doesn’t serve any other
functions.
• It is internally pulled up, bi-
directional I/O port.
• Pin 9 − It is a RESET pin, which is
used to reset the microcontroller to
its initial values.
11
7/19/2022 18EC46
8051 Architecture
• Pins 10 to 17: Known as Port 3.
• This port serves some functions like interrupts, timer input, control signals, serial
communication signals RxD and TxD, etc.
• Pins 18 & 19 − These pins are used for interfacing an external crystal to get the
system clock.
• Pin 20 − This pin provides the power supply to the circuit.
• Pins 21 to 28 − These pins are known as Port 2.
• It serves as I/O port. Higher order address bus signals are also multiplexed using
this port.
12
7/19/2022 18EC46
8051 Architecture
• Pin 29 − This is PSEN pin which stands for Program Store Enable. It is used to
read a signal from the external program memory.
• Pin 30 − This is EA pin which stands for External Access input. It is used to
enable/disable the external memory interfacing.
• Pin 31 − This is ALE pin which stands for Address Latch Enable. It is used to
demultiplex the address-data signal of port.
13
7/19/2022 18EC46
8051 Architecture
• Pins 32 to 39 − These pins are known as Port 0.
• It serves as I/O port.
• Lower order address and data bus signals are multiplexed using this port.
• Pin 40 − This pin is used to provide power supply to the circuit.
• Block Diagram:
14
7/19/2022 18EC46

More Related Content

Similar to 8051 slide

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
8051 Microcontroller8051 Microcontroller
8051 MicrocontrollerJai Sudhan
 
INTRODUCTION TO MICROCONTROLLER
INTRODUCTION TO MICROCONTROLLERINTRODUCTION TO MICROCONTROLLER
INTRODUCTION TO MICROCONTROLLERAnkita Jaiswal
 
PRESENTATION OF MICROCONTROLLER
PRESENTATION OF MICROCONTROLLERPRESENTATION OF MICROCONTROLLER
PRESENTATION OF MICROCONTROLLERAviSharma63
 
20838382 microprocessor-8085-notes
20838382 microprocessor-8085-notes20838382 microprocessor-8085-notes
20838382 microprocessor-8085-notesManikanteswar Madala
 
Download
DownloadDownload
Downloadjaihooo
 
8051 microcontroller and it’s interface
8051 microcontroller and it’s interface8051 microcontroller and it’s interface
8051 microcontroller and it’s interfaceAbhishek Choksi
 
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 Applicationselprocus
 
Unit 2 - Microprocessor & Microcontroller.pptx
Unit 2 -  Microprocessor & Microcontroller.pptxUnit 2 -  Microprocessor & Microcontroller.pptx
Unit 2 - Microprocessor & Microcontroller.pptxCharunnath S V
 
All about Microcontroller - 8051 ..pptx
All about Microcontroller -  8051 ..pptxAll about Microcontroller -  8051 ..pptx
All about Microcontroller - 8051 ..pptxBlackAdam7
 
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptx
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptxINDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptx
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptxMeghdeepSingh
 
Embeded system by Mitesh Kumar
Embeded system by Mitesh KumarEmbeded system by Mitesh Kumar
Embeded system by Mitesh KumarMitesh Kumar
 

Similar to 8051 slide (20)

8051
80518051
8051
 
AT89 S52
AT89 S52AT89 S52
AT89 S52
 
embedded system
embedded systemembedded system
embedded system
 
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
8051 Microcontroller8051 Microcontroller
8051 Microcontroller
 
INTRODUCTION TO MICROCONTROLLER
INTRODUCTION TO MICROCONTROLLERINTRODUCTION TO MICROCONTROLLER
INTRODUCTION TO MICROCONTROLLER
 
Uc1(vii sem)
Uc1(vii sem)Uc1(vii sem)
Uc1(vii sem)
 
PRESENTATION OF MICROCONTROLLER
PRESENTATION OF MICROCONTROLLERPRESENTATION OF MICROCONTROLLER
PRESENTATION OF MICROCONTROLLER
 
Unit 2 mpmc
Unit 2 mpmcUnit 2 mpmc
Unit 2 mpmc
 
Embedded system
Embedded systemEmbedded system
Embedded system
 
20838382 microprocessor-8085-notes
20838382 microprocessor-8085-notes20838382 microprocessor-8085-notes
20838382 microprocessor-8085-notes
 
Download
DownloadDownload
Download
 
POA_Unit 5.pptx
POA_Unit 5.pptxPOA_Unit 5.pptx
POA_Unit 5.pptx
 
8051 microcontroller and it’s interface
8051 microcontroller and it’s interface8051 microcontroller and it’s interface
8051 microcontroller and it’s interface
 
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
 
Unit 2 - Microprocessor & Microcontroller.pptx
Unit 2 -  Microprocessor & Microcontroller.pptxUnit 2 -  Microprocessor & Microcontroller.pptx
Unit 2 - Microprocessor & Microcontroller.pptx
 
All about Microcontroller - 8051 ..pptx
All about Microcontroller -  8051 ..pptxAll about Microcontroller -  8051 ..pptx
All about Microcontroller - 8051 ..pptx
 
Unit 3 mpmc
Unit 3 mpmcUnit 3 mpmc
Unit 3 mpmc
 
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptx
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptxINDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptx
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptx
 
Embeded system by Mitesh Kumar
Embeded system by Mitesh KumarEmbeded system by Mitesh Kumar
Embeded system by Mitesh Kumar
 

Recently uploaded

microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...anjaliyadav012327
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...Pooja Nehwal
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 

Recently uploaded (20)

microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 

8051 slide

  • 1. SHRI MADHWAVADIRAJA INSTITUTEOF TECHNOLOGY AND MANAGEMENT Microcontroller 18EC46 Venugopala Rao A S Dept. of CSE venugopalrao.cs@sode-edu.in
  • 2. Microcontrollers for Embedded Systems • 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 • Availability of software development tools, such as compilers, assemblers, and debuggers • Wide availability and reliable sources of the microcontroller 2 7/19/2022 18EC46
  • 3. Microcontrollers for Embedded Systems • The 8051 family has the largest number of diversified suppliers • Intel (original), Atmel, Philips/Signetics, AMD, Infineon (formerly Siemens), Matra, Dallas Semiconductor/Maxim • Intel introduced 8051, referred as MCS-51, in 1981 • The 8051 is an 8-bit processor • The CPU can work on only 8 bits of data at a time • The 8051 had • 128 bytes of RAM • 4K bytes of on-chip ROM • Two timers • One serial port • Four I/O ports, each 8 bits wide • 6 interrupt sources 3 7/19/2022 18EC46
  • 4. Overview of 8051 family • There are two other members in 8051 family of Microcontroller. • They are 8052 and 8031. • 8052 has all standard features of 8051 with an extra 128 bytes of RAM and an extra timer. i.e. a total of 256 bytes of RAM and 3 timers. • It also has 8K bytes of on chip program instead of 4K bytes. • 8031 Microcontroller is often referred as a ROM less 8051 since it has 0K bytes of on chip ROM. • To use this chip we must add external ROM to it. • Two ports will be lost in the process of adding external ROM. 4 7/19/2022 18EC46
  • 5. Overview of 8051 family • Comparison of 8051 family 5 7/19/2022 18EC46
  • 6. 8051 Architecture • Functional Diagram: 6 7/19/2022 18EC46
  • 7. 8051 Architecture • CPU(Central Processing Unit) • Main part of the microcontroller that actually does all the processing works. • It has control circuit and ALU to perform logical and mathematical operations. • A user can not access the processor or CPU of the microcontroller. • The CPU is internally connected or interfaced with the memory units such as ROM and RAM. • CPU works according to the instruction or programs stored in the ROM. • Oscillator and Timers • Pulse signal generator circuit which provides the pulse signal to the CPU to complete its operation and to work with cycles per unit time. 7 7/19/2022 18EC46
  • 8. 8051 Architecture • It is an on-chip crystal oscillator mounted outside of the CPU. • The crystal frequency of this oscillator is 12 MHz. • Memory Units • Has a ROM of 4kb and RAM of 128bytes • The ROM is used for the preloaded or stored program and according to this program, the CPU works. • CPU can read or fetch data from the ROM but it can not write or store any data to the ROM. • RAM is used to store data temporarily during the operation or program execution. CPU can store data into the RAM. 8 7/19/2022 18EC46
  • 9. 8051 Architecture • Interrupts • The interrupt is the subroutine call that interrupts the main ongoing program execution in the CPU and tells to execute another important task or program. • We can say the interrupts help for the emergency operations. • There are mainly five interrupt sources in the microcontroller 8051, • TF0 - it is the Timer 0 overflow interrupt • TF1 - it is the Timer 2 overflow interrupt • INT0 - it is an external hardware interrupt • INT1 - it also an external hardware interrupt • R1/T1 - it is the serial communication interrupt 9 7/19/2022 18EC46
  • 10. 8051 Architecture • Input/Output Ports • There are four parallel 8-bit ports such as P0, P1, P2, and P3. • These ports are bidirectional and used to carry both address and data. • Bus • The system bus connects all the circuits or components(memory, timers, ports) to the CPU. • The system bus consists of an 8-bit data bus and a 16-bit address bus. • The address bus helps to carry the memory addresses where the data is stored whereas the data bus helps to carry the actual data. 10 7/19/2022 18EC46
  • 11. 8051 Architecture • Pin Diagram: • Pins 1 to 8 − These pins are known as Port 1. • This port doesn’t serve any other functions. • It is internally pulled up, bi- directional I/O port. • Pin 9 − It is a RESET pin, which is used to reset the microcontroller to its initial values. 11 7/19/2022 18EC46
  • 12. 8051 Architecture • Pins 10 to 17: Known as Port 3. • This port serves some functions like interrupts, timer input, control signals, serial communication signals RxD and TxD, etc. • Pins 18 & 19 − These pins are used for interfacing an external crystal to get the system clock. • Pin 20 − This pin provides the power supply to the circuit. • Pins 21 to 28 − These pins are known as Port 2. • It serves as I/O port. Higher order address bus signals are also multiplexed using this port. 12 7/19/2022 18EC46
  • 13. 8051 Architecture • Pin 29 − This is PSEN pin which stands for Program Store Enable. It is used to read a signal from the external program memory. • Pin 30 − This is EA pin which stands for External Access input. It is used to enable/disable the external memory interfacing. • Pin 31 − This is ALE pin which stands for Address Latch Enable. It is used to demultiplex the address-data signal of port. 13 7/19/2022 18EC46
  • 14. 8051 Architecture • Pins 32 to 39 − These pins are known as Port 0. • It serves as I/O port. • Lower order address and data bus signals are multiplexed using this port. • Pin 40 − This pin is used to provide power supply to the circuit. • Block Diagram: 14 7/19/2022 18EC46