SlideShare una empresa de Scribd logo
1 de 17
Descargar para leer sin conexión
8051 MICROCONTROLLERS


      The 8051 Microcontroller and Embedded
      Systems: Using Assembly and C
      Mazidi, Mazidi and McKinlay


                          Chung-Ping Young
                                     楊中平

Home Automation, Networking, and Entertainment Lab
Dept. of Computer Science and Information Engineering
National Cheng Kung University, TAIWAN
Microcontrollers and embedded
OUTLINES
              processors
              Overview of the 8051 family




           Department of Computer Science and Information Engineering
   HANEL   National Cheng Kung University, TAIWAN                       2
General-purpose microprocessors
  MICRO-
CONTROLLERS
                     contains
    AND                  No RAM
 EMBEDDED                No ROM
PROCESSORS               No I/O ports

Microcontroller
                     Microcontroller has
 vs. General-            CPU (microprocessor)
   Purpose               RAM
Microprocessor           ROM
                         I/O ports
                         Timer
                         ADC and other peripherals

                  Department of Computer Science and Information Engineering
       HANEL      National Cheng Kung University, TAIWAN                       3
Data bus
  MICRO-                  General-
                          purpose
CONTROLLERS               Micro-
                          Processor                           I/O             Serial
    AND                               RAM           ROM
                                                              Port
                                                                      Timer   COM
                                                                               Port
 EMBEDDED
PROCESSORS                 CPU
                                          Address bus

Microcontroller
 vs. General-
   Purpose                  Microcontroller
Microprocessor                            CPU         RAM        ROM
    (cont’)

                                                                 Serial
                                              I/O     Timer      COM
                                                                  Port


                  Department of Computer Science and Information Engineering
       HANEL      National Cheng Kung University, TAIWAN                               4
General-purpose microprocessors
  MICRO-
                         Must add RAM, ROM, I/O ports, and
CONTROLLERS              timers externally to make them functional
    AND                  Make the system bulkier and much more
 EMBEDDED                expensive
PROCESSORS               Have the advantage of versatility on the
                         amount of RAM, ROM, and I/O ports
Microcontroller      Microcontroller
 vs. General-            The fixed amount of on-chip ROM, RAM,
   Purpose               and number of I/O ports makes them ideal
Microprocessor           for many applications in which cost and
    (cont’)              space are critical
                         In many applications, the space it takes,
                         the power it consumes, and the price per
                         unit are much more critical considerations
                         than the computing power

                  Department of Computer Science and Information Engineering
       HANEL      National Cheng Kung University, TAIWAN                       5
An embedded product uses a
  MICRO-              microprocessor (or microcontroller) to
CONTROLLERS           do one task and one task only
    AND
                          There is only one application software that
 EMBEDDED
                          is typically burned into ROM
PROCESSORS
                      A PC, in contrast with the embedded
Microcontrollers      system, can be used for any number of
for Embedded          applications
    Systems               It has RAM memory and an operating
                          system that loads a variety of applications
                          into RAM and lets the CPU run them
                          A PC contains or is connected to various
                          embedded products
                              Each one peripheral has a microcontroller inside
                              it that performs only one task

                   Department of Computer Science and Information Engineering
       HANEL       National Cheng Kung University, TAIWAN                       6
Home
  MICRO-                  Appliances, intercom, telephones, security systems,
CONTROLLERS               garage door openers, answering machines, fax
    AND                   machines, home computers, TVs, cable TV tuner,
                          VCR, camcorder, remote controls, video games,
 EMBEDDED                 cellular phones, musical instruments, sewing
PROCESSORS                machines, lighting control, paging, camera, pinball
                          machines, toys, exercise equipment
Microcontrollers      Office
for Embedded              Telephones, computers, security systems, fax
    Systems               machines, microwave, copier, laser printer, color
                          printer, paging
     (cont’)
                      Auto
                          Trip computer, engine control, air bag, ABS,
                          instrumentation, security system, transmission
                          control, entertainment, climate control, cellular
                          phone, keyless entry

                   Department of Computer Science and Information Engineering
        HANEL      National Cheng Kung University, TAIWAN                       7
Many manufactures of general-purpose
  MICRO-           microprocessors have targeted their
CONTROLLERS        microprocessor for the high end of the
    AND
                   embedded market
 EMBEDDED
                       There are times that a microcontroller is
