Featured

    Featured Posts

Explain 8259 interrupt controller with the help of block diagram.


Explain 8259 interrupt controller with the help of block diagram.

   It contains following blocks :
Functional block diagram of 8259 interrupt controller


  • Data bus buffer : It is used to transfer data between microprocessor and internal bus.
  • Control logic : It generates an INT signal. In response to an INTA signal, it releases three byte CALL address or one byte vector number. It controls read/write control logic, cascade buffer/comparator, in service register, priority resolver and IRR.
  • Cascade buffer and comparator : In master mode, it functions as a cascaded buffer. The cascaded buffers outputs slave identification number on cascade lines. In slave mode, it functions as a comparator. The comparator reads slave identification number from cascade lines and compares this number with its internal identification number. In buffered mode it generates an EN signal.
  • Read/write logic : It sets the direction of data bus buffer. It controls all internal read/write operations. It contain initialisation and operation command register.
  • IRR(Interrupt Request Register) : It is used to store all pending interrupt requests. Each bit of this register is set at the rising edge or at the high level of the corresponding interrupt request line. The microprocessor can read contents of this register by issuing appropriate, command word.
  • InSR (In-Service Register) : It is used to store all interrupt levels currently being serviced. Each bit of this register is set by priority resolver and reset by end of interrupt command word. The microprocessor can read contents of this register by issuing appropriate command word.
  • IMR (Interrupt Mask Register) : It is a programmable register. It is used to mask unwanted interrupt request, by writing command word. The microprocessor can read contents of this register without issuing any command word.
  • Priority resolver : It determines the priorities of the bit set in the IRR. To make decision, the priority resolver looks at the ISR. If the higher priority bit in the InSR is set then it ignores the new request. If the priority revolvers finds that the new interrupt has a higher priority than the highest priority interrupt currently being serviced and the new interrupt is not in service, then it will set appropriate bit in the InSR and send the INT signal to the microprocessor for new interrupt request.

Write short note on 8259A programmable interrupt controller.



Write short note on 8259A programmable interrupt controller.

       8259 A programmable Interrupt Controller : For application where we require multiple interrupt sources, we need to use an external device called priority interrupt controller (PIC).

     By connecting a PIC to the microprocessor we can increase the interrupt handling capacity of the microprocessor, 8259 A is the commonly used priority interrupt controller.

      Cascade PICs System with 8085 : The 8259 A can be easily interconnected to obtain multiple interrupts, Figure 1 below shows 8259 A connected in cascade mode.
      When 8259 A IC's are connected in cascade, one 8259 A is configured as master while all other 8259 A's are configured as slave.
      In Figure 1 8259-1 is in master mode and others are in slave mode.
      Each slave is recognized by a number that is assigned as a part of its initialization.
      The 8085 microprocessor has only one INTR input. Hence only one of 8259 A INT pin is connected to the 8085 INTR pins.
      The INT pins from other 8259s are connected to the IR inputs of the master 8259 A.
      These cascaded 8259s are called as slave. The INTA signal is connected to master as well as slave 8259 A.
      The cascade pins CAS0 - CAS2 are connected from master to corresponding slave pins. For master they function as outputs while for slave these pins function as input.
      The SP/EN signals is tied high for the master. However it is grounded for all slaves.
Address for 8259 A -1
A7
A6
A5
A4
A3
A2
A1
A0
1
1
1
1
0
0
0
X
= F0 or F1 H
For 8259 A - 2
A7
A6
A5
A4
A3
A2
A1
A0
1
1
1
1
0
0
1
X
= F2 H or F3 H
For 8259 A - 3
A7
A6
A5
A4
A3
A2
A1
A0
1
1
1
1
0
1
0
X
= F4 H or F5 H

       Upto 8 PICs can be cascade together to act as a slave unit to master PIC. Thus, a total of 64 peripherals can be connected to the microprocessor.

www.CodeNirvana.in

www.posthatke.com. Powered by Blogger.
Copyright © www.posthatke.com | Blogger Templates | Designed By posthatke.com