SlideShare uma empresa Scribd logo
1 de 51
techbymak
MICROPROCESSOR AND
INTERFACING
BY: Akshay Makadiya
   (( TechByMak ))
SYLLABUS OF MICROPROCESSOR
 Introduction to microprocessor
 Architecture and block diagram of




                                                  techbymak
  microprocessor
 8085 microprocesso

 8237 DMA Controller

 8255 Programmable peripheral interface device

 8254 programmable interval timer

 8259 programmable inttrupt controller

 8086 microprocessor
WHAT IS MICROPROCESSOR?
A silicon chip that contains a CPU. In the world of
  personal computers, the terms microprocessor
  and CPU are used interchangeably. At the heart




                                                          techbymak
  of all personal computers and most workstations
  sits a microprocessor. Microprocessors also
  control the logic of almost all digital devices, from
  clock radios to fuel-injection systems for
  automobiles
MICROPROCESSOR DEF.. CON..
 Microprocessor is a programmable device
 It can be instructed to perform given tasks with
  in its capability.




                                                     techbymak
 The programmer selects instruction from the list
  and determines the sequence of execution for a
  given task.
 It takes input from the input device and process
  the input as it behaves like a CPU and gives the
  output.
MICROPROCESSOR DEF.. CON..
 Microprocessor is a clock driven semiconductor
  device consisting of electronic logic circuits
  manufactured by using a LSI or VLSI technique.




                                                   techbymak
 Microprocessor can be divided into three
  segments
 1)ALU
 2)Register array
 3)Control unit
BLOCK DIAGRAM OF
MICROPROCESSOR




                                       techbymak
             Microprocessor
     INPUT         As         OUTPUT
                  CPU




               MEMORY
CHARACTERSTICS WHICH
DIFFERENTIATE
MICROPROCESSORS
 Instruction set: The set of instructions that the
  microprocessor can execute.




                                                      techbymak
 bandwidth : The number of bits processed in a
  single instruction.
 clock speed : Given in megahertz (MHz), the
  clock speed determines how many instructions
  per second the processor can execute.
STRUCTURE OF MICROPROCESSOR
   Chip containing no. of elements for the
    processing purposes.




                                              techbymak
HISTORY OF MICROPROCESSOR
   Intel's 4004 is considered the first microprocesor .




                                                           techbymak
   The 4004 was later followed in 1972 by the 8008,
    the world's first 8-bit microprocessor.
HISTORY OF MICROPROCESSOR……
   then is the 8080 microprocessor evolved in 1974.




                                                       techbymak
   Then comes 8085 that is the 8 bit microprocessor
CONTINUED…
 Often the processor is required to manage
  various different tasks that have to be scheduled
  somehow and must also deal with outside




                                                                   techbymak
  interrupt sources such as an alarm when
  something goes wrong.
 Real-time systems are those in which timeliness
  is as important as the correctness of the outputs,
  although this does NOT mean that they have to
  be ?fast systems?.
       A real-time system does not have to process data in
        microseconds to be considered real-time - it must simply
        have response times that are constrained and thus
        predictable.
REAL LIFE APPLICATIONS OF
MICROPROCESSOR
   Microprocessors are used to handle a set of tasks that
    control one or more external events or systems.
    Microprocessors are typically used in either reactive or




                                                                     techbymak
    embedded systems.
     Reactive systems are those that have an ongoing interaction
      with their environment - for example, a fire-control system
      that constantly reacts to buttons pressed by a pilot.
     Embedded systems are those used to control specialized
      hardware in which the computer system is installed - for
      example, the microprocessor system used to control the
      fuel/air mixture in the carburetor of many automobiles.
            In embedded systems the software system is completely
            encapsulated by the hardware that it controls.
SOME QUESTIONS
 What is SSI,MSI and LSI?
 What is difference between microprocessor,




                                               techbymak
  microcontroller and microcomputer?
 What is a bit, byte, nibble and a word?

 What is difference between compiler and
  interpreter?
 What is instruction and mnemonic?
8085 PROGRAMMING MODEL

 Program counter
 Stack pointer




                              techbymak
 General purpose registers

 Accumulator

 Flag registers

 Data and address buses
8085 INSTRUCTION SET
 Data transfer operations
 Arithmetic operations




                               techbymak
 Logical operations

 Branch operations

 Machine control operations
