SlideShare a Scribd company logo
1 of 10
 The 8051 is a 40 pin device, but out
of these 40 pins, 32 are used for I/O
 Many pins of 8051 are used for
more than one function.
 32 I/O pins = 4 eight bit ports
= P0, P1, P2 and P3
 All ports are bidirectional
 Each ports consist of latch, an output
driver and an input buffer.
 40 pin DIP
 +5 volts DC.
 Among the 40 pins , 32 pins = four parallel ports P0, P1, P2
and P3 . Remaining pins are VCC, GND, XTAL1, XTAL2, RST, EA ,
PSEN, ALE.
 P0.0- P0.7(AD0-AD7) (32-39)
 The port 0 pins multiplexed with (low order byte) Address/data
pins .
 If the microcontroller is accessing external memory, these pins
will act as address/data pins otherwise, they are used for Port 0
pins.
 P1.0- P1.7 (1 – 8)
 These 8-pins are dedicated for Port 1 to perform input or
output port operations.
 P2.0- P2.7(A8-A15) (21-28)
 The port 2 pins are multiplexed with the higher order
address pins .
 When the microcontroller is accessing external memory
these pins provide the higher order address byte
otherwise they act as Port 2 pins.
 P3.0- P3.7 : (10- 17)
 These 8-pins are meant for Port3 operations and also for some
control operations like Read, Write, Timer0, Timer1, INT0,
INT1, RXD and TXD.
SYMBOL POSITION ALTERNATE USE
𝑅𝐷 P 3.7 External memory read signal
𝑊𝑅 P 3.6 External memory write signal
T1 P 3.5 External timer 1 input
T0 P 3.4 External timer 0 output
𝐼𝑁𝑇1 P 3.3 External interrupt 1 input
𝐼𝑁𝑇0 P 3.2 External interrupt 0 input
TXD P 3.1 Serial data output
RXD P 3.0 Serial data input
 Pin 40 & pin 20
 Pin 40 = Vcc = +5v
 Pin 20 = Vss = GND
 XTAL1(Pin 19), XTAL2(Pin 18)
 These two pins are connected to Quartz crystal oscillator
which runs the on-chip oscillator.
 For generating an internal clock signal, the external
oscillator is connected at these two pins.
 If we use a source other than the crystal oscillator, it will be
connected to XTAL1 and XTAL2 is left unconnected.
 ALE – pin 30(Address Latch Enable)
 This is an output pin, which is active high.
 When connected to external memory , port 0 provides both
address and data i.e address and data are multiplexed
through port 0 .
 This ALE pin will demultiplex the address and data bus
.When the pin is High , the AD bus will act as address bus
otherwise the AD bus will act as Data bus.
 RST – pin 9(RESET)
 The RESET pin is an input pin and it is an active high pin.
 When a high pulse is applied to this pin the microcontroller will reset
and terminate all activities.
 It held high at least for two machine cycles, while oscillator is running
 PSEN– pin 29(Program Store Enable) :
 This is an output pin which is active low.
 When the microcontroller is accessing the program code stored in the
external ROM, this pin is connected tothe OE (Output Enable) pin of the
ROM.
 It is activated every six oscillator periods while reading external memory
 𝑬𝑨 – pin 31 (External Access):
 This pin is an active low pin.
 This pin is connected toground when microcontroller is
accessing the program code stored in the external memory
and connected to Vcc when it is accessing the program
code in the on chip memory.
 This pin should not be left Unconnected.
8051 pin description

More Related Content

Similar to 8051 pin description

Microcontroller 8051
Microcontroller 8051Microcontroller 8051
Microcontroller 8051Moeez Shem
 
Microcontroller 8051 By Mitesh kumar
Microcontroller 8051 By Mitesh kumarMicrocontroller 8051 By Mitesh kumar
Microcontroller 8051 By Mitesh kumarMitesh Kumar
 
8051 Microcontroller
8051 Microcontroller8051 Microcontroller
8051 Microcontrollerthokalpv
 
Microcontroller 8051
Microcontroller 8051Microcontroller 8051
Microcontroller 8051Sadiq Rahim
 
Micro lec note2
Micro lec note2Micro lec note2
Micro lec note2KHATANA360
 
itft-Microcontriller 8051
itft-Microcontriller 8051itft-Microcontriller 8051
itft-Microcontriller 8051Shifali Sharma
 
8051 architecture
8051 architecture8051 architecture
8051 architecturesb108ec
 
Unit 01.Lec2 Introduction to 8051 microcontroller (2).pptx
Unit 01.Lec2 Introduction to 8051 microcontroller (2).pptxUnit 01.Lec2 Introduction to 8051 microcontroller (2).pptx
Unit 01.Lec2 Introduction to 8051 microcontroller (2).pptxSamarpitaBakshi
 
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
8051 Microcontroller8051 Microcontroller
8051 MicrocontrollerAvijeet Negel
 
Embedded systems, 8051 microcontroller
Embedded systems, 8051 microcontrollerEmbedded systems, 8051 microcontroller
Embedded systems, 8051 microcontrollerAmandeep Alag
 
pin-diagram-details-of-8086-microprocessor
pin-diagram-details-of-8086-microprocessorpin-diagram-details-of-8086-microprocessor
pin-diagram-details-of-8086-microprocessorbarsharoy19
 
Microcontroller (1).pptx
Microcontroller (1).pptxMicrocontroller (1).pptx
Microcontroller (1).pptxITPradiptaRoy
 

Similar to 8051 pin description (20)

Microcontroller 8051
Microcontroller 8051Microcontroller 8051
Microcontroller 8051
 
Hardware View of Intel 8051
Hardware View of Intel 8051Hardware View of Intel 8051
Hardware View of Intel 8051
 
