Gate Smashers explains interrupts in computer organization: what they are, hardware vs software interrupts, 8085 interrupt pins, priorities, vectored vs non-vectored, and maskable vs non-maskable.
Key Takeaways
- An interrupt pauses the current process so an urgent event can be serviced via an ISR, then execution resumes.
- Interrupts originate from hardware (peripherals) or software (program instructions/system calls).
- On the 8085, TRAP is the highest-priority, non-maskable, non-vectored interrupt, while INTR is the lowest priority.
- Vectored vs non-vectored and maskable vs non-maskable are key distinctions for competitive and university exams.
What the video covers
- Defines an interrupt as temporarily stopping a running process to handle another, more urgent request (hardware or software).
- Explains the interrupt handling flow: identify the cause, run the Interrupt Service Routine (ISR), then resume the interrupted process.
- Hardware interrupts are generated by peripheral devices, e.g. keyboard presses, mouse clicks, overheating triggering a fan, or the power button.
- On the 8085 microprocessor, hardware interrupt pins include TRAP, RST 7.5, RST 6.5, RST 5.5 and INTR.
- Software interrupts are generated by program instructions such as system calls (open, read, write, close) or RST 0-7 instructions.
- Software interrupts are said to have higher priority than hardware interrupts in the video's presentation.
- Among 8085 hardware interrupts, TRAP has the highest priority and INTR the lowest.
- Interrupt handling can use daisy chaining (serial) or parallel methods to resolve priority among multiple interrupts.
- Vectored interrupts jump to a fixed address for their ISR, while non-vectored interrupts do not have a fixed address; on the 8085, TRAP is described as non-vectored.
- Maskable interrupts can be ignored or disabled by the processor, while non-maskable interrupts cannot be ignored; TRAP is the non-maskable example given.
Chapters
- 00:00Introduction and Purpose of the Video
- 00:49What Is an Interrupt?
- 01:34Interrupt Service Routine and Handling Flow
- 02:14Sources of Interrupts: Hardware vs Software
- 03:00Hardware Interrupts on the 8085 Microprocessor
- 04:38Software Interrupts and System Calls
- 05:31Interrupt Priority and Handling Methods
- 06:53Vectored vs Non-Vectored Interrupts
- 07:47Maskable vs Non-Maskable Interrupts
Full Transcript — Download SRT & Markdown
Speaker A
(INTRO) Dear students, welcome to Quits measures In today's video I am going to explain What is interrupt and what are the various types of interrupt So see this topic is very simple But this topic is very important in your competitive exams
Speaker A
In college and university exams So I will explain it very easily with examples So guys like the video quickly and subscribe the channel If you haven't done it yet and if you have done it Then you can get it subscribed from other devices
Speaker A
Subscribers are very important So let's start what is the concept of interrupt So what is interrupt actually Just 5 minutes, I will complete the video in 5 minutes This is what the meaning of interrupt Means already one thing is going on
Speaker A
Already one process is going on But we are stopping that process in between We are going on some other process That is the meaning of interrupt So this is a simple definition Many definitions will be available The simple definition is that already you are running a process
Speaker A
By stopping it, you run some other process That is interrupt So that second process can be a hardware It can be a software So it needs some attention Kind of attention So to give it attention, we will stop the running process
Speaker A
So you can show it like this Means I have a process, I am already running it The processor is already running it While running what happened is that there was an interrupt As soon as the interrupt came, I went to interrupt
Speaker A
Went to interrupt, means to say Why was the interrupt occurred, from where it occurred And what I have to do with it now Obviously I have to fix it too Whatever problem it is So I have to fix it
Speaker A
So I will run its service routine Means what is the meaning of service routine That the program, means I have an interrupt occurred here So what I have to do is service routine I have to go to interrupt service routine
Speaker A
Whatever the program, whatever the interrupt What I will do with it I will handle it By handling it, I will come back to my work Means I will come back to that process And resume it This is the simple meaning of interrupt
Speaker A
So who generates interrupt We have two ways to generate interrupt Hardware and software Means hardware can also generate And we can also generate through software method So what does hardware mean If any hardware, means any peripheral device Is generating, then that is hardware
Speaker A
Like you pressed something on the keyboard So this is an example of hardware interrupt You moved it on the mouse, clicked it That is what the example of hardware interrupt is Let's say you have a system System is heated up
Speaker A
So what will it do when it is heated up It will turn on the fan That is what the example of hardware interrupt You are working on the laptop While working, let's say you or someone By mistake, the switch off, switch on button
Speaker A
The power off button Someone pressed it by mistake So what happened in that case too Interrupted So all these are examples of hardware interrupts And if we see it a little bit technically So let's say if I Give example of 8085 microprocessor
Speaker A
Because it is the most popular If we talk about in our B Tech So if we talk about 8085 So we get different pins in it Like we get There is a trap RST 7.5 comes RST 6.5 comes
Speaker A
RST 5.5 comes Apart from this, INTR So what are all these pins On top of that, the 40 pin architecture So on top of the 40 pin architecture We have some pins TRAP, RST 7.5, 6.5, 5.5 INTR What are all these pins
Speaker A
On top of it So whenever anything comes on top of these pins When anything comes on top of these pins So what is it in a way This is an example of hardware interrupt So anyone is generated by hardware
Speaker A
That is the simple meaning of hardware interrupt Then comes software interrupt So what does software interrupt mean That you are generating an interrupt through a software Rather than hardware Like a simple example You wrote a program Let's say main
Speaker A
And inside that There are many lines You wrote a line in between Open and file Means what you did You wrote in between To open a particular file to open a file You have to go to that file
Speaker A
And where are the files by default They are in secondary memory So your processor is executing your work one by one So what will happen in this case We will tell the process Who will get control It will go to input output device
Speaker A
Means you have to go in between the running process On secondary memory There that particular file Will have to be accessed Because you have to open And let's say there is a close, read, write All that work is in a way
Speaker A
If I am writing system calls Then all that is an example of software interrupts And if we talk technically Let's say 8085 Then all this is there But normally if we talk Then we have RST From 0 to RST7
Speaker A
What are they Software interrupts So if you are using this directly Otherwise sometimes we can write instructions in the program In which if we write their hexadecimal code If we write their hexadecimal code Then what will happen Then there will be an interrupt
Speaker A
That will be a software interrupt So this is hardware, this is software Write the second point in your notes That software interrupt is having the higher priority Than the hardware So there is more priority than hardware And if we talk about software interrupt
Speaker A
Like I have written here 8085 Then trap has the highest priority Then 7.5 Then 6.5, then 5.5 And the lowest priority is INTR, so trap has the highest priority Because at one time If it will handle one interrupt
Speaker A
Then who has to do it first So that is based on its priority And to handle this also There are two methods, daisy chaining method And one is for parallel interrupt Means if you want to handle parallel Or through daisy chaining, serial chaining
Speaker A
I have already made a video on that And its link will be in the suggested video In the description box So sometimes questions come on that too Then vector interrupt What is the meaning of vector interrupt Let's say we have
Speaker A
To go to a particular address I said that we are already doing some work Interrupt happened in between, so I will handle that interrupt So what is the meaning of handling this interrupt Processor will go to a particular address
Speaker A
Run the program, what is this to do So what is the meaning of vector The simple meaning of vector That you have put a program On a fixed address As soon as the interrupt happened You go to that address and there
Speaker A
Execute whatever instruction is written And non-vectored means That you have no fixed Address You will go to a particular location not like a fixed location And execute there Vector has fixed address Non-vectored address is not fixed So like your RST
Speaker A
7.5, 6.5, 5.5, INTR All of these Are in a way vector interrupt But trap is Non-vectored interrupt So these small points you should know Then maskable And non-maskable, this actually comes That when the interrupt Happened, so obviously we want
Speaker A
First of all, the processor leaves all the work And handle that interrupt But what is the difference between maskable and non-maskable Maskable means Which the processor can't ignore And non-maskable means Which we can ignore a little Interrupt is there, I will see later
Speaker A
I am already doing a good work A good priority work, so I will see the interrupt later Like let's say You are living in a building, there is a fire So obviously what will happen in that case In that case you want this thing
Speaker A
Not to be ignored, quickly Some remedy or solution is found there So that is your one way Maskable interrupt Like trap is your maskable interrupt Means system got heat up As soon as the heat up happens, you want the fan to run
Speaker A
So that it doesn't happen Okay, no problem, I will see After a while, no, it shouldn't happen So maskable means On which we can do We can put a mask, what can we put in a way We put a mask, means we hide it
Speaker A
And non-maskable means On which we can't put a mask, means we can't hide it Or we can't ignore it Write this point So what can we do with maskable We can ignore it in a way And we can't ignore non-maskable
Speaker A
trap comes in non-maskable Means we can't ignore it This one comes in a way Maskable interrupt Means you can do it in a simple way That high priority interrupt High priority, by default Will be non-maskable, means we can't ignore it
Speaker A
Low priority interrupt That can be a maskable So these small points for one marks, in your competitive exams In interviews, you can ask Or in your college university exams can be asked So this is your interrupt In this way, you won't get anything outside
Speaker A
After this, your daisy chaining Parallel Complete that method also So that your interrupt portion is completed Thank you.
Topics:interruptcomputer organization8085 microprocessorhardware interruptsoftware interruptmaskable interruptvectored interruptinterrupt priorityISRTRAP RST 7.5