DATA TRANSFER OPERATIONS
 MOV Rd,Rs
 MVI R,8 bit
 HLT




                                                      techbymak
 IN    8 bit port address accept the data from the
  input port specified in the second byte and loads
  into the accumulator.
 NOP
 OUT 8 bit port address copies the contents of
  the accumulator to the output port specified in
  the second byte,2 byte instruction
DATA TRANSFER OPERATIONS
 This group of instructions copies data from a
  location called a source to another a location
  called destination without modifying the contents




                                                      techbymak
  of the source.
 Data transfer can be between 1)registers
 Specified data byte to a register or memory
  location
 Between a memory location and a register
ADDRESSING MODE
 Immediate addressing mvi
 Register addressing mov




                                   techbymak
 Direct addressing in/out ports

 Indirect addressing
LOGICAL OPERATIONS
 ANA R
 ANI 8 bit




                     techbymak
 ORA R

 ORI  8 bit
 XRA R

 XRI 8 bit

 CMA
ARTHIMETIC OPERATIONS
 ADD R
 ADI 8 bit




                        techbymak
 SUB R

 SUI  8 bit
 INR R

 DCR R
BRANCH OPERATIONS
 JMP 16 bit 2nd(low) and 3rd(high) byte specifies 16 bit
 Memory address




                                                            techbymak
 JC

 JNC

 JZ

 JNZ

 JP

 JM
MICROPROCESSOR ARCHITECTURE

   The process of data manipulation and




                                                      techbymak
    communication is determined by the logic design
    of the microprocessor called the arcitecture.
MICROPROCESSOR
ARCHITECTURE

 Microprocessor initiated operations
 Internal operations




                                                       techbymak
 Externally initiated operations

To perform these functions microprocessor requires
 a group of logic circuits and set of signals called
 control signals.
MICROPROCESSOR INITIATED
OPERATIONS
 Memory read
 Memory write




                           techbymak
 I/O read

 I/O write
INTERNAL OPERATIONS
 Store 8-bit data
 Perform arthimetic and logical operations




                                              techbymak
 Test for conditions

 Sequence the excuetion of operations

 Store data temporarily during excuetion
8085 PIN DIAGRAM

Is 8 bit microprocessor, capable of addressing 64k
  of memory




                                                     techbymak
Has 40 pins ,operate with 3mhz single phase clock

Require +5v of single power supply
8085 PIN DIAGRAM




                   techbymak
8085 PIN DIAGRAM

Is 8 bit microprocessor, capable of addressing 64k
  of memory




                                                     techbymak
Has 40 pins ,operate with 3mhz single phase clock

Require +5v of single power supply
PIN DIAGRAM CONTI….
 All the signals are classified into 6 groups
 Address bus




                                                 techbymak
 Data bus

 Control and status signals

 Power supply and frequency signals

 Externally initiated signals

 Serial input output ports
BLOCK DIAGRAM OF 8085
MICROPROCESSOR
 It includes
 Arithmetic and logic unit




                                     techbymak
 Timing and control unit

 Instruction register and decoder

 Register array

 Interrupt control

 Serial input output control
8085 INTERRUPT

 What is interrupt?
 Vectored interrupt




                                              techbymak
 Non vectored interrupt

 Enable and disable interrupt instructions

 Pending interrupts
8085 INTERRUPT

   Interrupt is a process where an external device can get the
    attention of the microprocessor.
     The process starts from the I/O device




                                                                                    techbymak
     The process is asynchronous.

   Classification of Interrupts
       Interrupts can be classified into two types:
           Maskable Interrupts (Can be delayed or Rejected)
           Non-Maskable Interrupts (Can not be delayed or Rejected)

   Interrupts can also be classified into:
           Vectored (the address of the service routine is hard-wired)
           Non-vectored (the address of the service routine needs to be supplied
            externally by the device)
INTERRUPTS
   An interrupt is considered to be an emergency
    signal that may be serviced.




                                                                 techbymak
       The Microprocessor may respond to it as soon as
        possible.

   What happens when MP is interrupted ?
     When the Microprocessor receives an interrupt signal, it
      suspends the currently executing program and jumps to
      an Interrupt Service Routine (ISR) to respond to the
      incoming interrupt.
     Each interrupt will most probably have its own ISR.
