SlideShare ist ein Scribd-Unternehmen logo
1 von 17
Downloaden Sie, um offline zu lesen
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

Weitere ähnliche Inhalte

Was ist angesagt?

Smart home automation using microcontroller
Smart home automation using microcontrollerSmart home automation using microcontroller
Smart home automation using microcontrollerR.RAJA SHARMA
 
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 KawareProf. Swapnil V. Kaware
 
MAXIMUM MODE OF 8086 MICROPROCESSOR-1.pptx
MAXIMUM MODE OF 8086 MICROPROCESSOR-1.pptxMAXIMUM MODE OF 8086 MICROPROCESSOR-1.pptx
MAXIMUM MODE OF 8086 MICROPROCESSOR-1.pptxZadockMaloba
 
Agriculture Robot report
Agriculture Robot reportAgriculture Robot report
Agriculture Robot reportRadhe Chauhan
 
DMA Versus Polling or Interrupt Driven I/O
DMA Versus Polling or Interrupt Driven I/ODMA Versus Polling or Interrupt Driven I/O
DMA Versus Polling or Interrupt Driven I/Osathish sak
 
BCS302- Digital Design and computer organization -VTU-2022 scheme-Expectation...
BCS302- Digital Design and computer organization -VTU-2022 scheme-Expectation...BCS302- Digital Design and computer organization -VTU-2022 scheme-Expectation...
BCS302- Digital Design and computer organization -VTU-2022 scheme-Expectation...ciyamala kushbu
 
Microprocessor and Microcontroller Anna University Answer Key April / May - 2015
Microprocessor and Microcontroller Anna University Answer Key April / May - 2015Microprocessor and Microcontroller Anna University Answer Key April / May - 2015
Microprocessor and Microcontroller Anna University Answer Key April / May - 2015JCT COLLEGE OF ENGINEERING AND TECHNOLOGY
 
Tracking system on IOT
Tracking system on IOTTracking system on IOT
Tracking system on IOTAlex Vishwa
 
register file structure of PIC controller
register file structure of PIC controllerregister file structure of PIC controller
register file structure of PIC controllerNirbhay Singh
 
Multiplication algorithm, hardware and flowchart
Multiplication algorithm, hardware and flowchartMultiplication algorithm, hardware and flowchart
Multiplication algorithm, hardware and flowchartTanjarul Islam Mishu
 
Microcontroller in automobile and applications
Microcontroller in automobile and applicationsMicrocontroller in automobile and applications
Microcontroller in automobile and applicationsKartik Kalpande Patil
 
Memory organization of 8051
Memory organization of 8051Memory organization of 8051
Memory organization of 8051Muthu Manickam
 
An IOT based Smart Traffic Management System
An IOT based Smart Traffic Management SystemAn IOT based Smart Traffic Management System
An IOT based Smart Traffic Management SystemAI Publications
 
PAI Unit 2 Protection in 80386 segmentation
PAI Unit 2 Protection in 80386 segmentationPAI Unit 2 Protection in 80386 segmentation
PAI Unit 2 Protection in 80386 segmentationKanchanPatil34
 
Machine Learning and Internet of Things
Machine Learning and Internet of ThingsMachine Learning and Internet of Things
Machine Learning and Internet of ThingsSofian Hadiwijaya
 
05012013150050 computerised-paper-evaluation-using-neural-network
05012013150050 computerised-paper-evaluation-using-neural-network05012013150050 computerised-paper-evaluation-using-neural-network
05012013150050 computerised-paper-evaluation-using-neural-networknimmajji
 
Addressing modes (detailed data path)
Addressing modes (detailed data path)Addressing modes (detailed data path)
Addressing modes (detailed data path)Mahesh Kumar Attri
 
Control Units : Microprogrammed and Hardwired:control unit
Control Units : Microprogrammed and Hardwired:control unitControl Units : Microprogrammed and Hardwired:control unit
Control Units : Microprogrammed and Hardwired:control unitabdosaidgkv
 

