INTERRUPT
An interrupt is a control signal sent to the microprocessor to draw its attention.
It is a type of signal to processor in which processor,on receiving the interrupt request,stops its current operation and starts executing the subroutine associated with the interrupt signal.
Interrupt signal is – active low (0) or active high (1) signal used to send to a device to say “stop doing what you’re doing and listen to me. I’ve got something for you”.
In general term, interrupt is a kind of BUZZER to stop the continous progess orbreak the continuity.
THERE ARE THREE TYPES OF INTERRUPTS AS FOLLOWS:
- Hardware Interrupts
- Software Interrupts
A software interrupts is a particular instructions that can be inserted into the desired location in the program. There are eight Software interrupts in 8085 Microprocessor.
- RST0
- RST1
- RST2
- RST3
- RST4
- RST5
- RST6
- RST7
We can calculate the vector address of these interrupts using the formula given below:
Vector Address = Interrupt Number * 8
Interrupt Vector Address(in hexadecimal)
- RST0 ————– 0000 ——————————— 0*8=0
- RST1 ————– 0008 ——————————— 1*8=8
- RST2 ————– 0010 ——————————— 2*8=16
- RST3 ————– 0018 ——————————— 3*8=24
- RST4 ————– 0020 ——————————— 4*8=32
- RST5 ————– 0028 ——————————— 5*8=40
- RST6 ————– 0030 ——————————— 6*8=48
- RST7 ————– 0038 ——————————— 7*8=56
Shortcut method to learn with trick:
step 1 : first interrupt will be same i.e RST0 =0000
step 2: Now Add 8 to result of first interrupt i.e 0+8= 0008
step 3: Now add 2 to result of second interrupt i.e 8+2=0010
step 4 : again add 8 into result of previous interrupt and the again add 2 into result of previous interrupt so on.
HARDWARE INTERRUPT
Interrupt Vector Address(in hexadecimal)
- TRAP—————-0024
- RST7.5————–003C
- RST6.5————–0034
- RST5.5————–002C
- INTR
TRAP > RST7.5 > RST6.5 > RST5.5 > INTR
TRAP has highest priority and RST7.5 has second highest priority and so on.
TRAP
It is non-maskable edge and level triggered interrupt. TRAP has the highest priority and vector interrupt. Edge and level triggered means that the TRAP must go high and remain high until it is acknowledged.
- There are two ways to clear TRAP interrupt.
RST7.5
It has the second highest priority. It is maskable and edge level triggered interrupt.
It can also be reset or masked by reseting microprocessor.
It can also be resetted by DI instruction.
RST6.5 and RST5.5
BOTH interrupts are level triggered and maskable interrupts.
When RST6.5 pin is at logic 1, INTE flip-flop is set. RST 6.5 has third highest priority and RST 5.5 has fourth highest priority.
I
It is disabled by,
INTR
It is level triggered and maskable interrupt.
It has lowest priority.
The following sequence of events occurs when INTR signal goes high:
- The 8085 checks the status of INTR signal during execution of each instruction.
- If INTR signal is high, then 8085 complete its current instruction and sends active low interrupt acknowledge signal, if the interrupt is enabled.
- On receiving the instruction, the 8085 save the address of next instruction on stack and execute received instruction.