SlideShare ist ein Scribd-Unternehmen logo
1 von 20
Downloaden Sie, um offline zu lesen
CS421 Computer Peripheral and 
         Interfacing

     Overview of 8085 MP
8085 Microprocessor
                8085 Microprocessor
•   It is enclosed with 40 pins DIP ( Dual in line package )

•   Salient features:
     – 8 bit microprocessor.
     – Six 8-bit general purpose register arranged in pairs:
           8 bit
         • BC, DE, HL.                                         Accumulator          Flags
         • A 16 bit program counter (PC)                           B                  C
         • A 16 bit stack pointer (SP)                             D                  E
     – It requires a signal +5V power supply
              i       i   l 5V            l                        H                  L
                                                                     Program Counter
     – operates at 6.144 MHZ
                                                                      Stack Pointer
     – 16 bit address bus
         • can address upto216 = 65536 bytes (64KB) memory locations through
           A0-A15.
     – Multiplexed 8 lines of address bus and data bus: AD0 – AD7.

     – It supports external interrupt request.
         • 4 Vectored Interrupts (One is Non Maskable)
     – Serial In/Serial Out Port
     – Di
       Direct Add
            t Addressing Capability to 64K b t of memory
                      i C     bilit t      bytes f
Pin‐diagram
       g
Functional block diagram
Functional block diagram
8085‐Block Diagram
8085 Block Diagram
Registers
                              g
•   Registers
    – Accumulator or A register is an 8-bit register used for arithmetic,
                           g                  g
      logic,
      l i I/O and l d/
                  d load/store operations.
                                        i
    – Flag Register has five 1-bit flags.

•   General Registers
    – 8-bit B and 8-bit C registers can be used as one 16-bit BC register
      pair. When used as a pair the C register contains low-order byte.
      Some instructions may use BC register as a data pointer.
                            y           g               p
    – 8-bit D and 8-bit E registers can be used as one 16-bit DE register
      pair. When used as a pair the E register contains low-order byte.
      Some instructions may use DE register as a data pointer.
    – 8 bit H and 8 bit L registers can be used as one 16 bit HL register
       8-bit       8-bit                                16-bit
      pair. When used as a pair the L register contains low-order byte. HL
      register usually contains a data pointer used to reference memory
      addresses.
    – Stack pointer is a 16 bit register.
           k                b
    – Program counter is a 16-bit register
Flag Register
Flag Register
Reset Signal
                          g
• RESET IN : When this signal goes low,
  – the program counter (PC) is set to Zero,
  – μp is reset
  – The data and address buses and the control lines
    are 3-stated during RESET
  – The CPU is held in the reset condition as long as
                                                 g
    RESET-
    RESET IN is applied
                i     li d
• RESET OUT: This signal indicates that μp is
  being reset
        reset.
  – This signal can be used to reset other devices.
  – The signal is synchronized to the processor clock
          g        y                  p
    and lasts an integral number of clock periods.
  –.
Serial communication
        Serial communication

• Serial communication Signal
                         g
  – SID - Serial Input Data Line: The data
    on this line is loaded into accumulator bit
    7 whenever a RIM instruction is
    executed.
  – SOD – Serial Output Data Line: The SIM
    instruction loads the value of bit 7 of
    the
    th accumulator into SOD latch if bit 6
             m l t i t           l t h
    (SOE) of the accumulator is 1.
DMA Signals 
                     DMA Signals
•    HOLD: Indicates that another master is requesting the
    use of the address and data buses.
    – The CPU, upon receiving the hold request, will relinquish the
      use of the bus as soon as the completion of the current bus
      transfer.
    – Internal processing can continue. The processor can regain
      the bus only after the HOLD is removed
                                      removed.
    – When the HOLD is acknowledged, the Address, Data RD, WR
      and IO/M lines are 3-stated.

• HLDA: Hold Acknowledge: Indicates that the CPU has
  received the HOLD request and that it will relinquish
  the bus in the next clock cycle
                            cycle.
    – HLDA goes low after the Hold request is removed. The CPU
      takes the bus one half-clock cycle after HLDA goes low.
