SlideShare ist ein Scribd-Unternehmen logo
1 von 23
MICROCONTROLLERS
           8051
WHAT IS A MICROCONTROLLER?
• All of the components needed for a controller
  were built right onto one chip.
• A one chip computer, or microcontroller was
  born.
• A microcontroller is a highly integrated chip
  which includes, on one chip, all or most of the
  parts needed for a controller.
• The microcontroller could be called a "one-
  chip solution".
MICROPROCESSOR vs MICRO CONTROLLER
MICROPROCESSOR Vs MICRO CONTROLLER

   General-purpose                  Microcontroller
   microprocessors
                                  The fixed amount of on-chip
 Must add RAM, ROM, I/O           ROM, RAM, and number of
  ports, and timers externally     I/O ports makes them ideal
  to make them functional          for applications in which
 Make the system bulkier          cost and space are critical.
  and much more expensive         In many applications, the
 Have the advantage of            space it takes, the power it
  versatility on the amount of     consumes, and the price per
  RAM, ROM, and I/O ports          unit are much more critical
                                   considerations than the
                                   computing power
Features :
• The Intel 8051 is used in embedded
  systems
  – 8-bit CPU
  – 4k bytes ROM for the program
  – 128 BYTES of RAM for variables
  – 32 I/O lines ( 4 PORTS WITH 8 EACH )
  – 2 timers
  – 1 Serial port
  – 6 interrupt sources
  – Low cost (10-15 cents per chip)
Block Diagram
External Interrupts


   Interrupt           4k          128 bytes           Timer 1
    Control           ROM            RAM               Timer 2




     CPU




     OSC               Bus
                                   4 I/O Ports          Serial
                      Control



                                 P0 P2 P1        P3   TXD   RXD
                                Addr/Data
8051 – PIN DIAGRAM
8051 – 40 PIN IC
• 8051 contains four I/O ports (P0 - P3)
                 • Each port can be used as input or output
                   (bi-direction)

                        Port 1          Port 2        Port 3
    Port 0
                       P1(P1.0~       P2(P2.0~       P3(P3.0~
P0(P0.0~P0.7)
                        P1.7)           P2.7)         P3.7)
                                      8-bit R/W -
 8-bit R/W -                                          General
                                        General
   General                                          Purpose I/O
                                      Purpose I/O
 Purpose I/O           Only 8-bit
                         R/W -
                        General       Or high       if not using
  Or acts as a          Purpose      byte of the     any of the
  multiplexed
                          I/O         address          internal
   low byte                            bus for      peripherals
  address and                                       (timers) or
  data bus for
                                      external
    external                          memory          external
   memory                              design       interrupts.
     design
PORT 3 – MULTIPLE FUNCTIONS
IMPORTANT PINS

•   PSEN (out): Program Store Enable, the read signal
    for external program memory (active low).
•   ALE (out): Address Latch Enable, to latch address
    outputs at Port0 and Port2
•   EA (in): External Access Enable, active low to access
    external program memory locations 0 to 4K
•   RXD,TXD: UART pins for serial I/O on Port 3
•   XTAL1 & XTAL2: Crystal inputs for internal
    oscillator.
SIGNALS - OPERATION
• Vcc(pin 40):
   – Vcc provides supply voltage to the chip.
   – The voltage source is +5V.
• GND(pin 20):ground
• XTAL1 and XTAL2(pins 19,18):
   – These 2 pins provide external clock.
   – Way 1:using a quartz crystal oscillator
   – Way 2:using a TTL oscillator
QUARTZ CRYSTAL OSCILLATOR
• Using a quartz crystal oscillator
• We can observe the frequency on the XTAL2
  pin.      C2
                         XTAL2
          30pF

           C1
                         XTAL1
          30pF

                         GND
XTAL Connection to an External Clock Source


• Using a TTL oscillator
• XTAL2 is unconnected.
             N             XTAL2
             C

           EXTERNAL
           OSCILLATOR
           SIGNAL          XTAL1



                           GND
RST - RESET
• RST(pin 9):reset
   – input pin and active high
       • The high pulse must be high at least 2 machine
         cycles.
   – power-on reset.
       • Upon applying a high pulse to RST, the
         microcontroller will reset and all values in
         registers will be lost.
       • Reset values of some 8051 registers
