MICROPROCESSOR AND MICROCONTROLLER

INTERRUPT PROGRAMMING

ARCHITECTURE OF 8085

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
While CPU is executing a program, an interrupt exists then it ____
A
follows the next instruction in the program m
B
jumps to instruction in other registers
C
breaks the normal sequence of execution of instructions
D
stops executing the program
Explanation: 

Detailed explanation-1: -Whenever an interrupt occurs, it causes the CPU to stop executing the current program. Then comes the control to interrupt handler or interrupt service routine. When the interrupt handler is finished, CPU transfers control back to the originally executing program.

Detailed explanation-2: -Interrupt procedure CPU gererates an interrupt signal or receives one from an external device. If the signal comes while an instruction is being executed, it is held until the execution of the instruction is complete.

Detailed explanation-3: -Step 1 − First device issues interrupt to CPU. Step 2 − Then, the CPU finishes execution of current instruction. Step 3 − CPU tests for pending interrupt request. If there is one, it sends an acknowledgment to the device which removes its interrupt signal. Step 4 − CPU saves program status word onto control stack.

There is 1 question to complete.