PROCESSORS
                       inadequate for the task
   x86 PC          When a company targets a general-
 Embedded          purpose microprocessor for the
 Applications      embedded market, it optimizes the
                   processor used for embedded systems
                   Very often the terms embedded
                   processor and microcontroller are used
                   interchangeably

                Department of Computer Science and Information Engineering
      HANEL     National Cheng Kung University, TAIWAN                       8
One of the most critical needs of an
  MICRO-           embedded system is to decrease
CONTROLLERS        power consumption and space
    AND
 EMBEDDED          In high-performance embedded
PROCESSORS         processors, the trend is to integrate
                   more functions on the CPU chip and let
   x86 PC          designer decide which features he/she
 Embedded          wants to use
 Applications      In many cases using x86 PCs for the
    (cont’)
                   high-end embedded applications
                       Saves money and shortens development
                       time
                           A vast library of software already written
                           Windows is a widely used and well understood
                           platform
                Department of Computer Science and Information Engineering
       HANEL    National Cheng Kung University, TAIWAN                       9
8-bit microcontrollers
  MICRO-
CONTROLLERS              Motorola’s 6811
    AND                  Intel’s 8051
 EMBEDDED                Zilog’s Z8
PROCESSORS               Microchip’s PIC

  Choosing a         There are also 16-bit and 32-bit
Microcontroller      microcontrollers made by various chip
                     makers




                  Department of Computer Science and Information Engineering
       HANEL      National Cheng Kung University, TAIWAN                       10
Meeting the computing needs of the
  MICRO-
CONTROLLERS
                     task at hand efficiently and cost
    AND              effectively
 EMBEDDED                Speed
PROCESSORS               Packaging
                         Power consumption
  Criteria for
                         The amount of RAM and ROM on chip
 Choosing a
Microcontroller          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

                  Department of Computer Science and Information Engineering
       HANEL      National Cheng Kung University, TAIWAN                       11
Availability of software development
  MICRO-             tools, such as compilers, assemblers,
CONTROLLERS          and debuggers
    AND
 EMBEDDED            Wide availability and reliable sources
PROCESSORS           of the microcontroller
                         The 8051 family has the largest number of
  Criteria for           diversified (multiple source) suppliers
 Choosing a                  Intel (original)
                             Atmel
Microcontroller
    (cont’)                  Philips/Signetics
                             AMD
                             Infineon (formerly Siemens)
                             Matra
                             Dallas Semiconductor/Maxim


                  Department of Computer Science and Information Engineering
       HANEL      National Cheng Kung University, TAIWAN                       12
Intel introduced 8051, referred as MCS-
OVERVIEW OF          51, in 1981
8051 FAMILY              The 8051 is an 8-bit processor
                             The CPU can work on only 8 bits of data at a
                             time
     8051
Microcontroller          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
                     The 8051 became widely popular after
                     allowing other manufactures to make
                     and market any flavor of the 8051, but
                     remaining code-compatible
                  Department of Computer Science and Information Engineering
       HANEL      National Cheng Kung University, TAIWAN                       13
External
                   Interrupts
OVERVIEW OF
8051 FAMILY




                                                                               Counter Inputs
                                   On-chip
                  Interrupt         ROM          On-chip          Etc.
                   Control                                      Timer 0
     8051                          for code       RAM           Timer 1
Microcontroller
    (cont’)
                     CPU


                     OSC            Bus             I/O          Serial
                                   Control         Ports          Port

                                                 P0 P1 P2 P3    TXD   RXD

                                              Address/Data

                  Department of Computer Science and Information Engineering
       HANEL      National Cheng Kung University, TAIWAN                           14
The 8051 is a subset of the 8052
OVERVIEW OF
8051 FAMILY      The 8031 is a ROM-less 8051
                     Add external ROM to it
8051 Family          You lose two ports, and leave only 2 ports
                     for I/O operations

                      Feature                     8051 8052 8031
                      ROM (on-chip program
                                                     4K       8K      0K
                      space in bytes)
                      RAM (bytes)                   128      256     128
                      Timers                           2       3           2
                      I/O pins                       32       32      32
                      Serial port                      1       1           1
                      Interrupt sources                6       8           6

              Department of Computer Science and Information Engineering
     HANEL    National Cheng Kung University, TAIWAN                           15
8751 microcontroller
OVERVIEW OF
8051 FAMILY               UV-EPROM
                              PROM burner
 Various 8051                 UV-EPROM eraser takes 20 min to erase
Microcontrollers      AT89C51 from Atmel Corporation
                          Flash (erase before write)
                              ROM burner that supports flash
                              A separate eraser is not needed
                      DS89C4x0 from Dallas Semiconductor,
                      now part of Maxim Corp.
                          Flash
                              Comes with on-chip loader, loading program to
                              on-chip flash via PC COM port

                   Department of Computer Science and Information Engineering
       HANEL       National Cheng Kung University, TAIWAN                       16