RESET Value of Some 8051 Registers:


 Register           Reset Value

 PC                 0000

 ACC                0000

 B                  0000

 PSW                0000

 SP                 0007

 DPTR               0000

 RAM are all zero
RESET CIRCUITARY
Vcc



                      31
                           EA/VPP
                           X1
      10 uF   30 pF

                           X2
                           RST
                      9
      8.2 K
EA’ & PSEN’
• EA’(pin 31):external access
   – There is no on-chip ROM in 8031 and 8032 .
   – The EA’ pin is connected to GND to indicate
     the code is stored externally.
   – PSEN’ & ALE are used for external ROM.
   – For 8051, EA’ pin is connected to Vcc.
   – active low.
• PSEN’(pin 29):program store enable
   – This is an output pin and is connected to the OE
     pin of the ROM.
ALE
ALE(pin 30):address
latch enable
   It is an output pin and is
   active high.
   8051 port 0 provides
   both address and data.
   The ALE pin is used for
   de-multiplexing the
   address and data by
   connecting to the G pin of
   the 74LS373 latch.
External code memory

       WR
       RD
     PSEN                      OE
      ALE            74LS373   CS
             G
     P0.0                      A0
                 D
     P0.7                      A7


                               D0
                               D7
EA
     P2.0                      A8
      P2.7                     A15

 8051                          ROM
External data memory
       WR                      WR
       RD                      RD
     PSEN
      ALE            74LS373   CS
             G
     P0.0                      A0
                 D
     P0.7                      A7


                               D0
                               D7
EA
     P2.0                      A8
      P2.7                     A15

 8051                          RAM
Title

• Lorem ipsum dolor sit amet, consectetuer
  adipiscing elit. Vivamus et magna. Fusce sed
  sem sed magna suscipit egestas.
• Lorem ipsum dolor sit amet, consectetuer
  adipiscing elit. Vivamus et magna. Fusce sed
  sem sed magna suscipit egestas.

Weitere ähnliche Inhalte

Was ist angesagt? (20)

8051 Microcontroller PPT's By Er. Swapnil Kaware
8051 Microcontroller PPT's By Er. Swapnil Kaware8051 Microcontroller PPT's By Er. Swapnil Kaware
8051 Microcontroller PPT's By Er. Swapnil Kaware
 
MICROCONTROLLER 8051
MICROCONTROLLER 8051MICROCONTROLLER 8051
MICROCONTROLLER 8051
 
Interfacing Stepper motor with 8051
Interfacing Stepper motor with 8051Interfacing Stepper motor with 8051
Interfacing Stepper motor with 8051
 
Introduction to pic microcontroller
Introduction to pic microcontrollerIntroduction to pic microcontroller
Introduction to pic microcontroller
 
Interfacing 8255
Interfacing 8255Interfacing 8255
Interfacing 8255
 
8051 Microcontroller
8051 Microcontroller8051 Microcontroller
8051 Microcontroller
 
DAC Interfacing with 8051.pdf
DAC Interfacing with 8051.pdfDAC Interfacing with 8051.pdf
DAC Interfacing with 8051.pdf
 
Memory organization of 8051
Memory organization of 8051Memory organization of 8051
Memory organization of 8051
 
Microcontroller 8051
Microcontroller 8051Microcontroller 8051
Microcontroller 8051
 
Basics of ATmega32
Basics of ATmega32Basics of ATmega32
Basics of ATmega32
 
8257 DMA Controller
8257 DMA Controller8257 DMA Controller
8257 DMA Controller
 
8251 USART
8251 USART8251 USART
8251 USART
 
Microcontroller-8051.ppt
Microcontroller-8051.pptMicrocontroller-8051.ppt
Microcontroller-8051.ppt
 
INTRODUCTION TO MICROCONTROLLER
INTRODUCTION TO MICROCONTROLLERINTRODUCTION TO MICROCONTROLLER
INTRODUCTION TO MICROCONTROLLER
 
Memory & I/O interfacing
Memory & I/O  interfacingMemory & I/O  interfacing
Memory & I/O interfacing
 
Intel 8051 - pin description
Intel 8051  - pin descriptionIntel 8051  - pin description
Intel 8051 - pin description
 
Instruction Set of 8051 Microcontroller
Instruction Set of 8051 MicrocontrollerInstruction Set of 8051 Microcontroller
Instruction Set of 8051 Microcontroller
 
PLC basic concepts
PLC  basic conceptsPLC  basic concepts
PLC basic concepts
 
