Test Your EQ (Engineering Quotient)

EQ #41

Given a microprocessor that has hardware support for just one level of priority for interrupts, what is the basic scheme for implementing software interrupt priorities? Answer In normal operation, all of the interrupt sources are enabled, along with the processor's global interrupt mask. When an interrupt occurs, the global interrupt mask is disabled and the "master" ISR is entered. This code must (quickly) determine which interrupt occurred, disable that interrupt and all lower-priority interrupts at their sources, and then reenable the global interrupt mask before jumping to the ISR for that interrupt. This can often be facilitated by precomputing a table of interrupt masks for each priority level.
Become a Member or Log In to read the rest of this content.

Supporting Companies

Upcoming Events

Copyright © KCK Media Corp.
All Rights Reserved

Copyright © 2023 KCK Media Corp.

EQ #41

by Circuit Cellar Staff time to read: <1 min