DS5000 from Dallas Semiconductor
OVERVIEW OF
8051 FAMILY               NV-RAM (changed one byte at a time),
                          RTC (real-time clock)
 Various 8051                 Also comes with on-chip loader
Microcontrollers      OTP (one-time-programmable) version
     (cont’)          of 8051
                      8051 family from Philips
                          ADC, DAC, extended I/O, and both OTP
                          and flash




                   Department of Computer Science and Information Engineering
        HANEL      National Cheng Kung University, TAIWAN                       17

Más contenido relacionado

La actualidad más candente

Interfacing memory with 8086 microprocessor
Interfacing memory with 8086 microprocessorInterfacing memory with 8086 microprocessor
Interfacing memory with 8086 microprocessorVikas Gupta
 
INTRODUCTION TO MICROCONTROLLER
INTRODUCTION TO MICROCONTROLLERINTRODUCTION TO MICROCONTROLLER
INTRODUCTION TO MICROCONTROLLERAnkita Jaiswal
 
Real Time Operating system (RTOS) - Embedded systems
Real Time Operating system (RTOS) - Embedded systemsReal Time Operating system (RTOS) - Embedded systems
Real Time Operating system (RTOS) - Embedded systemsHariharan Ganesan
 
ARM7-ARCHITECTURE
ARM7-ARCHITECTURE ARM7-ARCHITECTURE
ARM7-ARCHITECTURE Dr.YNM
 
Microcontroller(18CS44) module 1
Microcontroller(18CS44)  module 1Microcontroller(18CS44)  module 1
Microcontroller(18CS44) module 1Swetha A
 
comparison between Microprocessor-Microcontroller
comparison between Microprocessor-Microcontrollercomparison between Microprocessor-Microcontroller
comparison between Microprocessor-MicrocontrollerDabbaru Murali
 
Pipelining in Computer System Achitecture
Pipelining in Computer System AchitecturePipelining in Computer System Achitecture
Pipelining in Computer System AchitectureYashiUpadhyay3
 
Training Report on Embedded System
Training Report on Embedded SystemTraining Report on Embedded System
Training Report on Embedded SystemRoshan Mani
 
Microcontrollers(8051) Notes written by Arun Kumar G, Associate Professor, De...
Microcontrollers(8051) Notes written by Arun Kumar G, Associate Professor, De...Microcontrollers(8051) Notes written by Arun Kumar G, Associate Professor, De...
Microcontrollers(8051) Notes written by Arun Kumar G, Associate Professor, De...Arunkumar Gowdru
 
Arithmetic & logical operations in 8051
Arithmetic & logical operations in 8051Arithmetic & logical operations in 8051
Arithmetic & logical operations in 8051Jay Patel
 
Architecture of 8086 Microprocessor
Architecture of 8086 Microprocessor  Architecture of 8086 Microprocessor
Architecture of 8086 Microprocessor Mustapha Fatty
 
Arm modes
Arm modesArm modes
Arm modesabhi165
 
Unit 3 basic processing unit
Unit 3   basic processing unitUnit 3   basic processing unit
Unit 3 basic processing unitchidabdu
 
Unit II arm 7 Instruction Set
Unit II arm 7 Instruction SetUnit II arm 7 Instruction Set
Unit II arm 7 Instruction SetDr. Pankaj Zope
 

La actualidad más candente (20)

Interfacing memory with 8086 microprocessor
Interfacing memory with 8086 microprocessorInterfacing memory with 8086 microprocessor
Interfacing memory with 8086 microprocessor
 
INTRODUCTION TO MICROCONTROLLER
INTRODUCTION TO MICROCONTROLLERINTRODUCTION TO MICROCONTROLLER
INTRODUCTION TO MICROCONTROLLER
 
Real Time Operating system (RTOS) - Embedded systems
Real Time Operating system (RTOS) - Embedded systemsReal Time Operating system (RTOS) - Embedded systems
Real Time Operating system (RTOS) - Embedded systems
 
ARM7-ARCHITECTURE
ARM7-ARCHITECTURE ARM7-ARCHITECTURE
ARM7-ARCHITECTURE
 
Microcontroller(18CS44) module 1
Microcontroller(18CS44)  module 1Microcontroller(18CS44)  module 1
Microcontroller(18CS44) module 1
 
