answersLogoWhite

0

Interrupts are in place so you can run a program and have something else run in the background. Example...

Say you want to check to see if a Roomba to check if it has run into anything (actually did this for a class) but you also want it to work itself around a maze. You would run you logic for the maze above the interrupt to check if you ran into anything. You would have an interrupt run every 10 milliseconds lets say to check if the bumpers were depressed and if they weren't then you would continue to run the code. Otherwise if you did run into something it would run its little bit of code (in ours it would turn left) then it would continue to run the code from where the program counter left off.

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

What is the purpose of interrupts in Operating System?

Answer: An interrupt is a hardware-generated change-of-flow within the system. An interrupt handler is summoned to deal with the cause of the interrupt; control is then returned to the interrupted context and instruction. A trap is a software-generated interrupt. An interrupt can be used to signal the completion of an I/O to obviate the need for device polling. A trap can be used to call operating system routines or to catch arithmetic errors.Type your answer here...


Different beetwen sim and rim?

SIM stands for “Set Interrupt Mask” It is 1 byte instruction RIM stands for “Read Interrupt Mask” it is 1 byte MULTI-PURPOSE instruction.


What is the purpose of using soldring wire in rain alarm?

so that the vibrations in the alarm don't interrupt the electrizity system


What part of speech is interrupt?

Interrupt is a verb.


What is the use of interrupt vector?

An interrupt vector is the memory address of an interrupt handler, or an index into an array called an interrupt vector table or dispatch table. Interrupt vector tables contain the memory addresses of interrupt handlers. When an interrupt is generated, the processor saves its execution state via a context switch, and begins execution of the interrupt handler at the interrupt vector.


What is a sentence with the word interrupt?

"You should not interrupt class," the teacher scolded the boy.


What is the Prefix of interrupt?

the prefix of interrupt is in


What is the prefix for interrupt?

The prefix for interrupt is "inter-".


Where is interrupt handler and interrupt vector?

In the 8086/8088, the interrupt vector table is the first 1024 bytes of memory. In the 8085, the interrupt vector table is the first 64 bytes of memory if using the RST form of interrupt, otherwise the interrupt vector is provided by the interrupting device, usually in the form of a CALL instruction. The interrupt handler is wherever the interrupt vector points to.


What is an 8085 interrupt?

There are 2 types interrupts in 8085 such as: 1)hardware interrupt 2)software interrupt


What is the noun form interrupt?

noun of interrupt,interruption interruptions,interrupts


What is the verb for interuption?

The verb of interruption is interrupt. For example "to interrupt someone or something".