Ready Signal
                Ready Signal
• READY This signal Synchronizes the fast
  READY: Thi i        l S    h    i   th f t
  CPU and the slow memory, peripherals.
• If READY is high d in a read or write cycle,
                hi h during      d      it    l
  it indicates that the memory or peripheral is
  ready to send or receive data
                            data.
• If READY is low, the CPU will wait an integral
  number of clock cycle for READY to go high
  before completing the read or write cycle.
• READY must conform to spec f ed setup and
                            specified
  hold times.
Interrupts
•   8085 has 5 interrupts priority (from lowest to highest):

•   INTR: (maskable and non vectored interrupt) When the interrupt occurs the processor
                          non-vectored interrupt).                       occurs,
    fetches from the bus one instruction, usually one of these instructions:
     –   One of the 8 RST instructions (RST0 - RST7). The processor saves current program counter into
         stack and branches to memory location N * 8 (where N is a 3-bit number from 0 to 7 supplied with
         the RST instruction).
     –   CALL:
         CALL (3 byte i
                   b    instruction). Th processor calls the subroutine, address of which is specified i the
                                i ) The               ll h     b    i     dd      f hi h i       ifi d in h
         second and third bytes of the instruction.


•   RST5.5: (maskable interrupt). When this interrupt is received the processor saves the
    contents of the PC register into stack and branches to 2CH address.
       t t f th           i t i t t k db            h t         dd

•    RST6.5: (maskable interrupt) When this interrupt is received the processor saves the
    contents of the PC register into stack and branches to 34H address
•   RST7.5
    RST7 5 (maskable interrupt) When this interrupt is received the processor saves the
    contents of the PC register into stack and branches to 3CH (hexadecimal) address
•    TRAP: (non-maskable interrupt) When this interrupt is received the processor saves the
    contents of the PC register into stack and branches to 24H address.

•   All maskable interrupts can be enabled or disabled using EI and DI instructions. RST 5.5,
    RST6.5 and RST7.5 interrupts can be enabled or disabled individually using SIM instruction
8085 Non‐Vectored Interrupt Process
    8085 Non Vectored Interrupt Process
•   The interrupt process should be enabled using the EI instruction
                                                         instruction.

•    The 8085 checks for an interrupt during the execution of every
    instruction.
    instruction
•   If INTR is high, Processor completes current instruction, disables
    the interrupt and sends INTA (Interrupt acknowledge) signal to
                           p
    the device that interrupted
•    INTA allows the I/O device to send a RST instruction through
    data bus.
•    MP saves the memory location of the next instruction on the stack
                         y          f
    and the program is transferred to ‘call’ location (ISR Call)
    specified by the RST instruction
•   Microprocessor Performs the ISR. ISR must include the ‘EI’
    instruction t enable th f th i t
    i t    ti to      bl the further interrupt within the program.
                                                t ithi th

•   RET instruction at the end of the ISR allows the MP to retrieve
    the return address from the stack and the program is transferred
    back to where the program was interrupted.
Interrupt vectors
• An interrupt vector is a pointer to where the ISR is
  stored in memory.
           n
• 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).
• E
  Example:
         l
   – Let a device interrupts the Microprocessor using the RST 7.5
     interrupt line.
   – Because the RST 7.5 interrupt is vectored, Microprocessor knows
     in which memory location it has to go using a call instruction to get
     the ISR address.
   – RST7.5 is known as Call 003Ch to Microprocessor. Microprocessor
     goes to 003C location and will get a JMP instruction to the actual
     ISR address. The microprocessor will then, jump to the ISR
                             p                  ,j p
     location
Vectored Interrupt
• The interrupt process should be enabled using the EI
  instruction.
• Th 8085 checks for an interrupt during the execution of
  The          h k f        i         d i     h         i     f
  every instruction.