Embedded system
Embedded systemEmbedded system
Embedded system
 
comparison between Microprocessor-Microcontroller
comparison between Microprocessor-Microcontrollercomparison between Microprocessor-Microcontroller
comparison between Microprocessor-Microcontroller
 
Micro program example
Micro program exampleMicro program example
Micro program example
 
Pipelining in Computer System Achitecture
Pipelining in Computer System AchitecturePipelining in Computer System Achitecture
Pipelining in Computer System Achitecture
 
Training Report on Embedded System
Training Report on Embedded SystemTraining Report on Embedded System
Training Report on Embedded System
 
Microcontrollers(8051) Notes written by Arun Kumar G, Associate Professor, De...
Microcontrollers(8051) Notes written by Arun Kumar G, Associate Professor, De...Microcontrollers(8051) Notes written by Arun Kumar G, Associate Professor, De...
Microcontrollers(8051) Notes written by Arun Kumar G, Associate Professor, De...
 
Arithmetic & logical operations in 8051
Arithmetic & logical operations in 8051Arithmetic & logical operations in 8051
Arithmetic & logical operations in 8051
 
CISC & RISC Architecture
CISC & RISC Architecture CISC & RISC Architecture
CISC & RISC Architecture
 
Architecture of 8086 Microprocessor
Architecture of 8086 Microprocessor  Architecture of 8086 Microprocessor
Architecture of 8086 Microprocessor
 
Arm modes
Arm modesArm modes
Arm modes
 
Embedded System Presentation
Embedded System PresentationEmbedded System Presentation
Embedded System Presentation
 
Unit 3 basic processing unit
Unit 3   basic processing unitUnit 3   basic processing unit
Unit 3 basic processing unit
 
Cache Memory
Cache MemoryCache Memory
Cache Memory
 
Unit II arm 7 Instruction Set
Unit II arm 7 Instruction SetUnit II arm 7 Instruction Set
Unit II arm 7 Instruction Set
 
Addressing sequencing
Addressing sequencingAddressing sequencing
Addressing sequencing
 

Destacado

1 introducing embedded systems and the microcontrollers
1 introducing embedded systems and the microcontrollers1 introducing embedded systems and the microcontrollers
1 introducing embedded systems and the microcontrollersBidhu Deka
 
PIC32MX Microcontroller Family
PIC32MX Microcontroller FamilyPIC32MX Microcontroller Family
PIC32MX Microcontroller FamilyPremier Farnell
 
RTOS based Confidential Area Security System
RTOS based Confidential Area Security SystemRTOS based Confidential Area Security System
RTOS based Confidential Area Security Systemajinky gadewar
 
Sms based patient monitering
Sms based patient moniteringSms based patient monitering
Sms based patient moniteringPadmaja Dash
 
RTC Interfacing and Programming
RTC Interfacing and ProgrammingRTC Interfacing and Programming
RTC Interfacing and ProgrammingDevashish Raval
 
Two Types of Robots for Doing Chores Around the House
Two Types of Robots for Doing Chores Around the House Two Types of Robots for Doing Chores Around the House
Two Types of Robots for Doing Chores Around the House Jacob Newberger
 
Presentation on home automation system
Presentation on  home automation systemPresentation on  home automation system
Presentation on home automation systemNamit Sood
 
Networking of multiple microcontrollers
Networking of multiple microcontrollersNetworking of multiple microcontrollers
Networking of multiple microcontrollersEdgefxkits & Solutions
 
Intro to micro controller (Atmega16)
Intro to micro controller (Atmega16)Intro to micro controller (Atmega16)
Intro to micro controller (Atmega16)Ramadan Ramadan
 
WIRELESS HOME AUTOMATION USING PIC MICROCONTROLLER BASED ON RF-MODULE
WIRELESS HOME AUTOMATION USING PIC MICROCONTROLLER BASED ON RF-MODULEWIRELESS HOME AUTOMATION USING PIC MICROCONTROLLER BASED ON RF-MODULE
WIRELESS HOME AUTOMATION USING PIC MICROCONTROLLER BASED ON RF-MODULEEng.Manfred Kibona
 
Fire fighting robot using 8051 microcontroller
Fire fighting robot using 8051 microcontrollerFire fighting robot using 8051 microcontroller
Fire fighting robot using 8051 microcontrollervibs1893
 
List of microcontroller 8051 projects
List of microcontroller 8051 projectsList of microcontroller 8051 projects
List of microcontroller 8051 projectsSushil Mishra
 