INTERRUPTS
 When a device interrupts, it actually wants the
  MP to give a service which is equivalent to
  asking the MP to call a subroutine. This




                                                                  techbymak
  subroutine is called ISR (Interrupt Service
  Routine)
 The ‘EI’ instruction is a one byte instruction and
  is used to Enable the non-maskable interrupts.
 The ‘DI’ instruction is a one byte instruction and
  is used to Disable the non-maskable interrupts.
 The 8085 has a single Non-Maskable interrupt.
       The non-maskable interrupt is not affected by the value
        of the Interrupt Enable flip flop.
8085 INTRRUPTS
 TRAP
 RST7.5




                 techbymak
 RST6.5

 RST 5.5

 INTR

 INTA
INTERRUPT VECTORS AND THE
VECTOR TABLE
 An interrupt vector is a pointer to where the ISR
  is stored in memory.




                                                            techbymak
 All interrupts (vectored or otherwise) are mapped
  onto a memory area called the Interrupt Vector
  Table (IVT).
     The  IVT is usually located in memory page 00
      (0000H - 00FFH).
     The purpose of the IVT is to hold the vectors that
      redirect the microprocessor to the right place when
      an interrupt arrives.
 GENERAL
           PURPOSE
PROGRAMMABLE PERIPHERAL




                          techbymak
       DEVICES
 8255A Programmable peripheral interface
 8254 programmable interval timer




                                            techbymak
 8259 Programmable interval timer

 8237 DMA Controller
8255 PROGRAMMABLE
PERIPHERAL INTERFACE
 It can be programmed to transfer data under
  various conditions.




                                                techbymak
 It has 24 I/O pins.

 The function of 8255A classified acc to two
  modes.
 A) BSR mode

 I/O mode
8255 PROGRAMMABLE
PERIPHERAL INTERFACE
 Block diagram of 8255A
 Control word




                           techbymak
 BSR mode

 Mode 0

 Mode 1

 Mode 2
Control Word
                   

 D7 D6 D5 D4 D3 D2 D1 D0




                                                             techbymak
   0/1
BSR Mode                     I/O Mode
For port C          Mode0 Mode 1 Mode2
No effect on mode  Simple I/O   Handshake I/O
                       for ports      for ports A and or B
                       A,B,C

                                  Port C bits
8254 PROGRAMMABLE INTERVAL
TIMER




                             techbymak
8237 DMA CONTROLLER
 DMA is an input output technique used for high
  speed data transfer




                                                   techbymak
 Data transfer between system memory and
  floppy disk
 It introduces two new signals that are

 HOLD

 HLDA
DMA CONTROLLER CONT….
 DMA Controller consists of
 DMA channels and interfacing




                                 techbymak
 DMA Signals

 System interface

 Programming the 8237

 DMA Execution consists of

 Master and slave mode
8086 MICROPROCESSOR
 It is 16 bit microprocessor.
 Contains 29000 transistors and is fabricated




                                                 techbymak
  using HMOS technology.
 Has addressing capacity of I megabyte.

 Has 20 address pins.

 +5v supply voltage
8086 ARCITECTURE
 Internal registers
 Control logic




                       techbymak
 Instruction queue

 ALU

 PSW

 Pointers

 Segment registers
8086 PIN DIAGRAM




                   techbymak
8086 EFFECTIVE ADDRESS
COMPUTATIONS
   To provide flexible base addressing and indexing
    a data address may be formed by addressing
    together a combination of the BX or BP register




                                                       techbymak
    contents SI or DI contents and a
    displacement.The result of such and address
    computation is called effective address.
8086 MEMORY SEGMENTATION
   Address within segments




                              techbymak
   Overlapping segments
PROGRAM RELOCATION USING
CS REGISTER
   If a programmer wants to relocate the program
    by any means ,he can relocate the program using
    cs register.




                                                      techbymak
THANK YOU

    Check Out




                 techbymak
       More
        at
    Techbymak

Mais conteúdo relacionado

Mais procurados (19)

Microprocessor 8086
Microprocessor 8086Microprocessor 8086
Microprocessor 8086
 
20838382 microprocessor-8085-notes
20838382 microprocessor-8085-notes20838382 microprocessor-8085-notes
20838382 microprocessor-8085-notes
 