• If there is an interrupt, and if the interrupt is enabled
                        p                     p
  using the interrupt mask, the microprocessor will complete
         h                k h                       ll     l
  the executing instruction, and reset the interrupt flip flop.
• The microprocessor then executes a call instruction that
             p
  sends the execution to the appropriate location in the
  interrupt vector table.
• When the microprocessor executes the call instruction, it
                   p                                        ,
  saves the address of the next instruction on the stack.
• The microprocessor jumps to the specific service routine.
• The service routine must include the instruction EI to re-
                                                           re
  enable the interrupt process.
• At the end of the service routine, the RET instruction
  returns the execution to where the program was
  interrupted.
MANIPULATING THE MASKS 

• MANIPULATING THE MASKS
 – The Interrupt Enable flip flop is manipulated
   using the EI/DI instructions
                   instructions.

 – The individual masks for RST 5.5, RST 6.5 and
                                55       65
   RST 7.5 are manipulated using the SIM
   instruction.

 – The SIM instruction takes the bit pattern in
   the Accumulator and applies it to the interrupt
   mask enabling and disabling the specific
   interrupts.
          p
How SIM Interprets the Accumulator

                            7   6   5 4   3   2   1   0




                            M5.5
                            M7.5
                            M6.5
                            MSEE
                            SDO
                              O



                            R7.5
                               5
                            SDE
                              E
                            XXX
                              X
                                                          RST5.5 Mask
  Serial Data Out                                         RST6.5 Mask
                                                          RST7.5 Mask
                                                                        }   0 - Available
                                                                            1 - Masked



Enable Serial Data
E bl S i l D t                                            Mask Set E bl
                                                          M k S t Enable
0 - Ignore bit 7                                          0 - Ignore bits 0-2
1 - Send bit 7 to SOD pin                                 1 - Set the masks according
                                                               to bits 0-2



         Not Used                                         Force RST7.5 Flip Flop to reset



  If MSE is 1
  If the mask bit is 0, the interrupt is available
                     0                   available.
  If the mask bit is 1, the interrupt is masked.
                                                                                        17
How RIM sets the Accumulator’s different bits



                           7   6   5 4   3   2   1   0




                             5.5
                             7.5
                             6.5
                           P6.5
                           P7.5

                           P5.5
                           SDDI




                            IE
                             E



                           M5
                           M7
                           M6
                                                         RST5.5 Mask
Serial Data In                                           RST6.5 Mask
                                                         RST7.5 Mask
                                                                       }   0 - Available
                                                                           1 - Masked

RST5.5 Interrupt Pending
RST6.5 Interrupt Pending
RST7.5 Interrupt Pending
RST7 5 I t     t P di                                    Interrupt Enable
                                                         Value of the Interrupt Enable
                                                         Flip Flop
Instruction Set & Addressing mode 
    Instruction Set & Addressing mode
•   Instruction Set:
     – 8085 instruction set consists of the following instructions:
     – Data moving instructions.
     – Arithmetic - add, subtract, increment and decrement.
     – Logic - AND, OR, XOR and rotate.
     – Control transfer - conditional, unconditional, call subroutine, return from
       subroutine and restarts.
     – Input/Output instructions.
     – Other - setting/clearing flag bits, enabling/disabling interrupts, stack operations,
       etc.

•   Addressing m
       r    ng mode
     – Register - references the data in a register or in a register pair.
     – Register indirect - instruction specifies register pair containing address,
       where the data is located.
     – Direct
       Direct,
     – Immediate - 8 or 16-bit data
8085  Microprocessor Memory
     8085 Microprocessor Memory
•   Memory:
    Program, data and stack memories occupy the same memory
    space. The total addressable memory size is 64KB.

•   Program memory - program can be located anywhere in memory.
    – Jump, branch and call instructions use 16-bit addresses, i.e. they
      can be used to jump/branch anywhere within 64 KB KB.
    – All jump/ branch instructions use absolute addressing.

•   Data memory - the processor always uses 16-bit addresses so
                                               16 bit
    that data can be placed anywhere.
