SlideShare a Scribd company logo
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

More Related Content

What's hot

Ai chatbot ppt.pptx
Ai chatbot ppt.pptxAi chatbot ppt.pptx
Ai chatbot ppt.pptx
aashnareddy1
 
Interrupts in 8051
Interrupts in 8051Interrupts in 8051
Interrupts in 8051
Sudhanshu Janwadkar
 
Pin diagram 8085
Pin diagram 8085 Pin diagram 8085
Pin diagram 8085
Siddhesh Palkar
 
Microcontroller presentation
Microcontroller presentationMicrocontroller presentation
Microcontroller presentation
xavierpaulino
 
8257 DMA Controller
8257 DMA Controller8257 DMA Controller
8257 DMA Controller
ShivamSood22
 
Assembly language programming_fundamentals 8086
Assembly language programming_fundamentals 8086Assembly language programming_fundamentals 8086
Assembly language programming_fundamentals 8086
Shehrevar Davierwala
 
Moore and mealy machine
Moore and mealy machineMoore and mealy machine
Moore and mealy machine
Mian Munib
 
8086 micro processor
8086 micro processor8086 micro processor
8086 micro processor
Poojith Chowdhary
 
Interrupts on 8086 microprocessor by vijay kumar.k
Interrupts on 8086 microprocessor by vijay kumar.kInterrupts on 8086 microprocessor by vijay kumar.k
Interrupts on 8086 microprocessor by vijay kumar.k
Vijay Kumar
 
8051-mazidi-solution
8051-mazidi-solution8051-mazidi-solution
8051-mazidi-solutionZunAib Ali
 
Difference b/w 8085 & 8086
Difference b/w 8085 & 8086Difference b/w 8085 & 8086
Difference b/w 8085 & 8086
j4jiet
 
Working principle of Turing machine
Working principle of Turing machineWorking principle of Turing machine
Working principle of Turing machine
Karan Thakkar
 
Instruction sets of 8086
Instruction sets of 8086Instruction sets of 8086
Instruction sets of 8086
Mahalakshmiv11
 
Interrupts of 8085
Interrupts of 8085Interrupts of 8085
Interrupts of 8085
ShivamSood22
 
Cache memory
Cache memoryCache memory
Cache memoryAnuj Modi
 
Multi Head, Multi Tape Turing Machine
Multi Head, Multi Tape Turing MachineMulti Head, Multi Tape Turing Machine
Multi Head, Multi Tape Turing Machine
Radhakrishnan Chinnusamy
 
Direct memory access (dma)
Direct memory access (dma)Direct memory access (dma)
Direct memory access (dma)
Zubair Khalid
 
4 bit Binary counter
4 bit Binary counter4 bit Binary counter
4 bit Binary counter
Jainee Solanki
 
Interfacing memory with 8086 microprocessor
Interfacing memory with 8086 microprocessorInterfacing memory with 8086 microprocessor
Interfacing memory with 8086 microprocessor
Vikas Gupta
 
Intel 8051 Programming in C
Intel 8051 Programming in CIntel 8051 Programming in C
Intel 8051 Programming in C
Sudhanshu Janwadkar
 

What's hot (20)

Ai chatbot ppt.pptx
Ai chatbot ppt.pptxAi chatbot ppt.pptx
Ai chatbot ppt.pptx
 
Interrupts in 8051
Interrupts in 8051Interrupts in 8051
Interrupts in 8051
 
Pin diagram 8085
Pin diagram 8085 Pin diagram 8085
Pin diagram 8085
 
Microcontroller presentation
Microcontroller presentationMicrocontroller presentation
Microcontroller presentation
 
8257 DMA Controller
8257 DMA Controller8257 DMA Controller
8257 DMA Controller
 
Assembly language programming_fundamentals 8086
Assembly language programming_fundamentals 8086Assembly language programming_fundamentals 8086
Assembly language programming_fundamentals 8086
 
Moore and mealy machine
Moore and mealy machineMoore and mealy machine
Moore and mealy machine
 
8086 micro processor
8086 micro processor8086 micro processor
8086 micro processor
 
Interrupts on 8086 microprocessor by vijay kumar.k
Interrupts on 8086 microprocessor by vijay kumar.kInterrupts on 8086 microprocessor by vijay kumar.k
Interrupts on 8086 microprocessor by vijay kumar.k
 
8051-mazidi-solution
8051-mazidi-solution8051-mazidi-solution
8051-mazidi-solution
 
Difference b/w 8085 & 8086
Difference b/w 8085 & 8086Difference b/w 8085 & 8086
Difference b/w 8085 & 8086
 
Working principle of Turing machine
Working principle of Turing machineWorking principle of Turing machine
Working principle of Turing machine
 