Microcontroller 8051 By Mitesh kumar
Microcontroller 8051 By Mitesh kumarMicrocontroller 8051 By Mitesh kumar
Microcontroller 8051 By Mitesh kumar
 
8051 Microcontroller
8051 Microcontroller8051 Microcontroller
8051 Microcontroller
 
Microcontroller 8051
Microcontroller 8051Microcontroller 8051
Microcontroller 8051
 
Ch3 ppt
Ch3 pptCh3 ppt
Ch3 ppt
 
Micro lec note2
Micro lec note2Micro lec note2
Micro lec note2
 
Microcontroller 8051 gs
Microcontroller 8051 gsMicrocontroller 8051 gs
Microcontroller 8051 gs
 
itft-Microcontriller 8051
itft-Microcontriller 8051itft-Microcontriller 8051
itft-Microcontriller 8051
 
8051.pptx
8051.pptx8051.pptx
8051.pptx
 
Microcontroller
MicrocontrollerMicrocontroller
Microcontroller
 
8051 architecture
8051 architecture8051 architecture
8051 architecture
 
Unit 01.Lec2 Introduction to 8051 microcontroller (2).pptx
Unit 01.Lec2 Introduction to 8051 microcontroller (2).pptxUnit 01.Lec2 Introduction to 8051 microcontroller (2).pptx
Unit 01.Lec2 Introduction to 8051 microcontroller (2).pptx
 
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
8051 Microcontroller8051 Microcontroller
8051 Microcontroller
 
dspAt89 s52
dspAt89 s52dspAt89 s52
dspAt89 s52
 
Embedded systems, 8051 microcontroller
Embedded systems, 8051 microcontrollerEmbedded systems, 8051 microcontroller
Embedded systems, 8051 microcontroller
 
Microcontroller 8051
Microcontroller 8051Microcontroller 8051
Microcontroller 8051
 
pin-diagram-details-of-8086-microprocessor
pin-diagram-details-of-8086-microprocessorpin-diagram-details-of-8086-microprocessor
pin-diagram-details-of-8086-microprocessor
 
Microcontroller (1).pptx
Microcontroller (1).pptxMicrocontroller (1).pptx
Microcontroller (1).pptx
 

Recently uploaded

Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsHyundai Motor Group
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxnull - The Open Security Community
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDGMarianaLemus7
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Neo4j
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfjimielynbastida
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentationphoebematthew05
 

Recently uploaded (20)

Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDG
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdf
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentation
 

8051 pin description

  • 1.
  • 2.  The 8051 is a 40 pin device, but out of these 40 pins, 32 are used for I/O  Many pins of 8051 are used for more than one function.  32 I/O pins = 4 eight bit ports = P0, P1, P2 and P3  All ports are bidirectional  Each ports consist of latch, an output driver and an input buffer.
  • 3.  40 pin DIP  +5 volts DC.  Among the 40 pins , 32 pins = four parallel ports P0, P1, P2 and P3 . Remaining pins are VCC, GND, XTAL1, XTAL2, RST, EA , PSEN, ALE.  P0.0- P0.7(AD0-AD7) (32-39)  The port 0 pins multiplexed with (low order byte) Address/data pins .  If the microcontroller is accessing external memory, these pins will act as address/data pins otherwise, they are used for Port 0 pins.
  • 4.  P1.0- P1.7 (1 – 8)  These 8-pins are dedicated for Port 1 to perform input or output port operations.  P2.0- P2.7(A8-A15) (21-28)  The port 2 pins are multiplexed with the higher order address pins .  When the microcontroller is accessing external memory these pins provide the higher order address byte otherwise they act as Port 2 pins.
  • 5.  P3.0- P3.7 : (10- 17)  These 8-pins are meant for Port3 operations and also for some control operations like Read, Write, Timer0, Timer1, INT0, INT1, RXD and TXD. SYMBOL POSITION ALTERNATE USE 𝑅𝐷 P 3.7 External memory read signal 𝑊𝑅 P 3.6 External memory write signal T1 P 3.5 External timer 1 input T0 P 3.4 External timer 0 output 𝐼𝑁𝑇1 P 3.3 External interrupt 1 input 𝐼𝑁𝑇0 P 3.2 External interrupt 0 input TXD P 3.1 Serial data output RXD P 3.0 Serial data input
  • 6.  Pin 40 & pin 20  Pin 40 = Vcc = +5v  Pin 20 = Vss = GND  XTAL1(Pin 19), XTAL2(Pin 18)  These two pins are connected to Quartz crystal oscillator which runs the on-chip oscillator.  For generating an internal clock signal, the external oscillator is connected at these two pins.  If we use a source other than the crystal oscillator, it will be connected to XTAL1 and XTAL2 is left unconnected.
  • 7.  ALE – pin 30(Address Latch Enable)  This is an output pin, which is active high.  When connected to external memory , port 0 provides both address and data i.e address and data are multiplexed through port 0 .  This ALE pin will demultiplex the address and data bus .When the pin is High , the AD bus will act as address bus otherwise the AD bus will act as Data bus.
  • 8.  RST – pin 9(RESET)  The RESET pin is an input pin and it is an active high pin.  When a high pulse is applied to this pin the microcontroller will reset and terminate all activities.  It held high at least for two machine cycles, while oscillator is running  PSEN– pin 29(Program Store Enable) :  This is an output pin which is active low.  When the microcontroller is accessing the program code stored in the external ROM, this pin is connected tothe OE (Output Enable) pin of the ROM.  It is activated every six oscillator periods while reading external memory
  • 9.  𝑬𝑨 – pin 31 (External Access):  This pin is an active low pin.  This pin is connected toground when microcontroller is accessing the program code stored in the external memory and connected to Vcc when it is accessing the program code in the on chip memory.  This pin should not be left Unconnected.