8051 Assembly Language Programming
8051 Assembly Language Programming8051 Assembly Language Programming
8051 Assembly Language ProgrammingRavikumar Tiwari
 
The 8051 microcontroler based embedded systems
The 8051 microcontroler based embedded systemsThe 8051 microcontroler based embedded systems
The 8051 microcontroler based embedded systemsmanishpatel_79
 
8051 microcontroller and embedded system
8051 microcontroller and embedded system8051 microcontroller and embedded system
8051 microcontroller and embedded systemsb108ec
 
Solution manual 8051 microcontroller by mazidi
Solution manual 8051 microcontroller by mazidiSolution manual 8051 microcontroller by mazidi
Solution manual 8051 microcontroller by mazidiMuhammad Abdullah
 

Destacado (20)

1 introducing embedded systems and the microcontrollers
1 introducing embedded systems and the microcontrollers1 introducing embedded systems and the microcontrollers
1 introducing embedded systems and the microcontrollers
 
PIC32MX Microcontroller Family
PIC32MX Microcontroller FamilyPIC32MX Microcontroller Family
PIC32MX Microcontroller Family
 
RTOS based Confidential Area Security System
RTOS based Confidential Area Security SystemRTOS based Confidential Area Security System
RTOS based Confidential Area Security System
 
Antenna & its types
Antenna & its typesAntenna & its types
Antenna & its types
 
Sms based patient monitering
Sms based patient moniteringSms based patient monitering
Sms based patient monitering
 
RTC Interfacing and Programming
RTC Interfacing and ProgrammingRTC Interfacing and Programming
RTC Interfacing and Programming
 
8051 MICROCONTROLLER
8051 MICROCONTROLLER 8051 MICROCONTROLLER
8051 MICROCONTROLLER
 
Two Types of Robots for Doing Chores Around the House
Two Types of Robots for Doing Chores Around the House Two Types of Robots for Doing Chores Around the House
Two Types of Robots for Doing Chores Around the House
 
Presentation on home automation system
Presentation on  home automation systemPresentation on  home automation system
Presentation on home automation system
 
Networking of multiple microcontrollers
Networking of multiple microcontrollersNetworking of multiple microcontrollers
Networking of multiple microcontrollers
 
Intro to micro controller (Atmega16)
Intro to micro controller (Atmega16)Intro to micro controller (Atmega16)
Intro to micro controller (Atmega16)
 
WIRELESS HOME AUTOMATION USING PIC MICROCONTROLLER BASED ON RF-MODULE
WIRELESS HOME AUTOMATION USING PIC MICROCONTROLLER BASED ON RF-MODULEWIRELESS HOME AUTOMATION USING PIC MICROCONTROLLER BASED ON RF-MODULE
WIRELESS HOME AUTOMATION USING PIC MICROCONTROLLER BASED ON RF-MODULE
 
Basics of embedded systems
Basics of embedded systemsBasics of embedded systems
Basics of embedded systems
 
Fire fighting robot using 8051 microcontroller
Fire fighting robot using 8051 microcontrollerFire fighting robot using 8051 microcontroller
Fire fighting robot using 8051 microcontroller
 
List of microcontroller 8051 projects
List of microcontroller 8051 projectsList of microcontroller 8051 projects
List of microcontroller 8051 projects
 
8051 Assembly Language Programming
8051 Assembly Language Programming8051 Assembly Language Programming
8051 Assembly Language Programming
 
The 8051 microcontroler based embedded systems
The 8051 microcontroler based embedded systemsThe 8051 microcontroler based embedded systems
The 8051 microcontroler based embedded systems
 
8051 microcontroller and embedded system
8051 microcontroller and embedded system8051 microcontroller and embedded system
8051 microcontroller and embedded system
 
DSP Processor
DSP Processor DSP Processor
DSP Processor
 
Solution manual 8051 microcontroller by mazidi
Solution manual 8051 microcontroller by mazidiSolution manual 8051 microcontroller by mazidi
Solution manual 8051 microcontroller by mazidi
 

Similar a 8051 Microcontrollers Overview and Applications

Introduction to microcontroller
Introduction to microcontrollerIntroduction to microcontroller
Introduction to microcontrollerRajib Roy
 
Project report on embedded system using 8051 microcontroller
Project  report on embedded system using 8051 microcontrollerProject  report on embedded system using 8051 microcontroller
Project report on embedded system using 8051 microcontrollerVandna Sambyal
 
Benefits of Micro Controller.pdf
Benefits of Micro Controller.pdfBenefits of Micro Controller.pdf
Benefits of Micro Controller.pdfirfanakram32
 
