There are following types of interrupt on this basis of timer :
- Level-Triggered Interrupts:
- What it is: In level-triggered interrupts, the presence of an unserviced interrupt is indicated by a continuous high (1) or low (0) level of the interrupt request line.
- How it works: When a device wants to signal an interrupt, it sets the interrupt line to its active level and keeps it there until the interrupt is serviced.
- Example: Imagine a doorbell that keeps ringing until you answer it. The doorbell is like the interrupt signal, and it keeps the line at a certain level until you address the interruption.
- Edge-Triggered Interrupts:
- What it is: Edge-triggered interrupts are signaled by a change in the level of the interrupt line, either from high to low (falling edge) or from low to high (rising edge).
- How it works: When a device wants to signal an interrupt, it sends a quick pulse on the line and then returns the line to its normal state.
- Example: Think of a button press on a keyboard. When you press a key, it sends a brief signal (edge) to the computer, which then responds. It doesn’t keep the signal active like a level-triggered interrupt.
- Hybrid Interrupts:
- What it is: Hybrid interrupts combine aspects of both level-triggered and edge-triggered interrupts.
- How it works: These interrupts not only look for an edge but also ensure that the interrupt signal remains active for a certain period of time.
- Example: Let’s say you have a critical emergency button in a factory. When pressed, it sends a signal (edge), but the system also checks if the signal remains active for a while to ensure it’s not just a quick glitch. This is like a hybrid interrupt, combining edge detection with a duration check.
Discussion
Ask a question, share your thoughts or report an error.
Sign in to participate in the discussion.
Join the discussion