Introduction to 8085svv
Introduction to 8085svvIntroduction to 8085svv
Introduction to 8085svv
 
8085-microprocessor
8085-microprocessor8085-microprocessor
8085-microprocessor
 
microcontroller-8051-ppt(1)
microcontroller-8051-ppt(1)microcontroller-8051-ppt(1)
microcontroller-8051-ppt(1)
 
8085 full discription
8085 full discription8085 full discription
8085 full discription
 
Intel 8085 Micro Processor
Intel 8085 Micro ProcessorIntel 8085 Micro Processor
Intel 8085 Micro Processor
 
8085 microprocessor
8085 microprocessor8085 microprocessor
8085 microprocessor
 
Micro 8051
Micro 8051Micro 8051
Micro 8051
 
MICROPROCESSOR & MICROCONTROLLER 8086,8051 Notes
MICROPROCESSOR & MICROCONTROLLER 8086,8051 NotesMICROPROCESSOR & MICROCONTROLLER 8086,8051 Notes
MICROPROCESSOR & MICROCONTROLLER 8086,8051 Notes
 
EE8551 MPMC
EE8551  MPMCEE8551  MPMC
EE8551 MPMC
 
Microprocessor & Interfacing (Part-2) By Er. Swapnil V. Kaware
Microprocessor & Interfacing (Part-2) By Er. Swapnil V. KawareMicroprocessor & Interfacing (Part-2) By Er. Swapnil V. Kaware
Microprocessor & Interfacing (Part-2) By Er. Swapnil V. Kaware
 
Introduction to microprocessor
Introduction to microprocessorIntroduction to microprocessor
Introduction to microprocessor
 
Microprocessor Basics 8085 Ch-1
Microprocessor Basics 8085 Ch-1Microprocessor Basics 8085 Ch-1
Microprocessor Basics 8085 Ch-1
 
8085 microprocessor
8085 microprocessor8085 microprocessor
8085 microprocessor
 
Microprocessor & Microcontoller short questions with answers
Microprocessor & Microcontoller short questions with answersMicroprocessor & Microcontoller short questions with answers
Microprocessor & Microcontoller short questions with answers
 
Pin diagram of 8085
Pin diagram of 8085Pin diagram of 8085
Pin diagram of 8085
 
Important questions
Important questionsImportant questions
Important questions
 
Unit 1
Unit 1Unit 1
Unit 1
 

Destaque

Microprocessor and Interfacing Notes
Microprocessor and Interfacing NotesMicroprocessor and Interfacing Notes
Microprocessor and Interfacing NotesAkshansh Chaudhary
 
Microprocessor & Interfacing (Part-1) By Er. Swapnil V. Kaware
Microprocessor & Interfacing (Part-1) By Er. Swapnil V. KawareMicroprocessor & Interfacing (Part-1) By Er. Swapnil V. Kaware
Microprocessor & Interfacing (Part-1) By Er. Swapnil V. KawareProf. Swapnil V. Kaware
 
Introduction to-microprocessors
Introduction to-microprocessorsIntroduction to-microprocessors
Introduction to-microprocessorsVolodymyr Ushenko
 
Microprocessor & Assembly language by team blackhole
Microprocessor & Assembly language by team blackholeMicroprocessor & Assembly language by team blackhole
Microprocessor & Assembly language by team blackholeMd Abdus Sobur Sikdar
 
Microprocessor chapter 9 - assembly language programming
Microprocessor  chapter 9 - assembly language programmingMicroprocessor  chapter 9 - assembly language programming
Microprocessor chapter 9 - assembly language programmingWondeson Emeye
 

Destaque (8)

Lecture 1
Lecture 1Lecture 1
Lecture 1
 
Microprocessor and Interfacing Notes
Microprocessor and Interfacing NotesMicroprocessor and Interfacing Notes
Microprocessor and Interfacing Notes
 
Chapter5
Chapter5Chapter5
Chapter5
 
Microprocessor & Interfacing (Part-1) By Er. Swapnil V. Kaware
Microprocessor & Interfacing (Part-1) By Er. Swapnil V. KawareMicroprocessor & Interfacing (Part-1) By Er. Swapnil V. Kaware
Microprocessor & Interfacing (Part-1) By Er. Swapnil V. Kaware
 