•   Stack memory is limited only by the size of memory. Stack
    g
    grows downward.

•   First 64 bytes in a zero memory page should be reserved for
    vectors used by RST instructions
                  y

Weitere ähnliche Inhalte

Was ist angesagt?

8085 paper-presentation-1232646931472979-2
8085 paper-presentation-1232646931472979-28085 paper-presentation-1232646931472979-2
8085 paper-presentation-1232646931472979-2manish singhal
 
Microprocessor 8085 Chapter 4
Microprocessor 8085 Chapter 4Microprocessor 8085 Chapter 4
Microprocessor 8085 Chapter 4Rishikesh Bhavsar
 
2. 8085-Microprocessor.pptx
2. 8085-Microprocessor.pptx2. 8085-Microprocessor.pptx
2. 8085-Microprocessor.pptxISMT College
 
8085 Microprocessor Architecture
8085 Microprocessor Architecture8085 Microprocessor Architecture
8085 Microprocessor Architecturedeval patel
 
Microprocessor 8085
Microprocessor 8085Microprocessor 8085
Microprocessor 8085Dhaval Barot
 
8085 Architecture & Memory Interfacing1
8085 Architecture & Memory Interfacing18085 Architecture & Memory Interfacing1
8085 Architecture & Memory Interfacing1techbed
 
Pin configuration of 8085
Pin configuration of 8085Pin configuration of 8085
Pin configuration of 808582338476
 
An introduction to microprocessor architecture using INTEL 8085 as a classic...
An introduction to microprocessor  architecture using INTEL 8085 as a classic...An introduction to microprocessor  architecture using INTEL 8085 as a classic...
An introduction to microprocessor architecture using INTEL 8085 as a classic...Prasad Deshpande
 
8096 microcontrollers notes
8096 microcontrollers notes8096 microcontrollers notes
8096 microcontrollers notesDr.YNM
 
Microprocessor architecture II
Microprocessor architecture   IIMicroprocessor architecture   II
Microprocessor architecture IIDr.YNM
 
advancsed microprocessor and interfacing
advancsed microprocessor and interfacingadvancsed microprocessor and interfacing
advancsed microprocessor and interfacing@zenafaris91
 
MICROPROCESSOR INPUT OUTPUT OPERATIONS
MICROPROCESSOR INPUT OUTPUT OPERATIONSMICROPROCESSOR INPUT OUTPUT OPERATIONS
MICROPROCESSOR INPUT OUTPUT OPERATIONSGeorge Thomas
 
Introduction to 8085 Microprocessor
Introduction to 8085 MicroprocessorIntroduction to 8085 Microprocessor
Introduction to 8085 MicroprocessorRavi Anand
 

Was ist angesagt? (20)

Qb microprocessors
Qb microprocessorsQb microprocessors
Qb microprocessors
 
8085 paper-presentation-1232646931472979-2
8085 paper-presentation-1232646931472979-28085 paper-presentation-1232646931472979-2
8085 paper-presentation-1232646931472979-2
 
Microprocessor 8085 Chapter 4
Microprocessor 8085 Chapter 4Microprocessor 8085 Chapter 4
Microprocessor 8085 Chapter 4
 
2. 8085-Microprocessor.pptx
2. 8085-Microprocessor.pptx2. 8085-Microprocessor.pptx
2. 8085-Microprocessor.pptx
 
8085 microprocessor notes
8085 microprocessor notes8085 microprocessor notes
8085 microprocessor notes
 
8085 Microprocessor Architecture
8085 Microprocessor Architecture8085 Microprocessor Architecture
8085 Microprocessor Architecture
 
Microprocessor 8085
Microprocessor 8085Microprocessor 8085
Microprocessor 8085
 
8085 MICROPROCESSOR
8085 MICROPROCESSOR 8085 MICROPROCESSOR
8085 MICROPROCESSOR
 
microprocessor 8085
microprocessor 8085microprocessor 8085
microprocessor 8085
 