8254 presentation
8254 presentation8254 presentation
8254 presentation
 
8051 microcontroller
8051 microcontroller 8051 microcontroller
8051 microcontroller
 

Ähnlich wie 8051 microprocessor

Ähnlich wie 8051 microprocessor (20)

8051 microcontroller
8051 microcontroller8051 microcontroller
8051 microcontroller
 
8051microcontroller
8051microcontroller 8051microcontroller
8051microcontroller
 
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
80518051
8051
 
Embedded systems, 8051 microcontroller
Embedded systems, 8051 microcontrollerEmbedded systems, 8051 microcontroller
Embedded systems, 8051 microcontroller
 
Live B tech Projects & Industrial Training @Technogroovy
Live B tech Projects & Industrial Training @Technogroovy Live B tech Projects & Industrial Training @Technogroovy
Live B tech Projects & Industrial Training @Technogroovy
 
microcontroller 8051 17.07.2023.pdf
microcontroller 8051 17.07.2023.pdfmicrocontroller 8051 17.07.2023.pdf
microcontroller 8051 17.07.2023.pdf
 
At89s51
At89s51At89s51
At89s51
 
8051 full ppt
8051 full ppt8051 full ppt
8051 full ppt
 
8051 microcontrollers ch3
8051 microcontrollers ch38051 microcontrollers ch3
8051 microcontrollers ch3
 
At89 s8252
At89 s8252At89 s8252
At89 s8252
 
8051 Microcontroller
8051 Microcontroller8051 Microcontroller
8051 Microcontroller
 
At89s51
At89s51At89s51
At89s51
 
Embedded systems, 8051 microcontroller
Embedded systems, 8051 microcontrollerEmbedded systems, 8051 microcontroller
Embedded systems, 8051 microcontroller
 
8051.pptx
8051.pptx8051.pptx
8051.pptx
 
8051 Presentation
8051 Presentation8051 Presentation
8051 Presentation
 
dspAt89 s52
dspAt89 s52dspAt89 s52
dspAt89 s52
 
At 89s51
At 89s51At 89s51
At 89s51
 
Micro lec note2
Micro lec note2Micro lec note2
Micro lec note2
 
At 89s52
At 89s52At 89s52
At 89s52
 

Mehr von VJ Aiswaryadevi (15)

8051
80518051
8051
 
memory 8051
memory  8051memory  8051
memory 8051
 
logical 8051
logical 8051logical 8051
logical 8051
 
interrupts
interruptsinterrupts
interrupts
 
mup
mupmup
mup
 
branch ins 8051
branch ins 8051branch ins 8051
branch ins 8051
 
boolean 8051
boolean 8051boolean 8051
boolean 8051
 
arithmetic ins in 8051
arithmetic ins in 8051arithmetic ins in 8051
arithmetic ins in 8051
 
8051 archi
8051 archi8051 archi
8051 archi
 
8051 microprocessor
8051 microprocessor8051 microprocessor
8051 microprocessor
 
Groupware
GroupwareGroupware
Groupware
 
Db
DbDb
Db
 
302 B+Tree Ind Hash
302 B+Tree Ind Hash302 B+Tree Ind Hash
302 B+Tree Ind Hash
 
storage media
storage mediastorage media
storage media
 
B Trees
B TreesB Trees
B Trees
 

Kürzlich hochgeladen

Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
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
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
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
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
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
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxShobhayan Kirtania
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 

Kürzlich hochgeladen (20)

Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
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
 
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...
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
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
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
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
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptx
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 

