Prerequisite – Interrupts in 8085 microprocessor
1. Hardware Interrupt :
Hardware Interrupt is caused by some hardware device such as request to start an I/O, a hardware failure or something similar. Hardware interrupts were introduced as a way to avoid wasting the processor’s valuable time in polling loops, waiting for external events.
For example, when an I/O operation is completed such as reading some data into the computer from a tape drive.
2. Software Interrupt :
Software Interrupt is invoked by the use of INT instruction. This event immediately stops execution of the program and passes execution over to the INT handler. The INT handler is usually a part of the operating system and determines the action to be taken. It occurs when an application program terminates or requests certain services from the operating system.
For example, output to the screen, execute file etc.
Difference between Hardware Interrupt and Software Interrupt :
|SR.NO.||Hardware Interrupt||Software Interrupt|
|1||Hardware interrupt is an interrupt generated from an external device or hardware.||Software interrupt is the interrupt that is generated by any internal system of the computer.|
|2||It do not increment the program counter.||It increment the program counter.|
|3||Hardware interrupt can be invoked with some external device such as request to start an I/O or occurrence of a hardware failure.||Software interrupt can be invoked with the help of INT instruction.|
|4||It has lowest priority than software interrupts||It has highest priority among all interrupts.|
|5||Hardware interrupt is triggered by external hardware and is considered one of the ways to communicate with the outside peripherals, hardware.||Software interrupt is triggered by software and considered one of the ways to communicate with kernel or to trigger system calls, especially during error or exception handling.|
|6||It is an asynchronous event.||It is synchronous event.|
|7||Hardware interrupts can be classified into two types they are: 1. Maskable Interrupt. 2. Non Maskable Interrupt.||Software interrupts can be classified into two types they are: 1. Normal Interrupts. 2. Exception|
|8||Keystroke depressions and mouse movements are examples of hardware interrupt.||All system calls are examples of software interrupts|
Don’t stop now and take your learning to the next level. Learn all the important concepts of Data Structures and Algorithms with the help of the most trusted course: DSA Self Paced. Become industry ready at a student-friendly price.
- Difference between Interrupt and Polling
- Difference between Programmed and Interrupt Initiated I/O
- I/O Interface (Interrupt and DMA Mode)
- Purpose of an Interrupt in Computer Organization
- Difference between Maskable and Non Maskable Interrupt
- Difference between Hardware and Software
- Hardware Protection and Type of Hardware Protection
- Difference between Free Software and Open Source Software
- Difference between System Software and Application Software
- Is There Any Difference Between Software Developer And Software Engineer?
- Difference between Packaged Software and Custom Software
- Difference between Generic Software Development and Custom Software Development
- User View Vs Hardware View Vs System View of Operating System
- Difference between Traditional and Agile Software Development
- Difference Between Data Science and Software Engineering
- Difference between Application Software and Operating System
- Difference between Software Engineering process and Conventional Engineering Processs
- Difference between Good Design and Bad Design in Software Engineering
- Difference between Software Testing and Embedded Testing
- Difference between DTE and DCE
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.