Presentation on embedded system by abhishek sharma
Presentation on embedded system by abhishek sharmaPresentation on embedded system by abhishek sharma
Presentation on embedded system by abhishek sharmaAbhishekSharma2517
 
Solution manual the 8051 microcontroller based embedded systems
Solution manual the 8051 microcontroller based embedded systemsSolution manual the 8051 microcontroller based embedded systems
Solution manual the 8051 microcontroller based embedded systemsmanishpatel_79
 
Introduction to Embedded Systems and Microcontrollers
Introduction to Embedded Systems and MicrocontrollersIntroduction to Embedded Systems and Microcontrollers
Introduction to Embedded Systems and MicrocontrollersIslam Samir
 
Emb Sys Rev Ver1
Emb Sys   Rev Ver1Emb Sys   Rev Ver1
Emb Sys Rev Ver1ncct
 
Introduction to embedded systems using the msp430 6. 1 Enumerate the.pdf
Introduction to embedded systems using the msp430 6. 1 Enumerate the.pdfIntroduction to embedded systems using the msp430 6. 1 Enumerate the.pdf
Introduction to embedded systems using the msp430 6. 1 Enumerate the.pdfaienterpresses
 
Introduction to embedded systems using the msp430 6.1 Enumerate the .pdf
Introduction to embedded systems using the msp430 6.1 Enumerate the .pdfIntroduction to embedded systems using the msp430 6.1 Enumerate the .pdf
Introduction to embedded systems using the msp430 6.1 Enumerate the .pdfaienterpresses
 
ELH-1.3 PIC & ARM MICROCONTROLLER UNIT I Microcontroller’s
ELH-1.3 PIC & ARM MICROCONTROLLER UNIT I Microcontroller’sELH-1.3 PIC & ARM MICROCONTROLLER UNIT I Microcontroller’s
ELH-1.3 PIC & ARM MICROCONTROLLER UNIT I Microcontroller’sKuvempu University
 
Embedded Systems & Robotics
Embedded Systems  & RoboticsEmbedded Systems  & Robotics
Embedded Systems & Roboticsspoorani
 

Similar a 8051 Microcontrollers Overview and Applications (20)

Embedded system
Embedded systemEmbedded system
Embedded system
 
Embeddedsystem
EmbeddedsystemEmbeddedsystem
Embeddedsystem
 
1 8051 microcontroller intr
1 8051 microcontroller intr1 8051 microcontroller intr
1 8051 microcontroller intr
 
Embedded
EmbeddedEmbedded
Embedded
 
Embedded
EmbeddedEmbedded
Embedded
 
Introduction to microcontroller
Introduction to microcontrollerIntroduction to microcontroller
Introduction to microcontroller
 
ritesh (3)
ritesh (3)ritesh (3)
ritesh (3)
 
Unit-1.pptx
Unit-1.pptxUnit-1.pptx
Unit-1.pptx
 
Project report on embedded system using 8051 microcontroller
Project  report on embedded system using 8051 microcontrollerProject  report on embedded system using 8051 microcontroller
Project report on embedded system using 8051 microcontroller
 
Benefits of Micro Controller.pdf
Benefits of Micro Controller.pdfBenefits of Micro Controller.pdf
Benefits of Micro Controller.pdf
 
Presentation on embedded system by abhishek sharma
Presentation on embedded system by abhishek sharmaPresentation on embedded system by abhishek sharma
Presentation on embedded system by abhishek sharma
 
Solution manual the 8051 microcontroller based embedded systems
Solution manual the 8051 microcontroller based embedded systemsSolution manual the 8051 microcontroller based embedded systems
Solution manual the 8051 microcontroller based embedded systems
 
Introduction to Embedded Systems and Microcontrollers
Introduction to Embedded Systems and MicrocontrollersIntroduction to Embedded Systems and Microcontrollers
Introduction to Embedded Systems and Microcontrollers
 
Emb Sys Rev Ver1
Emb Sys   Rev Ver1Emb Sys   Rev Ver1
Emb Sys Rev Ver1
 
Embedded System Basics
Embedded System BasicsEmbedded System Basics
Embedded System Basics
 
Introduction to embedded systems using the msp430 6. 1 Enumerate the.pdf
Introduction to embedded systems using the msp430 6. 1 Enumerate the.pdfIntroduction to embedded systems using the msp430 6. 1 Enumerate the.pdf
Introduction to embedded systems using the msp430 6. 1 Enumerate the.pdf
 
