Featured

    Featured Posts

Discuss in detail 8085 interrupts.



This is another favourite topic for the examiner to set a question questions. So students need prepare it strongly. In the coming B.Tech 5th semester examination, you will definitely find one question on the this topic i.e. 8085 microprocessor interrupts. As MDU university used to held semester examination in December. The concept of 8085 microprocessor interrupts is very easy to prepare for the examination and its a very scoring topic in the subject of Microprocessor and interfacing. 



Discuss in detail 8085 interrupts.

8085 Interrupts :  The interrupt driven I/O is one of the data transfer techniques used in the microprocessor systems. By using this techniques, the external device or a peripheral can inform the microprocessor that it is ready for communication.

    In 8085 microprocessor there are two types of interrupts : Hardware and software interrupts.
Hardware Interrupts :  8085 microprocessor provides five hardware interrupt viz TRAP, RST 7.5, RST  6.5, RST 5.5, and INTR.  The interrupt structure is a five level structure.
  1. TRAP :  It is non-maskable edge and level triggered interrupt, request input line.  It is used for emergency purpose like power failure, parity error checker, smoke detector etc. The microprocessor does not execute any interrupt acknowledge cycle to read interrupt information from the interrupting device. The interrupt information is provided by control section of microprocessor internally. But microprocessor executes ideal machine cycle to acknowledge this interrupt. To generate starting address of TRAP interrupt service routine.  The TRAP signal must make low to high transition and remain high until acknowledged that means this interrupt is triggered only at the rising edge of the signal. This avoids false triggering due to noise or glitches. It is not affected by any instruction. It has the highest priority among all interrupt. It is always enabled. This interrupt transfers microprocessors control to location 0024 H. User cannot rest TRAP flip-flops that means we cannot cancel this interrupt.
  2. RST 7.5 :  It is maskable edge triggered interrupt request input line. The microprocessor does not execute any interrupt acknowledge cycle to read interrupt information from the interrupting device. The interrupt is provided by control selection of microprocessor internally. Instead of interrupt acknowledge cycle, the microprocessor executes ideal machine cycle (6T) to acknowledge this interrupt. During this cycle it executes RST 7.5.  Instruction to generate starting address of interrupt service routine. This interrupt is triggered at the rising edge of the signal. Its priority among all maskable interrupt. This interrupt to location 003ch. User can reset RST 7.5 flip-flop that means we can cancel this interrupt by SIM instruction.
  3. RST 6.5 and RST 5.5 : These are level triggered maskable interrupt request input lines. The microprocessor does not execute any interrupt acknowledge cycle to read interrupt information from the interrupting device. The microprocessor executes idle machine cycle (6T) to acknowledge these interrupts. During this cycle it executes RST 6.5 and RST 5.5 instructions to generate address of ISR 6.5 and ISR 5.5 respectively. They can be disabled by executing SIM or EI instruction. RST 6.5 transfers microprocessor's control to location 0034 H while RST 5.5 transfers microprocessor's control to location 002 CH.

The Table shows address of ISR’s
Interrupt
ISR address
TRAP
RST 7.5
RST 6.5
RST 5.5
0024H
003CH
0034H
002CH
  • INTR :  It is level triggered, maskable interrupt request input line. The microprocessor executes interrupt acknowledge cycle to read interrupt information from interrupting device. The microprocessor executes one interrupt acknowledge cycle (6T) and three interrupt acknowledge cycles (6T + 3T +3T) for RSTN and CALL instructions respectively.
            The starting address of ISR depends upon interrupt information. This interrupt is not affected by SIM instruction. It is enabled by executing EI instruction while disabled by DI instruction.

Software interrupts :
  1. In case of software interrupts the cause of the interrupt the cause of the interrupt is the execution of the instruction.
  2. The microprocessor 8085 has eight instructions. These eight instructions are RST 0 to RST 7. Such interrupts are called as software interrupts.
  3. They allow the microprocessor to transfer program control from the main program to the subroutine program (i.e predefined service routine addresses).
  4. After completing the subroutine program, the program control returns back to the main program.

Post a Comment

www.CodeNirvana.in

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