Was ist angesagt? (20)

Smart home automation using microcontroller
Smart home automation using microcontrollerSmart home automation using microcontroller
Smart home automation using microcontroller
 
Serial Communication in 8051
Serial Communication in 8051Serial Communication in 8051
Serial Communication in 8051
 
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
 
MAXIMUM MODE OF 8086 MICROPROCESSOR-1.pptx
MAXIMUM MODE OF 8086 MICROPROCESSOR-1.pptxMAXIMUM MODE OF 8086 MICROPROCESSOR-1.pptx
MAXIMUM MODE OF 8086 MICROPROCESSOR-1.pptx
 
Agriculture Robot report
Agriculture Robot reportAgriculture Robot report
Agriculture Robot report
 
DMA Versus Polling or Interrupt Driven I/O
DMA Versus Polling or Interrupt Driven I/ODMA Versus Polling or Interrupt Driven I/O
DMA Versus Polling or Interrupt Driven I/O
 
BCS302- Digital Design and computer organization -VTU-2022 scheme-Expectation...
BCS302- Digital Design and computer organization -VTU-2022 scheme-Expectation...BCS302- Digital Design and computer organization -VTU-2022 scheme-Expectation...
BCS302- Digital Design and computer organization -VTU-2022 scheme-Expectation...
 
Microprocessor and Microcontroller Anna University Answer Key April / May - 2015
Microprocessor and Microcontroller Anna University Answer Key April / May - 2015Microprocessor and Microcontroller Anna University Answer Key April / May - 2015
Microprocessor and Microcontroller Anna University Answer Key April / May - 2015
 
Tracking system on IOT
Tracking system on IOTTracking system on IOT
Tracking system on IOT
 
register file structure of PIC controller
register file structure of PIC controllerregister file structure of PIC controller
register file structure of PIC controller
 
Multiplication algorithm, hardware and flowchart
Multiplication algorithm, hardware and flowchartMultiplication algorithm, hardware and flowchart
Multiplication algorithm, hardware and flowchart
 
Microcontroller in automobile and applications
Microcontroller in automobile and applicationsMicrocontroller in automobile and applications
Microcontroller in automobile and applications
 
Memory organization of 8051
Memory organization of 8051Memory organization of 8051
Memory organization of 8051
 
An IOT based Smart Traffic Management System
An IOT based Smart Traffic Management SystemAn IOT based Smart Traffic Management System
An IOT based Smart Traffic Management System
 
Protection 80386
Protection 80386Protection 80386
Protection 80386
 
PAI Unit 2 Protection in 80386 segmentation
PAI Unit 2 Protection in 80386 segmentationPAI Unit 2 Protection in 80386 segmentation
PAI Unit 2 Protection in 80386 segmentation
 
Machine Learning and Internet of Things
Machine Learning and Internet of ThingsMachine Learning and Internet of Things
Machine Learning and Internet of Things
 
05012013150050 computerised-paper-evaluation-using-neural-network
05012013150050 computerised-paper-evaluation-using-neural-network05012013150050 computerised-paper-evaluation-using-neural-network
05012013150050 computerised-paper-evaluation-using-neural-network
 
Addressing modes (detailed data path)
Addressing modes (detailed data path)Addressing modes (detailed data path)
Addressing modes (detailed data path)
 
Control Units : Microprogrammed and Hardwired:control unit
Control Units : Microprogrammed and Hardwired:control unitControl Units : Microprogrammed and Hardwired:control unit
Control Units : Microprogrammed and Hardwired:control unit
 

Andere mochten auch

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
 

Andere mochten auch (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
 

Ähnlich wie 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
 

Ähnlich wie 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
 

Kürzlich hochgeladen

A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESmohitsingh558521
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfPrecisely
 

Kürzlich hochgeladen (20)

A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
 

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