Professional Documents
Culture Documents
Interrupts: Temas Selectos de Electrónica
Interrupts: Temas Selectos de Electrónica
Definition
Exceptions that will stop CPU's current task in order to attend the interrupting event. Exceptions are events that require processing outside the normal flow of instruction execution.
Interrupt Types
Maskable(I, X*):
HW interrupts
Non-Maskable:
SW interrupts
Security Exceptions:
Reset Watchdog Illegal OPcode Each exception has an associated 16-bit vector, which points to the memory location where the routine that handles the exception is located.
Interrupt Priority
A hardware priority hierarchy determines which reset or interrupt is serviced first when simultaneous requests are made. Six sources are non-maskable. The remaining sources are maskable, and the device integration module typically can change the relative priorities of maskable interrupts
Priority decoder
The priority decoder evaluates all interrupts pending and determines their validity and priority. When the CPU requests an interrupt vector, the decoder will provide the vector for the highest priority interrupt request. There are 2 decoding configurations:
Daisy chain Parallel priority
Exception Priority
The priority (from highest to lowest) and address of all exception vectors issued by the INT upon request by the CPU is shown in Table 4-1.
The I Maskable interrupt sources have default priorities that follow the address order of the interrupt vectors. The higher the vector address, the higher the priority of the interrupt. Typically, a device integration module incorporates logic that can give any one maskable source priority over other maskable sources.