Embedded System Module 1
Embedded System Module 1
(ECE3040)
Recognizing an interrupt
The start of the whole process is the recognition of an interrupt. Internal
interrupts are normally defined by the manufacturer and are already hardwired.
External interrupts, however, are not and can use a variety of mechanisms.
Edge triggered
With the edge triggered interrupt, it is the clock edge that is used to generate
the interrupt. The transition can either be from a logical high to low or vice
versa.
Level triggered
With a level triggered interrupt, the trigger is dependent on the logic level.
Maintaining the interrupt
So far, the recognition of an interrupt has concentrated on simply asserting
the interrupt pin. This implies that provided the minimum conditions have
been met, the interrupt source can be removed. Many microprocessor
manufacturers recommend that this is not done and that the interrupt
should be maintained until it has been explicitly serviced and the source told
to remove it.
Internal queuing
The first interrupt would be recognized and, until it is serviced, all other
interrupts generated using the pin are ignored. This is one reason why many
processors insist on the maintain until serviced approach with interrupts. Any
subsequent interrupts that have the same level will be maintained after the
first one has been serviced and its signal removed. When the exception
processing is completed, the remaining interrupts will be recognized and
processed one by one until they are all serviced.