Interrupts in 8085 microprocessor | Types of Interrupts in Computer Organization
Aug 14, 2023
Interrupts in 8085 microprocessor | Types of Interrupts in Computer Organization
👉Subscribe to our new channel: / @varunainashots An interrupt is an external asynchronous input that informs the microprocessor to complete the instruction that is currently executing and fetch a new routine in order to offer service to the I/O device. Once the I/O device is serviced, the microprocessor will continue with the execution of its normal program. ►Daisy Chaining: • Daisy Chaining in Priority Interrupt … ►Parallel priority interrupt: • Parallel priority interrupt | I/O org… ►Computer Architecture (Complete Playlist): • Computer Organization and Architectur… Other subject-wise playlist Links: -------------------------------------------------------------------------------------------------------------------------------------- ►Design and Analysis of algorithms (DAA): • Design and Analysis of algorithms (DAA) ►Database Management System: • DBMS (Database Management system) Com… ► Theory of Computation • TOC(Theory of Computation) ►Artificial Intelligence: • Artificial Intelligence (Complete Pla… ►Computer Networks (Complete Playlist): • Computer Networks (Complete Playlist) ►Operating System: • Operating System (Complete Playlist) ►Structured Query Language (SQL): • Structured Query Language (SQL) ►Discrete Mathematics: • Discrete Mathematics ►Compiler Design: • Compiler Design (Complete Playlist) ►Number System: • Number system ►Cloud Computing \u0026 BIG Data: • Cloud Computing \u0026 BIG Data ►Software Engineering: • Software Engineering ►Data Structure: • Data Structure ►Graph Theory: • Graph Theory ►Programming in C: • C Programming ►Digital Logic: • Digital Logic(Complete Playlist) --------------------------------------------------------------------------------------------------------------------------------------- Our social media Links: ► Subscribe to us on YouTube: / gatesmashers ►Subscribe to our new channel: / @varunainashots ► Like our page on Facebook: https://www.facebook.com/gatesmashers ► Follow us on Instagram: https://www.instagram.com/gate.smashers ► Follow us on Instagram: https://www.instagram.com/varunainashots ► Follow us on Telegram: https://t.me/gatesmashersofficial ► Follow us on Threads: https://www.threads.net/@gate.smashers -------------------------------------------------------------------------------------------------------------------------------------- ►For Any Query, Suggestion or notes contribution: Email us at: [email protected]
Content
0 -> (INTRO)
7 -> Dear students, welcome to Quits measures
9 -> In today's video I am going to explain
11 -> What is interrupt and what are the various types of interrupt
15 -> So see this topic is very simple
17 -> But this topic is very important in your competitive exams
20 -> In college and university exams
22 -> So I will explain it very easily with examples
26 -> So guys like the video quickly and subscribe the channel
29 -> If you haven't done it yet and if you have done it
31 -> Then you can get it subscribed from other devices
34.166 -> Subscribers are very important
35.677 -> So let's start what is the concept of interrupt
39 -> So what is interrupt actually
41 -> Just 5 minutes, I will complete the video in 5 minutes
45 -> This is what the meaning of interrupt
47 -> Means already one thing is going on
49.433 -> Already one process is going on
51 -> But we are stopping that process in between
54 -> We are going on some other process
56 -> That is the meaning of interrupt
58 -> So this is a simple definition
60 -> Many definitions will be available
62 -> The simple definition is that
already you are running a process
65 -> By stopping it, you run some other process
69 -> That is interrupt
70.252 -> So that second process can be a hardware
73 -> It can be a software
75 -> So it needs some attention
77 -> Kind of attention
79 -> So to give it attention, we will stop the running process
82 -> So you can show it like this
84 -> Means I have a process, I am already running it
87 -> The processor is already running it
89 -> While running what happened is that there was an interrupt
91 -> As soon as the interrupt came, I went to interrupt
94 -> Went to interrupt, means to say
96 -> Why was the interrupt occurred, from where it occurred
99 -> And what I have to do with it now
101 -> Obviously I have to fix it too
103 -> Whatever problem it is
105 -> So I have to fix it
107 -> So I will run its service routine
109 -> Means what is the meaning of service routine
111 -> That the program, means I have an interrupt occurred here
114 -> So what I have to do is service routine
117 -> I have to go to interrupt service routine
119 -> Whatever the program, whatever the interrupt
121 -> What I will do with it
123 -> I will handle it
124 -> By handling it, I will come back to my work
128 -> Means I will come back to that process
130 -> And resume it
132 -> This is the simple meaning of interrupt
134 -> So who generates interrupt
135.733 -> We have two ways to generate interrupt
138 -> Hardware and software
140 -> Means hardware can also generate
142 -> And we can also generate through software method
145 -> So what does hardware mean
147 -> If any hardware, means any peripheral device
149 -> Is generating, then that is hardware
152 -> Like you pressed something on the keyboard
154.674 -> So this is an example of hardware interrupt
157 -> You moved it on the mouse, clicked it
159 -> That is what the example of hardware interrupt is
163 -> Let's say you have a system
165 -> System is heated up
166 -> So what will it do when it is heated up
168.542 -> It will turn on the fan
170.567 -> That is what the example of hardware interrupt
173 -> You are working on the laptop
175 -> While working, let's say you or someone
177 -> By mistake, the switch off, switch on button
180 -> The power off button
181 -> Someone pressed it by mistake
183 -> So what happened in that case too
185 -> Interrupted
186 -> So all these are examples of hardware interrupts
189 -> And if we see it a little bit technically
191 -> So let's say if I
193 -> Give example of 8085 microprocessor
196 -> Because it is the most popular
198 -> If we talk about in our B Tech
200 -> So if we talk about 8085
202 -> So we get different pins in it
204 -> Like we get
206 -> There is a trap
207.441 -> RST 7.5 comes
209.821 -> RST 6.5 comes
212.846 -> RST 5.5 comes
214.871 -> Apart from this, INTR
218 -> So what are all these pins
220 -> On top of that, the 40 pin architecture
222 -> So on top of the 40 pin architecture
224 -> We have some pins
225.558 -> TRAP, RST 7.5, 6.5, 5.5
228.691 -> INTR
230 -> What are all these pins
232 -> On top of it
234 -> So whenever anything comes on top of these pins
236 -> When anything comes on top of these pins
238 -> So what is it in a way
240 -> This is an example of hardware interrupt
242 -> So anyone is generated by hardware
244 -> That is the simple meaning of hardware interrupt
247 -> Then comes software interrupt
249 -> So what does software interrupt mean
251 -> That you are generating an interrupt through a software
254.012 -> Rather than hardware
255 -> Like a simple example
257 -> You wrote a program
259 -> Let's say main
261 -> And inside that
263 -> There are many lines
264.459 -> You wrote a line in between
265.681 -> Open and file
267.706 -> Means what you did
269.17 -> You wrote in between
271.195 -> To open a particular file
273.548 -> to open a file
276.458 -> You have to go to that file
278.193 -> And where are the files by default
279.648 -> They are in secondary memory
281.026 -> So your processor is executing your work one by one
285.667 -> So what will happen in this case
287 -> We will tell the process
289 -> Who will get control
291 -> It will go to input output device
293 -> Means you have to go in between the running process
295 -> On secondary memory
297.738 -> There that particular file
299.56 -> Will have to be accessed
301 -> Because you have to open
302.708 -> And let's say there is a close, read, write
304.733 -> All that work is in a way
306.758 -> If I am writing system calls
308.205 -> Then all that is an example of software interrupts
311.726 -> And if we talk technically
313 -> Let's say 8085
315 -> Then all this is there
317 -> But normally if we talk
318.52 -> Then we have RST
321 -> From 0 to RST7
323 -> What are they
324.394 -> Software interrupts
325.994 -> So if you are using this directly
328.019 -> Otherwise sometimes we can write instructions in the program
333 -> In which if we write their hexadecimal code
335 -> If we write their hexadecimal code
337 -> Then what will happen
339 -> Then there will be an interrupt
340.139 -> That will be a software interrupt
341.228 -> So this is hardware, this is software
343.253 -> Write the second point in your notes
345.278 -> That software interrupt is having the higher priority
347.303 -> Than the hardware
349.328 -> So there is more priority than hardware
351.353 -> And if we talk about software interrupt
354.117 -> Like I have written here 8085
357 -> Then trap has the highest priority
359 -> Then 7.5
361 -> Then 6.5, then 5.5
363 -> And the lowest priority is
365 -> INTR, so trap has the highest priority
367 -> Because at one time
369 -> If it will handle one interrupt
371 -> Then who has to do it first
372.543 -> So that is based on its priority
374.963 -> And to handle this also
377 -> There are two methods, daisy chaining method
379 -> And one is for parallel interrupt
381 -> Means if you want to handle parallel
383 -> Or through daisy chaining, serial chaining
385 -> I have already made a video on that
387 -> And its link will be in the suggested video
389 -> In the description box
391 -> So sometimes questions come on that too
393 -> Then vector interrupt
395 -> What is the meaning of vector interrupt
397 -> Let's say we have
399 -> To go to a particular address
401 -> I said that we are already doing some work
403 -> Interrupt happened in between,
so I will handle that interrupt
405.976 -> So what is the meaning of handling this interrupt
408.919 -> Processor will go to a particular address
412.909 -> Run the program, what is this to do
415 -> So what is the meaning of vector
417 -> The simple meaning of vector
419 -> That you have put a program
421 -> On a fixed address
423 -> As soon as the interrupt happened
424.249 -> You go to that address and there
426.274 -> Execute whatever instruction is written
428.444 -> And non-vectored means
430.469 -> That you have no fixed
432.494 -> Address
433.478 -> You will go to a particular location
435.503 -> not like a fixed location
437.853 -> And execute there
439 -> Vector has fixed address
441 -> Non-vectored address is not fixed
443 -> So like your RST
445 -> 7.5, 6.5, 5.5, INTR
447 -> All of these
449 -> Are in a way vector interrupt
451 -> But trap is
453 -> Non-vectored interrupt
455 -> So these small points you should know
457 -> Then maskable
459 -> And non-maskable, this actually comes
461 -> That when the interrupt
463 -> Happened, so obviously we want
465 -> First of all, the processor leaves all the work
467 -> And handle that interrupt
469 -> But what is the difference between
maskable and non-maskable
471 -> Maskable means
473 -> Which the processor can't ignore
475 -> And non-maskable means
477 -> Which we can ignore a little
479 -> Interrupt is there, I will see later
481 -> I am already doing a good work
483 -> A good priority work, so I will see the interrupt later
485.545 -> Like let's say
487 -> You are living in a building, there is a fire
488.659 -> So obviously what will happen in that case
491 -> In that case you want this thing
493 -> Not to be ignored, quickly
495 -> Some remedy or solution is found there
497 -> So that is your one way
499 -> Maskable interrupt
501 -> Like trap is your maskable interrupt
503 -> Means system got heat up
505 -> As soon as the heat up happens,
you want the fan to run
507 -> So that it doesn't happen
509 -> Okay, no problem, I will see
511 -> After a while, no, it shouldn't happen
513 -> So maskable means
515 -> On which we can do
517 -> We can put a mask, what can we put in a way
519 -> We put a mask, means we hide it
521 -> And non-maskable means
523 -> On which we can't put a mask,
means we can't hide it
525 -> Or we can't ignore it
527 -> Write this point
528.374 -> So what can we do with maskable
530.485 -> We can ignore it in a way
532.085 -> And we can't ignore non-maskable
534.11 -> trap comes in non-maskable
537 -> Means we can't ignore it
539 -> This one comes in a way
541 -> Maskable interrupt
543 -> Means you can do it in a simple way
545 -> That high priority interrupt
547 -> High priority, by default
549 -> Will be non-maskable, means we can't ignore it
551 -> Low priority interrupt
553 -> That can be a maskable
555 -> So these small points
556.676 -> for one marks, in your competitive exams
559 -> In interviews, you can ask
561 -> Or in your college university exams
563.025 -> can be asked
564.184 -> So this is your interrupt
565.406 -> In this way, you won't get anything outside
567.695 -> After this, your daisy chaining
569.806 -> Parallel
571 -> Complete that method also
573 -> So that your interrupt portion is completed
575 -> Thank you.
Source: https://www.youtube.com/watch?v=1aG3aFEKxyA