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)

Unit 2 mpmc
Unit 2 mpmcUnit 2 mpmc
Unit 2 mpmc
 
INTRODUCTION TO MICROCONTROLLER
INTRODUCTION TO MICROCONTROLLERINTRODUCTION TO MICROCONTROLLER
INTRODUCTION TO MICROCONTROLLER
 
Triac and diac
Triac and diacTriac and diac
Triac and diac
 
8086 modes
8086 modes8086 modes
8086 modes
 
8051 Microcontroller ppt
8051 Microcontroller ppt8051 Microcontroller ppt
8051 Microcontroller ppt
 
8051 MICROCONTROLLER
8051 MICROCONTROLLER 8051 MICROCONTROLLER
8051 MICROCONTROLLER
 
Registers-shift register
Registers-shift registerRegisters-shift register
Registers-shift register
 
Introduction to 8085svv
Introduction to 8085svvIntroduction to 8085svv
Introduction to 8085svv
 
Microprocessor fundamentals
Microprocessor fundamentalsMicroprocessor fundamentals
Microprocessor fundamentals
 
Introduction to Microcontroller
Introduction to MicrocontrollerIntroduction to Microcontroller
Introduction to Microcontroller
 
Microcontroller-8051.ppt
Microcontroller-8051.pptMicrocontroller-8051.ppt
Microcontroller-8051.ppt
 
Interfacing Stepper motor with 8051
Interfacing Stepper motor with 8051Interfacing Stepper motor with 8051
Interfacing Stepper motor with 8051
 
8051 Microcontroller I/O ports
8051 Microcontroller I/O ports8051 Microcontroller I/O ports
8051 Microcontroller I/O ports
 
8051 block diagram
8051 block diagram8051 block diagram
8051 block diagram
 
Microprocessor
MicroprocessorMicroprocessor
Microprocessor
 
8051 Microcontroller
8051 Microcontroller8051 Microcontroller
8051 Microcontroller
 
Pin diagram 8085
Pin diagram 8085 Pin diagram 8085
Pin diagram 8085
 
MICROCONTROLLER 8051
MICROCONTROLLER 8051MICROCONTROLLER 8051
MICROCONTROLLER 8051
 
Microcontroller presentation
Microcontroller presentationMicrocontroller presentation
Microcontroller presentation
 
The 8255 PPI
The 8255 PPIThe 8255 PPI
The 8255 PPI
 

Ä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
 
Microcontroller 8051
Microcontroller 8051Microcontroller 8051
Microcontroller 8051
 
8051 microcontroller
8051 microcontroller 8051 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
 

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

Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfSpandanaRallapalli
 
Q4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxQ4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxnelietumpap1
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 

Kürzlich hochgeladen (20)

Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdf
 
Q4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxQ4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptx
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 

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.