Instruction sets of 8086
Instruction sets of 8086Instruction sets of 8086
Instruction sets of 8086
 
Interrupts of 8085
Interrupts of 8085Interrupts of 8085
Interrupts of 8085
 
Cache memory
Cache memoryCache memory
Cache memory
 
Multi Head, Multi Tape Turing Machine
Multi Head, Multi Tape Turing MachineMulti Head, Multi Tape Turing Machine
Multi Head, Multi Tape Turing Machine
 
Direct memory access (dma)
Direct memory access (dma)Direct memory access (dma)
Direct memory access (dma)
 
4 bit Binary counter
4 bit Binary counter4 bit Binary counter
4 bit Binary counter
 
Interfacing memory with 8086 microprocessor
Interfacing memory with 8086 microprocessorInterfacing memory with 8086 microprocessor
Interfacing memory with 8086 microprocessor
 
Intel 8051 Programming in C
Intel 8051 Programming in CIntel 8051 Programming in C
Intel 8051 Programming in C
 

Viewers also liked

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 Family
Premier Farnell
 
RTOS based Confidential Area Security System
RTOS based Confidential Area Security SystemRTOS based Confidential Area Security System
RTOS based Confidential Area Security System
ajinky gadewar
 
Antenna & its types
Antenna & its typesAntenna & its types
Antenna & its types
Jayachandran T
 
Sms based patient monitering
Sms based patient moniteringSms based patient monitering
Sms based patient monitering
Padmaja Dash
 
RTC Interfacing and Programming
RTC Interfacing and ProgrammingRTC Interfacing and Programming
RTC Interfacing and Programming
Devashish Raval
 
8051 MICROCONTROLLER
8051 MICROCONTROLLER 8051 MICROCONTROLLER
8051 MICROCONTROLLER
THANDAIAH PRABU
 
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 system
Namit Sood
 
Networking of multiple microcontrollers
Networking of multiple microcontrollersNetworking of multiple microcontrollers
Networking of multiple microcontrollers
Edgefxkits & 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-MODULE
Eng.Manfred Kibona
 
Basics of embedded systems
Basics of embedded systemsBasics of embedded systems
Basics of embedded systems
Pantech ProLabs India Pvt Ltd
 
Fire fighting robot using 8051 microcontroller
Fire fighting robot using 8051 microcontrollerFire fighting robot using 8051 microcontroller
Fire fighting robot using 8051 microcontroller
vibs1893
 
List of microcontroller 8051 projects
List of microcontroller 8051 projectsList of microcontroller 8051 projects
List of microcontroller 8051 projects
Sushil Mishra
 
8051 Assembly Language Programming
8051 Assembly Language Programming8051 Assembly Language Programming
8051 Assembly Language Programming
Ravikumar Tiwari
 
The 8051 microcontroler based embedded systems
The 8051 microcontroler based embedded systemsThe 8051 microcontroler based embedded systems
The 8051 microcontroler based embedded systems
manishpatel_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
 

Viewers also liked (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 to 8051 microcontrollers

1 8051 microcontroller intr
1 8051 microcontroller intr1 8051 microcontroller intr
1 8051 microcontroller intr
Channabasappa Kudarihal
 
Introduction to microcontroller
Introduction to microcontrollerIntroduction to microcontroller
Introduction to microcontroller
Rajib Roy
 
Unit-1.pptx
Unit-1.pptxUnit-1.pptx
Unit-1.pptx
sidhantkulkarni1
 
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.pdf
irfanakram32
 
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
AbhishekSharma2517
 
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
manishpatel_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 Ver1
ncct
 
Embedded System Basics
Embedded System BasicsEmbedded System Basics
Embedded System Basics
Dr M Muruganandam Masilamani
 
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
aienterpresses
 
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
aienterpresses
 
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
Kuvempu University
 
Embedded system
Embedded systemEmbedded system
Embedded system
Pankaj Upadhyay
 
Embedded Systems & Robotics
Embedded Systems  & RoboticsEmbedded Systems  & Robotics
Embedded Systems & Robotics
spoorani
 

Similar to 8051 microcontrollers (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
 

Recently uploaded

FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
Jemma Hussein Allen
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Thierry Lestable
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
Product School
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
Product School
 
Generating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using SmithyGenerating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using Smithy
g2nightmarescribd
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
KatiaHIMEUR1
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
Ana-Maria Mihalceanu
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
Cheryl Hung
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
DianaGray10
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
DianaGray10
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
Product School
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
Prayukth K V
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
UiPathCommunity
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
ControlCase
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
DanBrown980551
 

Recently uploaded (20)

FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
 
Generating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using SmithyGenerating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using Smithy
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
 

8051 microcontrollers

  • 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