8085 Architecture & Memory Interfacing1
8085 Architecture & Memory Interfacing18085 Architecture & Memory Interfacing1
8085 Architecture & Memory Interfacing1
 
Pin configuration of 8085
Pin configuration of 8085Pin configuration of 8085
Pin configuration of 8085
 
8085
80858085
8085
 
An introduction to microprocessor architecture using INTEL 8085 as a classic...
An introduction to microprocessor  architecture using INTEL 8085 as a classic...An introduction to microprocessor  architecture using INTEL 8085 as a classic...
An introduction to microprocessor architecture using INTEL 8085 as a classic...
 
Microprocessor interview questions
Microprocessor interview questionsMicroprocessor interview questions
Microprocessor interview questions
 
8096 microcontrollers notes
8096 microcontrollers notes8096 microcontrollers notes
8096 microcontrollers notes
 
Microprocessor architecture II
Microprocessor architecture   IIMicroprocessor architecture   II
Microprocessor architecture II
 
advancsed microprocessor and interfacing
advancsed microprocessor and interfacingadvancsed microprocessor and interfacing
advancsed microprocessor and interfacing
 
MICROPROCESSOR INPUT OUTPUT OPERATIONS
MICROPROCESSOR INPUT OUTPUT OPERATIONSMICROPROCESSOR INPUT OUTPUT OPERATIONS
MICROPROCESSOR INPUT OUTPUT OPERATIONS
 
Introduction to 8085 Microprocessor
Introduction to 8085 MicroprocessorIntroduction to 8085 Microprocessor
Introduction to 8085 Microprocessor
 
8085 micro processor
8085 micro processor8085 micro processor
8085 micro processor
 

Ähnlich wie Topic 1

8085 microprocessor
8085 microprocessor8085 microprocessor
8085 microprocessorIama Marsian
 
UNIT 1 Microprocessors.pptx
UNIT 1 Microprocessors.pptxUNIT 1 Microprocessors.pptx
UNIT 1 Microprocessors.pptxGowrishankar C
 
Microprocessors and microcontrollers
Microprocessors and microcontrollersMicroprocessors and microcontrollers
Microprocessors and microcontrollersgomathy S
 
Week 1.3 architecture
Week 1.3   architectureWeek 1.3   architecture
Week 1.3 architecturebaraniselva
 
Microprocessors 8085 architecture
Microprocessors 8085 architectureMicroprocessors 8085 architecture
Microprocessors 8085 architectureVARUN BABUNELSON
 
itft-8085 microprocessor
itft-8085 microprocessoritft-8085 microprocessor
itft-8085 microprocessorShifali Sharma
 
Microprocessor Architecture-III
Microprocessor Architecture-IIIMicroprocessor Architecture-III
Microprocessor Architecture-IIIDr.YNM
 
Microprocessor 8085 architecture ppt. april 2013
Microprocessor 8085 architecture ppt. april 2013Microprocessor 8085 architecture ppt. april 2013
Microprocessor 8085 architecture ppt. april 2013harshalata
 
Z80 microprocessor architecture1
Z80 microprocessor architecture1Z80 microprocessor architecture1
Z80 microprocessor architecture1Mohaned Alberah
 

Ähnlich wie Topic 1 (20)

8085 microprocessor
8085 microprocessor8085 microprocessor
8085 microprocessor
 
MP_MC.pdf
MP_MC.pdfMP_MC.pdf
MP_MC.pdf
 
UNIT 1 Microprocessors.pptx
UNIT 1 Microprocessors.pptxUNIT 1 Microprocessors.pptx
UNIT 1 Microprocessors.pptx
 
Microprocessors and microcontrollers
Microprocessors and microcontrollersMicroprocessors and microcontrollers
Microprocessors and microcontrollers
 
8085 microprocessor
8085 microprocessor8085 microprocessor
8085 microprocessor
 
8085_LAB_PROGRAMS.pdf
8085_LAB_PROGRAMS.pdf8085_LAB_PROGRAMS.pdf
8085_LAB_PROGRAMS.pdf
 
