Engineering Funda explains the differences between software and hardware interrupts in the 8085 microprocessor, covering invocation, priority, triggering, vector addresses, and disabling.
Key Takeaways
- Software interrupts are invoked by executing RST instructions and all share equal priority.
- Hardware interrupts arrive via dedicated pins with a defined priority order, led by TRAP.
- Vector addresses are fixed for RST instructions and most hardware interrupts, except INTR which depends on an external device.
- Only TRAP among the hardware interrupts cannot be disabled, while DI disables the maskable ones.
What the video covers
- Introduces the 8085 microprocessor interrupt series and distinguishes software interrupts from hardware interrupts.
- Hardware interrupts arrive on dedicated pins (INTR, TRAP, RST 5.5, RST 6.5, RST 7.5), each tied to a defined memory location for its service routine.
- Software interrupts are the eight RST 0 to RST 7 instructions, invoked by executing the instruction within the program.
- Software interrupts all have equal priority because the 8085 executes only one instruction at a time.
- Hardware interrupts have priority order: TRAP highest, then RST 7.5, RST 6.5, RST 5.5, and INTR lowest.
- Software interrupts are triggered by instruction execution, while hardware interrupts are triggered by signal transitions (edge-triggered or level-triggered).
- All software interrupts can be disabled with the DI instruction, while among hardware interrupts only TRAP cannot be disabled.
- All software interrupts are vectored, transferring control to fixed addresses (RST 0 at 0000H, RST 1 at 0008H, ... RST 7 at 0038H).
- Hardware vector addresses include TRAP at 0024H, RST 5.5 at 002CH, RST 6.5 at 0034H, and RST 7.5 at 003CH; INTR has no fixed vector and requires an externally supplied instruction.
- The lecture concludes with a promise of further videos covering each hardware interrupt in detail and the full 8085 interrupt structure.
Chapters
- 00:00Introduction to 8085 Interrupts
- 00:34How Hardware Interrupts Work
- 01:46How Software Interrupts Work
- 03:11Interrupt Pins and RST Instructions
- 03:51Priority Comparison
- 04:35Triggering Methods: Edge vs Level
- 05:50Disabling Interrupts
- 06:30Vector Addresses and Calculations
- 08:44INTR Line and Closing Remarks
Full Transcript — Download SRT & Markdown
Speaker A
welcome to engineering fender family this video is a part of microprocessor 8085 video lecture series and in this video i'll be going to explain you software and hardware interrupt in microprocessor 8085 my dear students before i explain you
Speaker A
the comparison of software and hardware interrupt i would like to explain you the basic meaning which is there with software and hardware interrupt see when we talk about hardware interrupt then you just consider this is microprocessor 8085 and in that these are the four pins
Speaker A
which is receiving hardware interrupt now whenever external device is giving interrupt at the time with each of this pin there is well defined memory location and whatever interrupt is getting triggered that will go to interrupt service routine over
Speaker A
here inside microprocessor 8085 so that is a case which is happening with hardware interrupt in which each hardware pin is having well defined memory location but when we talk about software interrupt at that time you see we are
Speaker A
having microprocessor over here and let us say at this pin software interrupt is coming from external device so what will happen now whenever microprocessor is receiving interrupt from external device microprocessor will give interrupt acknowledgement to that device and whenever interrupt acknowledgement
Speaker A
that is given to that device at a time that device will give instruction to this microprocessor and whatever instruction that is received by this microprocessor based on that instruction microprocessor will transfer it controls to that service routine so
Speaker A
intra interrupts are given by external devices only but in hardware interrupt all the pins are having well defined memory location for that service of interrupt but when it comes to software interrupt at a time interrupt will come from
Speaker A
hardware but here instruction of transfer of control that will be also given by that hardware so that is how it is different right now my dear students let us try to understand all those things step by step so that will get more clear in terms of
Speaker A
comparison so when we talk about software interrupt so that is invoked by microprocessor 8085 how it is invoked by microprocessor 8085 once microprocessor 8085 receives instruction and when it executes that instruction at that time interrupt service will get provided and here
Speaker A
hardware interrupt that is invoked by external hardware how whenever external hardware is providing interrupt at a time pin will directly transfer control to the interrupt service as all the hardware pin are having well defined memory location i'll explain you
Speaker A
even how those memory locations are there when it comes to software interrupt then microprocessor 8085 is having total eight interrupt instructions those instructions are rst 0 to rst7 and with hardware interrupt there are total five pins available with eight zero
Speaker A
eight five intr rst 5.5 rst 6.5 rst 7.5 and trap when it comes to priority then in software interrupt all interrupts are having equal priority why the reason is eight zero eight five can execute only one instruction at the same
Speaker A
time so rst 0 or rst 1 or rst 2 or rst 7 can be executed it cannot have execution at the same time right so all are having equal priority but in hardware interrupt it is possible that multiple interrupt may occur at the
Speaker A
same time then highest priority that is given to trap after that priority is there with rst 7.5 then rst 6.5 rst 5.5 and lowest priority that is assigned to intr line so that is how priority is defined with hardware
Speaker A
interrupt and with software interrupt my dear students when we talk about triggering then with software interrupt interrupt is getting triggered by instruction execution right but in hardware interrupt you will be observing that triggering will happen with respect to signal
Speaker A
and that signal may be age trigger signal or it may be labeled trigger signal you see age trigger means whenever signal goes from low to high so low to high transition that is referred as age trigger signal but when it goes from low to high but
Speaker A
triggering will happen when it stays high that is referred as level trigger signal i'll explain you that in detail when i explain you hardware interrupt now when we talk about disabling of interrupt so at that time you should
Speaker A
know my dear students we can disable all software interrupt by di instruction as well as there are many other ways by which we can disable interrupt that we will discuss in interop 8085 main block diagram now when we talk about disabling of
Speaker A
hardware interrupt then other than trap can be disabled now let us talk about how locations are there with interrupts so all instructions which are there with software interrupt those are vectored vectored means all the instructions will transfer control of program to the
Speaker A
well-defined memory locations so that's why all software interrupts are vectored interrupts and with hardware interrupt my dear students you should know that other than i and tr are having vectored address and let us see what are those locations even
Speaker A
so when we talk about rst 0 to rst 7 then you see we have well defined memory location with each instruction execution as if you execute rst 0 program control will get transferred to 0 zero zero zero hex
Speaker A
memory location when you execute rst one program control will get transferred to zero zero zero eight hacks likewise addresses are there and you can easily remember this address is e1 you see rst 0 is having 0 0 0 0 then you will have
Speaker A
to add 8 so rst 1 is having 0 0 0 8 hex then if you add 8 then rs 2 2 address will be there that is double 0 1 0 in hacks you will have to do this addition remember this and you can
Speaker A
have rst 7 with address 0 0 3 8 as per the addition in sequence by 8.
Speaker A
now when we talk about vector address of this hardware interrupt then this trap is having address that is 0 0 2 4 hacks now how to remember this see initially trap was named as rst 4.5 and rst 4.5
Speaker A
means if you multiply 8 with 4.5 then what will be the value 4.5 multiplied by 8 that will be 36 and 36 in terms of hex that will be 24 hex now you see rst 7.5 6.5 and 5.5 that is
Speaker A
having these addresses how to remember this so you don't need to remember direct data 7.5 multiply by 8 whatever data comes in terms of hex it will be 3c so that is how you can have 6.5 address that is three four you just do that
Speaker A
i am just giving it to you in practice six point five multiply by eight in terms of hex it will be three four and five point five into eight that will be in terms of 2c with hexadecimal system an intr
Speaker A
that is not having any vector address that we obtain from external device so with this intr line on the this software instructions those are getting executed right but in terms of hardware we receive interrupt from this terminal but service
Speaker A
will be provided by this software instructions so my dear students hardware interrupts are phi only in microprocessor 8085 and how to execute that for that also i have already explained you the basic steps right now in next video i'll be going to
Speaker A
explain you all the hardware interrupt with complete details so that after that i can explain you complete interrupt structure of eight five and after watching this three four videos you will be having hundred percent idea about how microprocessor
Speaker A
interrupts are there i hope you have understood this still if any confusion is there just post that in comment box i'll be happy to help you thank you so much for watching this video
Topics:8085 microprocessorsoftware interrupthardware interruptRST instructionsTRAPINTRinterrupt priorityvectored interruptedge triggeredlevel triggered