Introduction to-microprocessors
Introduction to-microprocessorsIntroduction to-microprocessors
Introduction to-microprocessors
 
Microprocessor & Assembly language by team blackhole
Microprocessor & Assembly language by team blackholeMicroprocessor & Assembly language by team blackhole
Microprocessor & Assembly language by team blackhole
 
Mpmc lab
Mpmc labMpmc lab
Mpmc lab
 
Microprocessor chapter 9 - assembly language programming
Microprocessor  chapter 9 - assembly language programmingMicroprocessor  chapter 9 - assembly language programming
Microprocessor chapter 9 - assembly language programming
 

Semelhante a Microprocessor and-interfacing-techbymak

8051 microcontroller
8051 microcontroller8051 microcontroller
8051 microcontrollersnehapvs
 
Introduction to Microcontroller
Introduction to MicrocontrollerIntroduction to Microcontroller
Introduction to MicrocontrollerNikhil Sharma
 
MergeResult_2023_04_02_05_26_56.pptx
MergeResult_2023_04_02_05_26_56.pptxMergeResult_2023_04_02_05_26_56.pptx
MergeResult_2023_04_02_05_26_56.pptxbhaveshagrawal35
 
MICROPROCESSOR_Notes.pptx
MICROPROCESSOR_Notes.pptxMICROPROCESSOR_Notes.pptx
MICROPROCESSOR_Notes.pptxWorkingad
 
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptx
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptxINDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptx
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptxMeghdeepSingh
 
Ec 1303 microprocessor_its_applications
Ec 1303 microprocessor_its_applicationsEc 1303 microprocessor_its_applications
Ec 1303 microprocessor_its_applicationsMerin Jesuraj
 
Microcontroller presentation
Microcontroller presentationMicrocontroller presentation
Microcontroller presentationxavierpaulino
 
Introduction_to_Mechatronics_Chapter67.pdf
Introduction_to_Mechatronics_Chapter67.pdfIntroduction_to_Mechatronics_Chapter67.pdf
Introduction_to_Mechatronics_Chapter67.pdfBereket Walle
 
microprocessor unit1 2022.pptx
microprocessor unit1 2022.pptxmicroprocessor unit1 2022.pptx
microprocessor unit1 2022.pptx22X041SARAVANANS
 
8085 notes g scheme 2016 (2)
8085 notes g scheme 2016 (2)8085 notes g scheme 2016 (2)
8085 notes g scheme 2016 (2)HarshitParkar6677
 
Difference Between Microprocessors and Microcontrollers
Difference Between Microprocessors and MicrocontrollersDifference Between Microprocessors and Microcontrollers
Difference Between Microprocessors and Microcontrollerselprocus
 
Summer training embedded system and its scope
Summer training  embedded system and its scopeSummer training  embedded system and its scope
Summer training embedded system and its scopeArshit Rai
 

Semelhante a Microprocessor and-interfacing-techbymak (20)

8051 microcontroller
8051 microcontroller8051 microcontroller
8051 microcontroller
 
Introduction to Microcontroller
Introduction to MicrocontrollerIntroduction to Microcontroller
Introduction to Microcontroller
 
Embedded System Basics
Embedded System BasicsEmbedded System Basics
Embedded System Basics
 
MergeResult_2023_04_02_05_26_56.pptx
MergeResult_2023_04_02_05_26_56.pptxMergeResult_2023_04_02_05_26_56.pptx
MergeResult_2023_04_02_05_26_56.pptx
 
MICROPROCESSOR_Notes.pptx
MICROPROCESSOR_Notes.pptxMICROPROCESSOR_Notes.pptx
MICROPROCESSOR_Notes.pptx
 
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptx
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptxINDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptx
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptx
 
Ec 1303 microprocessor_its_applications
Ec 1303 microprocessor_its_applicationsEc 1303 microprocessor_its_applications
Ec 1303 microprocessor_its_applications
 
Microcontroller presentation
Microcontroller presentationMicrocontroller presentation
Microcontroller presentation
 
Coa INTERUPT
Coa INTERUPTCoa INTERUPT
Coa INTERUPT
 
Micro processor
Micro processorMicro processor
Micro processor
 
