You are currently viewing INTERFACING 8259 WITH 8085 MICROPROCESSOR


β€’    It requires two internal address and they are A =0 or A = 1.

β€’    It can be either memory-mapped or I/O-mapped in the system. The interfacing of 8259 to 8085 is shown in the figure is I/O mapped in the system.

β€’    The low order data bus lines D0-D7 are connected to D0-D7 of 8259.

β€’    The address line  A0  of the  8085  processor is connected to  A0   of  8259  to provide the internal address.

β€’    The 8259 requires one chip select signal. Using a 3-to-8 decoder generates the chip-select signal for

β€’    The address lines A4, A5  and A6  are used as input to decoder.

β€’    The control signal IO/M (low) is used as logic high enables for the decoder and the address line A7  is used as logic low enables for a decoder.

β€’    The I/O ad4ressΓ¨s of 8259 are shown in table-8.5.

Working of 8259 with 8085 processor:

β€’    First  the  8259  should  be  programmed  by  sending  Initialization  Command  Word  (ICW)
and Operational Command Word (OCW). These command words will inform 8259 about the following,

* Type of interrupt signal (Level triggered / Edge triggered).

* Type of processor (8085/8086).

* Call address and its interval (4 or 8)

* Masking of interrupts.

* Priority of interrupts.

* Type of end of interrupts.

β€’    Once 8259 is programmed it is ready for accepting interrupt signals. When it receives an interrupt through any one of the interrupt lines IR0-IR7  it checks for its priority and also checks whether it
is masked or not.

β€’    If the previous interrupt is completed and if the current request has the highest priority and is unmasked, then it is serviced.

β€’    For servicing this interrupt the 8259 will send an INT signal to the INTR pin of 8085.

β€’    In response it expects an acknowledged INTA (low) from the processor.

β€’    When the processor accepts the interrupt, it sends three INTA (low) one by one.

β€’    In response to the first, second, and third INTA (low) signals, the  8259 will supply the CALL opcode, the low byte of the call address, and the high byte of the call address respectively. Once the processor receives the call opcode and its address, it saves the content of the program counter (PC) in a stack and loads the CALL address in the PC, and starts executing the interrupt service routine stored in this call address.

Aanchal Gupta

Welcome to my website! I'm Aanchal Gupta, an expert in Electrical Technology, and I'm excited to share my knowledge and insights with you. With a strong educational background and practical experience, I aim to provide valuable information and solutions related to the field of electrical engineering. I hold a Bachelor of Engineering (BE) degree in Electrical Engineering, which has equipped me with a solid foundation in the principles and applications of electrical technology. Throughout my academic journey, I focused on developing a deep understanding of various electrical systems, circuits, and power distribution networks.

Leave a Reply