Week 1.3 architecture
Week 1.3   architectureWeek 1.3   architecture
Week 1.3 architecture
 
12 mt06ped001
12 mt06ped001 12 mt06ped001
12 mt06ped001
 
Microprocessors 8085 architecture
Microprocessors 8085 architectureMicroprocessors 8085 architecture
Microprocessors 8085 architecture
 
8085 alp programs
8085 alp programs8085 alp programs
8085 alp programs
 
Architecture of 8085
Architecture of 8085Architecture of 8085
Architecture of 8085
 
Architecture of 8085
Architecture of 8085Architecture of 8085
Architecture of 8085
 
Unit 4.pptx
Unit 4.pptxUnit 4.pptx
Unit 4.pptx
 
MPMC
MPMC MPMC
MPMC
 
itft-8085 microprocessor
itft-8085 microprocessoritft-8085 microprocessor
itft-8085 microprocessor
 
Microprocessor history1
Microprocessor history1Microprocessor history1
Microprocessor history1
 
Microprocessor history1
Microprocessor history1Microprocessor history1
Microprocessor history1
 
Microprocessor Architecture-III
Microprocessor Architecture-IIIMicroprocessor Architecture-III
Microprocessor Architecture-III
 
Microprocessor 8085 architecture ppt. april 2013
Microprocessor 8085 architecture ppt. april 2013Microprocessor 8085 architecture ppt. april 2013
Microprocessor 8085 architecture ppt. april 2013
 
Z80 microprocessor architecture1
Z80 microprocessor architecture1Z80 microprocessor architecture1
Z80 microprocessor architecture1
 

Kürzlich hochgeladen

Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxShobhayan Kirtania
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 

Kürzlich hochgeladen (20)

Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptx
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 