8085 notes g scheme 2016
8085 notes g scheme 20168085 notes g scheme 2016
8085 notes g scheme 2016
 
Introduction_to_Mechatronics_Chapter67.pdf
Introduction_to_Mechatronics_Chapter67.pdfIntroduction_to_Mechatronics_Chapter67.pdf
Introduction_to_Mechatronics_Chapter67.pdf
 
microprocessor unit1 2022.pptx
microprocessor unit1 2022.pptxmicroprocessor unit1 2022.pptx
microprocessor unit1 2022.pptx
 
8085 notes g scheme 2016
8085 notes g scheme 20168085 notes g scheme 2016
8085 notes g scheme 2016
 
8085 notes g scheme 2016 (2)
8085 notes g scheme 2016 (2)8085 notes g scheme 2016 (2)
8085 notes g scheme 2016 (2)
 
Difference Between Microprocessors and Microcontrollers
Difference Between Microprocessors and MicrocontrollersDifference Between Microprocessors and Microcontrollers
Difference Between Microprocessors and Microcontrollers
 
Important questions
Important questionsImportant questions
Important questions
 
Summer training embedded system and its scope
Summer training  embedded system and its scopeSummer training  embedded system and its scope
Summer training embedded system and its scope
 
3.TechieNest microcontrollers
3.TechieNest  microcontrollers3.TechieNest  microcontrollers
3.TechieNest microcontrollers
 
Lecture 9
Lecture 9Lecture 9
Lecture 9
 