Introduction to embedded systems using the msp430 6.1 Enumerate the .pdf
Introduction to embedded systems using the msp430 6.1 Enumerate the .pdfIntroduction to embedded systems using the msp430 6.1 Enumerate the .pdf
Introduction to embedded systems using the msp430 6.1 Enumerate the .pdf
 
ELH-1.3 PIC & ARM MICROCONTROLLER UNIT I Microcontroller’s
ELH-1.3 PIC & ARM MICROCONTROLLER UNIT I Microcontroller’sELH-1.3 PIC & ARM MICROCONTROLLER UNIT I Microcontroller’s
ELH-1.3 PIC & ARM MICROCONTROLLER UNIT I Microcontroller’s
 
Embedded system
Embedded systemEmbedded system
Embedded system
 
Embedded Systems & Robotics
Embedded Systems  & RoboticsEmbedded Systems  & Robotics
Embedded Systems & Robotics
 

Último

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 

Último (20)

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 

8051 Microcontrollers Overview and Applications

  • 1. 8051 MICROCONTROLLERS The 8051 Microcontroller and Embedded Systems: Using Assembly and C Mazidi, Mazidi and McKinlay Chung-Ping Young 楊中平 Home Automation, Networking, and Entertainment Lab Dept. of Computer Science and Information Engineering National Cheng Kung University, TAIWAN
  • 2. Microcontrollers and embedded OUTLINES processors Overview of the 8051 family Department of Computer Science and Information Engineering HANEL National Cheng Kung University, TAIWAN 2
  • 3. General-purpose microprocessors MICRO- CONTROLLERS contains AND No RAM EMBEDDED No ROM PROCESSORS No I/O ports Microcontroller Microcontroller has vs. General- CPU (microprocessor) Purpose RAM Microprocessor ROM I/O ports Timer ADC and other peripherals Department of Computer Science and Information Engineering HANEL National Cheng Kung University, TAIWAN 3
  • 4. Data bus MICRO- General- purpose CONTROLLERS Micro- Processor I/O Serial AND RAM ROM Port Timer COM Port EMBEDDED PROCESSORS CPU Address bus Microcontroller vs. General- Purpose Microcontroller Microprocessor CPU RAM ROM (cont’) Serial I/O Timer COM Port Department of Computer Science and Information Engineering HANEL National Cheng Kung University, TAIWAN 4
  • 5. General-purpose microprocessors MICRO- Must add RAM, ROM, I/O ports, and CONTROLLERS timers externally to make them functional AND Make the system bulkier and much more EMBEDDED expensive PROCESSORS Have the advantage of versatility on the amount of RAM, ROM, and I/O ports Microcontroller Microcontroller vs. General- The fixed amount of on-chip ROM, RAM, Purpose and number of I/O ports makes them ideal Microprocessor for many applications in which cost and (cont’) space are critical In many applications, the space it takes, the power it consumes, and the price per unit are much more critical considerations than the computing power Department of Computer Science and Information Engineering HANEL National Cheng Kung University, TAIWAN 5
  • 6. An embedded product uses a MICRO- microprocessor (or microcontroller) to CONTROLLERS do one task and one task only AND There is only one application software that EMBEDDED is typically burned into ROM PROCESSORS A PC, in contrast with the embedded Microcontrollers system, can be used for any number of for Embedded applications Systems It has RAM memory and an operating system that loads a variety of applications into RAM and lets the CPU run them A PC contains or is connected to various embedded products Each one peripheral has a microcontroller inside it that performs only one task Department of Computer Science and Information Engineering HANEL National Cheng Kung University, TAIWAN 6
  • 7. Home MICRO- Appliances, intercom, telephones, security systems, CONTROLLERS garage door openers, answering machines, fax AND machines, home computers, TVs, cable TV tuner, VCR, camcorder, remote controls, video games, EMBEDDED cellular phones, musical instruments, sewing PROCESSORS machines, lighting control, paging, camera, pinball machines, toys, exercise equipment Microcontrollers Office for Embedded Telephones, computers, security systems, fax Systems machines, microwave, copier, laser printer, color printer, paging (cont’) Auto Trip computer, engine control, air bag, ABS, instrumentation, security system, transmission control, entertainment, climate control, cellular phone, keyless entry Department of Computer Science and Information Engineering HANEL National Cheng Kung University, TAIWAN 7
  • 8. Many manufactures of general-purpose MICRO- microprocessors have targeted their CONTROLLERS microprocessor for the high end of the AND embedded market EMBEDDED There are times that a microcontroller is PROCESSORS inadequate for the task x86 PC When a company targets a general- Embedded purpose microprocessor for the Applications embedded market, it optimizes the processor used for embedded systems Very often the terms embedded processor and microcontroller are used interchangeably Department of Computer Science and Information Engineering HANEL National Cheng Kung University, TAIWAN 8
  • 9. One of the most critical needs of an MICRO- embedded system is to decrease CONTROLLERS power consumption and space AND EMBEDDED In high-performance embedded PROCESSORS processors, the trend is to integrate more functions on the CPU chip and let x86 PC designer decide which features he/she Embedded wants to use Applications In many cases using x86 PCs for the (cont’) high-end embedded applications Saves money and shortens development time A vast library of software already written Windows is a widely used and well understood platform Department of Computer Science and Information Engineering HANEL National Cheng Kung University, TAIWAN 9
  • 10. 8-bit microcontrollers MICRO- CONTROLLERS Motorola’s 6811 AND Intel’s 8051 EMBEDDED Zilog’s Z8 PROCESSORS Microchip’s PIC Choosing a There are also 16-bit and 32-bit Microcontroller microcontrollers made by various chip makers Department of Computer Science and Information Engineering HANEL National Cheng Kung University, TAIWAN 10
  • 11. Meeting the computing needs of the MICRO- CONTROLLERS task at hand efficiently and cost AND effectively EMBEDDED Speed PROCESSORS Packaging Power consumption Criteria for The amount of RAM and ROM on chip Choosing a Microcontroller 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 Department of Computer Science and Information Engineering HANEL National Cheng Kung University, TAIWAN 11
  • 12. Availability of software development MICRO- tools, such as compilers, assemblers, CONTROLLERS and debuggers AND EMBEDDED Wide availability and reliable sources PROCESSORS of the microcontroller The 8051 family has the largest number of Criteria for diversified (multiple source) suppliers Choosing a Intel (original) Atmel Microcontroller (cont’) Philips/Signetics AMD Infineon (formerly Siemens) Matra Dallas Semiconductor/Maxim Department of Computer Science and Information Engineering HANEL National Cheng Kung University, TAIWAN 12
  • 13. Intel introduced 8051, referred as MCS- OVERVIEW OF 51, in 1981 8051 FAMILY The 8051 is an 8-bit processor The CPU can work on only 8 bits of data at a time 8051 Microcontroller 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 The 8051 became widely popular after allowing other manufactures to make and market any flavor of the 8051, but remaining code-compatible Department of Computer Science and Information Engineering HANEL National Cheng Kung University, TAIWAN 13
  • 14. External Interrupts OVERVIEW OF 8051 FAMILY Counter Inputs On-chip Interrupt ROM On-chip Etc. Control Timer 0 8051 for code RAM Timer 1 Microcontroller (cont’) CPU OSC Bus I/O Serial Control Ports Port P0 P1 P2 P3 TXD RXD Address/Data Department of Computer Science and Information Engineering HANEL National Cheng Kung University, TAIWAN 14
  • 15. The 8051 is a subset of the 8052 OVERVIEW OF 8051 FAMILY The 8031 is a ROM-less 8051 Add external ROM to it 8051 Family You lose two ports, and leave only 2 ports for I/O operations Feature 8051 8052 8031 ROM (on-chip program 4K 8K 0K space in bytes) RAM (bytes) 128 256 128 Timers 2 3 2 I/O pins 32 32 32 Serial port 1 1 1 Interrupt sources 6 8 6 Department of Computer Science and Information Engineering HANEL National Cheng Kung University, TAIWAN 15
  • 16. 8751 microcontroller OVERVIEW OF 8051 FAMILY UV-EPROM PROM burner Various 8051 UV-EPROM eraser takes 20 min to erase Microcontrollers AT89C51 from Atmel Corporation Flash (erase before write) ROM burner that supports flash A separate eraser is not needed DS89C4x0 from Dallas Semiconductor, now part of Maxim Corp. Flash Comes with on-chip loader, loading program to on-chip flash via PC COM port Department of Computer Science and Information Engineering HANEL National Cheng Kung University, TAIWAN 16
  • 17. DS5000 from Dallas Semiconductor OVERVIEW OF 8051 FAMILY NV-RAM (changed one byte at a time), RTC (real-time clock) Various 8051 Also comes with on-chip loader Microcontrollers OTP (one-time-programmable) version (cont’) of 8051 8051 family from Philips ADC, DAC, extended I/O, and both OTP and flash Department of Computer Science and Information Engineering HANEL National Cheng Kung University, TAIWAN 17