8051 microprocessor

  • 2. WHAT IS A MICROCONTROLLER? • All of the components needed for a controller were built right onto one chip. • A one chip computer, or microcontroller was born. • A microcontroller is a highly integrated chip which includes, on one chip, all or most of the parts needed for a controller. • The microcontroller could be called a "one- chip solution".
  • 4. MICROPROCESSOR Vs MICRO CONTROLLER General-purpose Microcontroller microprocessors  The fixed amount of on-chip  Must add RAM, ROM, I/O ROM, RAM, and number of ports, and timers externally I/O ports makes them ideal to make them functional for applications in which  Make the system bulkier cost and space are critical. and much more expensive  In many applications, the  Have the advantage of space it takes, the power it versatility on the amount of consumes, and the price per RAM, ROM, and I/O ports unit are much more critical considerations than the computing power
  • 5. Features : • The Intel 8051 is used in embedded systems – 8-bit CPU – 4k bytes ROM for the program – 128 BYTES of RAM for variables – 32 I/O lines ( 4 PORTS WITH 8 EACH ) – 2 timers – 1 Serial port – 6 interrupt sources – Low cost (10-15 cents per chip)
  • 6. Block Diagram External Interrupts Interrupt 4k 128 bytes Timer 1 Control ROM RAM Timer 2 CPU OSC Bus 4 I/O Ports Serial Control P0 P2 P1 P3 TXD RXD Addr/Data
  • 7. 8051 – PIN DIAGRAM
  • 8. 8051 – 40 PIN IC
  • 9. • 8051 contains four I/O ports (P0 - P3) • Each port can be used as input or output (bi-direction) Port 1 Port 2 Port 3 Port 0 P1(P1.0~ P2(P2.0~ P3(P3.0~ P0(P0.0~P0.7) P1.7) P2.7) P3.7) 8-bit R/W - 8-bit R/W - General General General Purpose I/O Purpose I/O Purpose I/O Only 8-bit R/W - General Or high if not using Or acts as a Purpose byte of the any of the multiplexed I/O address internal low byte bus for peripherals address and (timers) or data bus for external external memory external memory design interrupts. design
  • 10. PORT 3 – MULTIPLE FUNCTIONS
  • 11. IMPORTANT PINS • PSEN (out): Program Store Enable, the read signal for external program memory (active low). • ALE (out): Address Latch Enable, to latch address outputs at Port0 and Port2 • EA (in): External Access Enable, active low to access external program memory locations 0 to 4K • RXD,TXD: UART pins for serial I/O on Port 3 • XTAL1 & XTAL2: Crystal inputs for internal oscillator.
  • 12. SIGNALS - OPERATION • Vcc(pin 40): – Vcc provides supply voltage to the chip. – The voltage source is +5V. • GND(pin 20):ground • XTAL1 and XTAL2(pins 19,18): – These 2 pins provide external clock. – Way 1:using a quartz crystal oscillator – Way 2:using a TTL oscillator
  • 13. QUARTZ CRYSTAL OSCILLATOR • Using a quartz crystal oscillator • We can observe the frequency on the XTAL2 pin. C2 XTAL2 30pF C1 XTAL1 30pF GND
  • 14. XTAL Connection to an External Clock Source • Using a TTL oscillator • XTAL2 is unconnected. N XTAL2 C EXTERNAL OSCILLATOR SIGNAL XTAL1 GND
  • 15. RST - RESET • RST(pin 9):reset – input pin and active high • The high pulse must be high at least 2 machine cycles. – power-on reset. • Upon applying a high pulse to RST, the microcontroller will reset and all values in registers will be lost. • Reset values of some 8051 registers
  • 16. RESET Value of Some 8051 Registers: Register Reset Value PC 0000 ACC 0000 B 0000 PSW 0000 SP 0007 DPTR 0000 RAM are all zero
  • 17. RESET CIRCUITARY Vcc 31 EA/VPP X1 10 uF 30 pF X2 RST 9 8.2 K
  • 18. EA’ & PSEN’ • EA’(pin 31):external access – There is no on-chip ROM in 8031 and 8032 . – The EA’ pin is connected to GND to indicate the code is stored externally. – PSEN’ & ALE are used for external ROM. – For 8051, EA’ pin is connected to Vcc. – active low. • PSEN’(pin 29):program store enable – This is an output pin and is connected to the OE pin of the ROM.
  • 19. ALE ALE(pin 30):address latch enable It is an output pin and is active high. 8051 port 0 provides both address and data. The ALE pin is used for de-multiplexing the address and data by connecting to the G pin of the 74LS373 latch.
  • 20. External code memory WR RD PSEN OE ALE 74LS373 CS G P0.0 A0 D P0.7 A7 D0 D7 EA P2.0 A8 P2.7 A15 8051 ROM
  • 21. External data memory WR WR RD RD PSEN ALE 74LS373 CS G P0.0 A0 D P0.7 A7 D0 D7 EA P2.0 A8 P2.7 A15 8051 RAM
  • 22.
  • 23. Title • Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vivamus et magna. Fusce sed sem sed magna suscipit egestas. • Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vivamus et magna. Fusce sed sem sed magna suscipit egestas.