Microprocessor and-interfacing-techbymak

  • 2. SYLLABUS OF MICROPROCESSOR  Introduction to microprocessor  Architecture and block diagram of techbymak microprocessor  8085 microprocesso  8237 DMA Controller  8255 Programmable peripheral interface device  8254 programmable interval timer  8259 programmable inttrupt controller  8086 microprocessor
  • 3. WHAT IS MICROPROCESSOR? A silicon chip that contains a CPU. In the world of personal computers, the terms microprocessor and CPU are used interchangeably. At the heart techbymak of all personal computers and most workstations sits a microprocessor. Microprocessors also control the logic of almost all digital devices, from clock radios to fuel-injection systems for automobiles
  • 4. MICROPROCESSOR DEF.. CON..  Microprocessor is a programmable device  It can be instructed to perform given tasks with in its capability. techbymak  The programmer selects instruction from the list and determines the sequence of execution for a given task.  It takes input from the input device and process the input as it behaves like a CPU and gives the output.
  • 5. MICROPROCESSOR DEF.. CON..  Microprocessor is a clock driven semiconductor device consisting of electronic logic circuits manufactured by using a LSI or VLSI technique. techbymak  Microprocessor can be divided into three segments  1)ALU  2)Register array  3)Control unit
  • 6. BLOCK DIAGRAM OF MICROPROCESSOR techbymak Microprocessor INPUT As OUTPUT CPU MEMORY
  • 7. CHARACTERSTICS WHICH DIFFERENTIATE MICROPROCESSORS  Instruction set: The set of instructions that the microprocessor can execute. techbymak  bandwidth : The number of bits processed in a single instruction.  clock speed : Given in megahertz (MHz), the clock speed determines how many instructions per second the processor can execute.
  • 8. STRUCTURE OF MICROPROCESSOR  Chip containing no. of elements for the processing purposes. techbymak
  • 9. HISTORY OF MICROPROCESSOR  Intel's 4004 is considered the first microprocesor . techbymak  The 4004 was later followed in 1972 by the 8008, the world's first 8-bit microprocessor.
  • 10. HISTORY OF MICROPROCESSOR……  then is the 8080 microprocessor evolved in 1974. techbymak  Then comes 8085 that is the 8 bit microprocessor
  • 11. CONTINUED…  Often the processor is required to manage various different tasks that have to be scheduled somehow and must also deal with outside techbymak interrupt sources such as an alarm when something goes wrong.  Real-time systems are those in which timeliness is as important as the correctness of the outputs, although this does NOT mean that they have to be ?fast systems?.  A real-time system does not have to process data in microseconds to be considered real-time - it must simply have response times that are constrained and thus predictable.
  • 12. REAL LIFE APPLICATIONS OF MICROPROCESSOR  Microprocessors are used to handle a set of tasks that control one or more external events or systems.  Microprocessors are typically used in either reactive or techbymak embedded systems.  Reactive systems are those that have an ongoing interaction with their environment - for example, a fire-control system that constantly reacts to buttons pressed by a pilot.  Embedded systems are those used to control specialized hardware in which the computer system is installed - for example, the microprocessor system used to control the fuel/air mixture in the carburetor of many automobiles.   In embedded systems the software system is completely encapsulated by the hardware that it controls.
  • 13. SOME QUESTIONS  What is SSI,MSI and LSI?  What is difference between microprocessor, techbymak microcontroller and microcomputer?  What is a bit, byte, nibble and a word?  What is difference between compiler and interpreter?  What is instruction and mnemonic?
  • 14. 8085 PROGRAMMING MODEL  Program counter  Stack pointer techbymak  General purpose registers  Accumulator  Flag registers  Data and address buses
  • 15. 8085 INSTRUCTION SET  Data transfer operations  Arithmetic operations techbymak  Logical operations  Branch operations  Machine control operations
  • 16. DATA TRANSFER OPERATIONS  MOV Rd,Rs  MVI R,8 bit  HLT techbymak  IN 8 bit port address accept the data from the input port specified in the second byte and loads into the accumulator.  NOP  OUT 8 bit port address copies the contents of the accumulator to the output port specified in the second byte,2 byte instruction
  • 17. DATA TRANSFER OPERATIONS  This group of instructions copies data from a location called a source to another a location called destination without modifying the contents techbymak of the source.  Data transfer can be between 1)registers  Specified data byte to a register or memory location  Between a memory location and a register
  • 18. ADDRESSING MODE  Immediate addressing mvi  Register addressing mov techbymak  Direct addressing in/out ports  Indirect addressing
  • 19. LOGICAL OPERATIONS  ANA R  ANI 8 bit techbymak  ORA R  ORI 8 bit  XRA R  XRI 8 bit  CMA
  • 20. ARTHIMETIC OPERATIONS  ADD R  ADI 8 bit techbymak  SUB R  SUI 8 bit  INR R  DCR R
  • 21. BRANCH OPERATIONS  JMP 16 bit 2nd(low) and 3rd(high) byte specifies 16 bit  Memory address techbymak  JC  JNC  JZ  JNZ  JP  JM
  • 22. MICROPROCESSOR ARCHITECTURE  The process of data manipulation and techbymak communication is determined by the logic design of the microprocessor called the arcitecture.
  • 23. MICROPROCESSOR ARCHITECTURE  Microprocessor initiated operations  Internal operations techbymak Externally initiated operations To perform these functions microprocessor requires a group of logic circuits and set of signals called control signals.
  • 24. MICROPROCESSOR INITIATED OPERATIONS  Memory read  Memory write techbymak  I/O read  I/O write
  • 25. INTERNAL OPERATIONS  Store 8-bit data  Perform arthimetic and logical operations techbymak  Test for conditions  Sequence the excuetion of operations  Store data temporarily during excuetion
  • 26. 8085 PIN DIAGRAM Is 8 bit microprocessor, capable of addressing 64k of memory techbymak Has 40 pins ,operate with 3mhz single phase clock Require +5v of single power supply
  • 27. 8085 PIN DIAGRAM techbymak
  • 28. 8085 PIN DIAGRAM Is 8 bit microprocessor, capable of addressing 64k of memory techbymak Has 40 pins ,operate with 3mhz single phase clock Require +5v of single power supply
  • 29. PIN DIAGRAM CONTI….  All the signals are classified into 6 groups  Address bus techbymak  Data bus  Control and status signals  Power supply and frequency signals  Externally initiated signals  Serial input output ports
  • 30. BLOCK DIAGRAM OF 8085 MICROPROCESSOR  It includes  Arithmetic and logic unit techbymak  Timing and control unit  Instruction register and decoder  Register array  Interrupt control  Serial input output control
  • 31. 8085 INTERRUPT  What is interrupt?  Vectored interrupt techbymak  Non vectored interrupt  Enable and disable interrupt instructions  Pending interrupts
  • 32. 8085 INTERRUPT  Interrupt is a process where an external device can get the attention of the microprocessor.  The process starts from the I/O device techbymak  The process is asynchronous.  Classification of Interrupts  Interrupts can be classified into two types:  Maskable Interrupts (Can be delayed or Rejected)  Non-Maskable Interrupts (Can not be delayed or Rejected)  Interrupts can also be classified into:  Vectored (the address of the service routine is hard-wired)  Non-vectored (the address of the service routine needs to be supplied externally by the device)
  • 33. INTERRUPTS  An interrupt is considered to be an emergency signal that may be serviced. techbymak  The Microprocessor may respond to it as soon as possible.  What happens when MP is interrupted ?  When the Microprocessor receives an interrupt signal, it suspends the currently executing program and jumps to an Interrupt Service Routine (ISR) to respond to the incoming interrupt.  Each interrupt will most probably have its own ISR.
  • 34. INTERRUPTS  When a device interrupts, it actually wants the MP to give a service which is equivalent to asking the MP to call a subroutine. This techbymak subroutine is called ISR (Interrupt Service Routine)  The ‘EI’ instruction is a one byte instruction and is used to Enable the non-maskable interrupts.  The ‘DI’ instruction is a one byte instruction and is used to Disable the non-maskable interrupts.  The 8085 has a single Non-Maskable interrupt.  The non-maskable interrupt is not affected by the value of the Interrupt Enable flip flop.
  • 35. 8085 INTRRUPTS  TRAP  RST7.5 techbymak  RST6.5  RST 5.5  INTR  INTA
  • 36. INTERRUPT VECTORS AND THE VECTOR TABLE  An interrupt vector is a pointer to where the ISR is stored in memory. techbymak  All interrupts (vectored or otherwise) are mapped onto a memory area called the Interrupt Vector Table (IVT).  The IVT is usually located in memory page 00 (0000H - 00FFH).  The purpose of the IVT is to hold the vectors that redirect the microprocessor to the right place when an interrupt arrives.
  • 37.  GENERAL PURPOSE PROGRAMMABLE PERIPHERAL techbymak DEVICES
  • 38.  8255A Programmable peripheral interface  8254 programmable interval timer techbymak  8259 Programmable interval timer  8237 DMA Controller
  • 39. 8255 PROGRAMMABLE PERIPHERAL INTERFACE  It can be programmed to transfer data under various conditions. techbymak  It has 24 I/O pins.  The function of 8255A classified acc to two modes.  A) BSR mode  I/O mode
  • 40. 8255 PROGRAMMABLE PERIPHERAL INTERFACE  Block diagram of 8255A  Control word techbymak  BSR mode  Mode 0  Mode 1  Mode 2
  • 41. Control Word   D7 D6 D5 D4 D3 D2 D1 D0 techbymak 0/1 BSR Mode I/O Mode For port C Mode0 Mode 1 Mode2 No effect on mode Simple I/O Handshake I/O for ports for ports A and or B A,B,C  Port C bits
  • 43. 8237 DMA CONTROLLER  DMA is an input output technique used for high speed data transfer techbymak  Data transfer between system memory and floppy disk  It introduces two new signals that are  HOLD  HLDA
  • 44. DMA CONTROLLER CONT….  DMA Controller consists of  DMA channels and interfacing techbymak  DMA Signals  System interface  Programming the 8237  DMA Execution consists of  Master and slave mode
  • 45. 8086 MICROPROCESSOR  It is 16 bit microprocessor.  Contains 29000 transistors and is fabricated techbymak using HMOS technology.  Has addressing capacity of I megabyte.  Has 20 address pins.  +5v supply voltage
  • 46. 8086 ARCITECTURE  Internal registers  Control logic techbymak  Instruction queue  ALU  PSW  Pointers  Segment registers
  • 47. 8086 PIN DIAGRAM techbymak
  • 48. 8086 EFFECTIVE ADDRESS COMPUTATIONS  To provide flexible base addressing and indexing a data address may be formed by addressing together a combination of the BX or BP register techbymak contents SI or DI contents and a displacement.The result of such and address computation is called effective address.
  • 49. 8086 MEMORY SEGMENTATION  Address within segments techbymak  Overlapping segments
  • 50. PROGRAM RELOCATION USING CS REGISTER  If a programmer wants to relocate the program by any means ,he can relocate the program using cs register. techbymak
  • 51. THANK YOU Check Out techbymak More at Techbymak