Topic 1

  • 1. CS421 Computer Peripheral and  Interfacing Overview of 8085 MP
  • 2. 8085 Microprocessor 8085 Microprocessor • It is enclosed with 40 pins DIP ( Dual in line package ) • Salient features: – 8 bit microprocessor. – Six 8-bit general purpose register arranged in pairs: 8 bit • BC, DE, HL. Accumulator Flags • A 16 bit program counter (PC) B C • A 16 bit stack pointer (SP) D E – It requires a signal +5V power supply i i l 5V l H L Program Counter – operates at 6.144 MHZ Stack Pointer – 16 bit address bus • can address upto216 = 65536 bytes (64KB) memory locations through A0-A15. – Multiplexed 8 lines of address bus and data bus: AD0 – AD7. – It supports external interrupt request. • 4 Vectored Interrupts (One is Non Maskable) – Serial In/Serial Out Port – Di Direct Add t Addressing Capability to 64K b t of memory i C bilit t bytes f
  • 6. Registers g • Registers – Accumulator or A register is an 8-bit register used for arithmetic, g g logic, l i I/O and l d/ d load/store operations. i – Flag Register has five 1-bit flags. • General Registers – 8-bit B and 8-bit C registers can be used as one 16-bit BC register pair. When used as a pair the C register contains low-order byte. Some instructions may use BC register as a data pointer. y g p – 8-bit D and 8-bit E registers can be used as one 16-bit DE register pair. When used as a pair the E register contains low-order byte. Some instructions may use DE register as a data pointer. – 8 bit H and 8 bit L registers can be used as one 16 bit HL register 8-bit 8-bit 16-bit pair. When used as a pair the L register contains low-order byte. HL register usually contains a data pointer used to reference memory addresses. – Stack pointer is a 16 bit register. k b – Program counter is a 16-bit register
  • 8. Reset Signal g • RESET IN : When this signal goes low, – the program counter (PC) is set to Zero, – μp is reset – The data and address buses and the control lines are 3-stated during RESET – The CPU is held in the reset condition as long as g RESET- RESET IN is applied i li d • RESET OUT: This signal indicates that μp is being reset reset. – This signal can be used to reset other devices. – The signal is synchronized to the processor clock g y p and lasts an integral number of clock periods. –.
  • 9. Serial communication Serial communication • Serial communication Signal g – SID - Serial Input Data Line: The data on this line is loaded into accumulator bit 7 whenever a RIM instruction is executed. – SOD – Serial Output Data Line: The SIM instruction loads the value of bit 7 of the th accumulator into SOD latch if bit 6 m l t i t l t h (SOE) of the accumulator is 1.
  • 10. DMA Signals  DMA Signals • HOLD: Indicates that another master is requesting the use of the address and data buses. – The CPU, upon receiving the hold request, will relinquish the use of the bus as soon as the completion of the current bus transfer. – Internal processing can continue. The processor can regain the bus only after the HOLD is removed removed. – When the HOLD is acknowledged, the Address, Data RD, WR and IO/M lines are 3-stated. • HLDA: Hold Acknowledge: Indicates that the CPU has received the HOLD request and that it will relinquish the bus in the next clock cycle cycle. – HLDA goes low after the Hold request is removed. The CPU takes the bus one half-clock cycle after HLDA goes low.
  • 11. Ready Signal Ready Signal • READY This signal Synchronizes the fast READY: Thi i l S h i th f t CPU and the slow memory, peripherals. • If READY is high d in a read or write cycle, hi h during d it l it indicates that the memory or peripheral is ready to send or receive data data. • If READY is low, the CPU will wait an integral number of clock cycle for READY to go high before completing the read or write cycle. • READY must conform to spec f ed setup and specified hold times.
  • 12. Interrupts • 8085 has 5 interrupts priority (from lowest to highest): • INTR: (maskable and non vectored interrupt) When the interrupt occurs the processor non-vectored interrupt). occurs, fetches from the bus one instruction, usually one of these instructions: – One of the 8 RST instructions (RST0 - RST7). The processor saves current program counter into stack and branches to memory location N * 8 (where N is a 3-bit number from 0 to 7 supplied with the RST instruction). – CALL: CALL (3 byte i b instruction). Th processor calls the subroutine, address of which is specified i the i ) The ll h b i dd f hi h i ifi d in h second and third bytes of the instruction. • RST5.5: (maskable interrupt). When this interrupt is received the processor saves the contents of the PC register into stack and branches to 2CH address. t t f th i t i t t k db h t dd • RST6.5: (maskable interrupt) When this interrupt is received the processor saves the contents of the PC register into stack and branches to 34H address • RST7.5 RST7 5 (maskable interrupt) When this interrupt is received the processor saves the contents of the PC register into stack and branches to 3CH (hexadecimal) address • TRAP: (non-maskable interrupt) When this interrupt is received the processor saves the contents of the PC register into stack and branches to 24H address. • All maskable interrupts can be enabled or disabled using EI and DI instructions. RST 5.5, RST6.5 and RST7.5 interrupts can be enabled or disabled individually using SIM instruction
  • 13. 8085 Non‐Vectored Interrupt Process 8085 Non Vectored Interrupt Process • The interrupt process should be enabled using the EI instruction instruction. • The 8085 checks for an interrupt during the execution of every instruction. instruction • If INTR is high, Processor completes current instruction, disables the interrupt and sends INTA (Interrupt acknowledge) signal to p the device that interrupted • INTA allows the I/O device to send a RST instruction through data bus. • MP saves the memory location of the next instruction on the stack y f and the program is transferred to ‘call’ location (ISR Call) specified by the RST instruction • Microprocessor Performs the ISR. ISR must include the ‘EI’ instruction t enable th f th i t i t ti to bl the further interrupt within the program. t ithi th • RET instruction at the end of the ISR allows the MP to retrieve the return address from the stack and the program is transferred back to where the program was interrupted.
  • 14. Interrupt vectors • An interrupt vector is a pointer to where the ISR is stored in memory. n • 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). • E Example: l – Let a device interrupts the Microprocessor using the RST 7.5 interrupt line. – Because the RST 7.5 interrupt is vectored, Microprocessor knows in which memory location it has to go using a call instruction to get the ISR address. – RST7.5 is known as Call 003Ch to Microprocessor. Microprocessor goes to 003C location and will get a JMP instruction to the actual ISR address. The microprocessor will then, jump to the ISR p ,j p location
  • 15. Vectored Interrupt • The interrupt process should be enabled using the EI instruction. • Th 8085 checks for an interrupt during the execution of The h k f i d i h i f every instruction. • If there is an interrupt, and if the interrupt is enabled p p using the interrupt mask, the microprocessor will complete h k h ll l the executing instruction, and reset the interrupt flip flop. • The microprocessor then executes a call instruction that p sends the execution to the appropriate location in the interrupt vector table. • When the microprocessor executes the call instruction, it p , saves the address of the next instruction on the stack. • The microprocessor jumps to the specific service routine. • The service routine must include the instruction EI to re- re enable the interrupt process. • At the end of the service routine, the RET instruction returns the execution to where the program was interrupted.
  • 16. MANIPULATING THE MASKS  • MANIPULATING THE MASKS – The Interrupt Enable flip flop is manipulated using the EI/DI instructions instructions. – The individual masks for RST 5.5, RST 6.5 and 55 65 RST 7.5 are manipulated using the SIM instruction. – The SIM instruction takes the bit pattern in the Accumulator and applies it to the interrupt mask enabling and disabling the specific interrupts. p
  • 17. How SIM Interprets the Accumulator 7 6 5 4 3 2 1 0 M5.5 M7.5 M6.5 MSEE SDO O R7.5 5 SDE E XXX X RST5.5 Mask Serial Data Out RST6.5 Mask RST7.5 Mask } 0 - Available 1 - Masked Enable Serial Data E bl S i l D t Mask Set E bl M k S t Enable 0 - Ignore bit 7 0 - Ignore bits 0-2 1 - Send bit 7 to SOD pin 1 - Set the masks according to bits 0-2 Not Used Force RST7.5 Flip Flop to reset If MSE is 1 If the mask bit is 0, the interrupt is available 0 available. If the mask bit is 1, the interrupt is masked. 17
  • 18. How RIM sets the Accumulator’s different bits 7 6 5 4 3 2 1 0 5.5 7.5 6.5 P6.5 P7.5 P5.5 SDDI IE E M5 M7 M6 RST5.5 Mask Serial Data In RST6.5 Mask RST7.5 Mask } 0 - Available 1 - Masked RST5.5 Interrupt Pending RST6.5 Interrupt Pending RST7.5 Interrupt Pending RST7 5 I t t P di Interrupt Enable Value of the Interrupt Enable Flip Flop
  • 19. Instruction Set & Addressing mode  Instruction Set & Addressing mode • Instruction Set: – 8085 instruction set consists of the following instructions: – Data moving instructions. – Arithmetic - add, subtract, increment and decrement. – Logic - AND, OR, XOR and rotate. – Control transfer - conditional, unconditional, call subroutine, return from subroutine and restarts. – Input/Output instructions. – Other - setting/clearing flag bits, enabling/disabling interrupts, stack operations, etc. • Addressing m r ng mode – Register - references the data in a register or in a register pair. – Register indirect - instruction specifies register pair containing address, where the data is located. – Direct Direct, – Immediate - 8 or 16-bit data
  • 20. 8085  Microprocessor Memory 8085 Microprocessor Memory • Memory: Program, data and stack memories occupy the same memory space. The total addressable memory size is 64KB. • Program memory - program can be located anywhere in memory. – Jump, branch and call instructions use 16-bit addresses, i.e. they can be used to jump/branch anywhere within 64 KB KB. – All jump/ branch instructions use absolute addressing. • Data memory - the processor always uses 16-bit addresses so 16 bit that data can be placed anywhere. • Stack memory is limited only by the size of memory. Stack g grows downward. • First 64 bytes in a zero memory page should be reserved for vectors used by RST instructions y