GoConqr has a new look! Let us know what you think.

Notes

Interrupts

Nathan King Computer Science AS - Level English 1 page

Content of the notes (1)

Page 1

Interrupts

The CPU needs to know when a device needs attention. It does this by sending an interrupt.

An interrupt has a certain priority.

Interrupts can only take processor time from tasks with lower priority.

When an interrupt is raised the operating system runs the relevant interrupt service routine.

At the end of the fetch-decode-execute cycle, the processor checks if there is any interrupts. If there is an interrupt with a higher priority than the current task being carried out then these tasks are carried out:

The contents of the program counter and other registers are copied to a stack

The relevant interrupt service routine is then loaded by changing the program counter to where the ISR starts in memory

When the ISR is complete the previous values are restored from the stack and put in all the registers.

If, while an interrupt is being processed, a new higher priority interrupt is raised, the interrupt currently being processed is added to the stack

Information

Description
AS - Level Computer Science Note on Interrupts, created by Nathan King on 01/06/2016.
Created by
Nathan King
Views
1
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?