Skip to main content Accessibility help
×
Hostname: page-component-77c89778f8-rkxrd Total loading time: 0 Render date: 2024-07-23T23:18:48.590Z Has data issue: false hasContentIssue false

8 - Interrupts

Published online by Cambridge University Press:  03 February 2010

Get access

Summary

Interrupts are an important capability of modern computers. They allow the processing of several independent tasks by the CPU. On large computers they allow multiuser and time sharing activities. On microprocessors they allow the running of a main program while periodically taking data or sending data to a slow device like a printer. Also computer start up, the keyboard, and TOD functions make use of the interrupt function.

In the discussion which follows, we will first trace the steps taken by the CPU when it receives an Interrupt Request (INTR) from other parts of the computer and then look into the ways we can cause interrupts to be generated and serviced.

Interrupts and the CPU

The interrupt sequence is similar to a jump to a subroutine except that it occurs when signalled by a wire leading to the CPU (INTR). When an interrupt signal is present on the INTR wire and the interrupt enable bit (IF) of the Flag register (see Figure 8.1) is 1, the CPU begins processing the interrupt. The interrupt enable bit is used to prevent the CPU from beginning to process the same interrupt again before it has completed the first one. Without it the computer would go into a continuous regression. The IF bit is set equal to 0 during an interrupt sequence and further interrupts are ignored until this bit is returned to 1. This can be done with the SEI instruction but is done automatically at the return from the interrupt service routine.

Type
Chapter
Information
Publisher: Cambridge University Press
Print publication year: 1990

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Save book to Kindle

To save this book to your Kindle, first ensure coreplatform@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.

Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

Available formats
×

Save book to Dropbox

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.

Available formats
×

Save book to Google Drive

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.

Available formats
×