SlideShare a Scribd company logo
1 of 36
Download to read offline
Interrupts of 8085 Microprocessor
Dr. Nilesh Bhaskarrao Bahadure
https://www.sites.google.com/site/nileshbbahadure/home
July 26, 2021
Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 1 / 36
Overview I
1 Syllabus
2 Introduction to Interrupts
Introduction to Interrupts
What happen when interrupt is occurs
3 Interrupt Vs Polling
4 Classification of Interrupts
Hardware Interrupts of 8085
Software Interrupts of 8085
Maskable Interrupts of Microprocessor 8085
Non - Maskable Interrupts of Microprocessor 8085
Vectored Interrupts of Microprocessor 8085
Non - Vectored Interrupts of Microprocessor 8085
5 8085 Microprocessor Interrupt Structure
Interrupt Structure of Microprocessor 8085
6 SIM Instruction
Example on SIM Instruction
Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 2 / 36
Overview II
7 Non - Vectored Interrupt
Restart sequence
8 Pending Interrupts
RIM Instruction
9 Multiple Interrupts
10 Thank You
Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 3 / 36
Outline of Interrupts
Main Slide
Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 4 / 36
Introduction to Interrupts
Interrupt is a process where an external device can get the attention of the
microprocessor.
1. The process starts from the I/O device
2. The process is asynchronous.
An interrupt is considered to be an emergency signal that may be serviced.
The Microprocessor may respond to it as soon as possible.
Interrupt is signals send by an external device to the processor, to request
the processor to perform a particular task or work. Mainly in the
microprocessor based system the interrupts are used for data transfer
between the peripheral and the microprocessor. The processor will check
the interrupts always at the 2nd T-state of last machine cycle. If there is
any interrupt it accept the interrupt and send the INTA (active low) signal
to the peripheral
Main Slide
Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 5 / 36
What happen when interrupt is occurs
1 When the Microprocessor receives an interrupt signal, it suspends the
currently executing program and jumps to an Interrupt Service
Routine (ISR) to respond to the incoming interrupt.
2 Each interrupt will most probably have its own ISR.
Main Slide
Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 6 / 36
What happen when interrupt is occurs...
Figure : Interrupt Process
Main Slide
Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 7 / 36
Interrupt Vs Polling
A single microprocessor can serve several devices. There are two ways to
do that: Interrupts and polling.
Interrupts:
In the interrupt method, whenever any device needs its service, the device
notifies the microprocessor by sending an interrupt signal, upon receiving
an interrupt signal, the microprocessor interrupts whatever it is doing and
serve the device. The program associated with the interrupt is called the
interrupt service routine (ISR) or interrupt handler.
Main Slide
Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 8 / 36
Interrupt Vs Polling...
Polling:
In polling, the microprocessor continuously monitors the status of a several
devices, when the status condition is met, it perform the service, after that,
it moves on to monitor the next device until each one is serviced. Although
polling can monitors the status of several devices and serve each of them
as certain conditions are met, it is not an efficient use of microprocessor.
Main Slide
Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 9 / 36
Interrupt Vs Polling...
Figure : Polling method to access several devices
Main Slide
Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 10 / 36
Classification of Interrupts
Interrupts are mainly classified into different types as follows:
1 Hardware interrupts
2 Software interrupts
3 Maskable interrupts
4 Non - maskable interrupts
5 Vectored interrupts
6 Non - vectored interrupts
Main Slide
Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 11 / 36
Hardware Interrupts of 8085
An external device initiates the hardware interrupts and placing an appropri-
ate signal at the interrupt pin of the processor. If the interrupt is accepted
then the processor executes an interrupt service routine.
The 8085 has five hardware interrupts
TRAP RST 7.5 RST 6.5 RST 5.5 INTR
Main Slide
Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 12 / 36
Software Interrupts of 8085
The software interrupts are program instructions. These instructions are
inserted at desired locations in a program. Software interrupt are special
instructions supported by microprocessor. After executing of these instruc-
tions microprocessor completes the execution of the current machine cycle
or current operation and then transfers the program control to the subrou-
tine program. Upon completion of the execution of the subroutine program,
program control returns back to the main program from where the micro-
processor has left previously.
The 8085 has eight software interrupts from RST 0 to RST 7. The vector
address for software interrupt RST0 to RST7 can be calculated as follows
Interrupt number * 8 = vector location address
Main Slide
Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 13 / 36
Maskable Interrupts of Microprocessor 8085
Maskable interrupts are enabled and disabled under program control. By
setting or resetting particular flip flop in the microprocessor, interrupts can
be masked or unmasked respectively. When masked, microprocessor does
not respond to the interrupt even through the interrupt is activated.
Main Slide
Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 14 / 36
Non - Maskable Interrupts of Microprocessor 8085
In the microprocessor those interrupt which can be masked under software
control are called maskable interrupt whereas the interrupt which cannot
be masked under software control are called unmaskable or non maskable
interrupt. These types of interrupt are specially used in the emergency
shutoff.
Main Slide
Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 15 / 36
Non - Maskable Interrupts of Microprocessor 8085
Figure : Representation of Maskable and Non - Maskable Interrupts
Main Slide
Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 16 / 36
Vectored Interrupts of Microprocessor 8085
When interrupt signal is activated, the internal control circuit of micropro-
cessor produces a CALL to a predetermined memory location. This memory
location, where the subroutine i.e. interrupts service routine (ISR) starts is
referred to as vector location and such interrupts are called vectored inter-
rupts.
Main Slide
Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 17 / 36
Non - Vectored Interrupts of Microprocessor 8085
In response to the interrupt signal, the interrupt service routine address is not
defined by CALL or not produced CALL by microprocessor internally then
it is referred as non vectored interrupt. In this type of interrupt, interrupt
service routine address is generate using external hardware circuitry (buffer,
decoder or encoder etc).
Main Slide
Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 18 / 36
Interrupt Structure of Microprocessor 8085
Figure : Interrupt Structure of Microprocessor 8085
Main Slide
Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 19 / 36
Interrupt Structure of Microprocessor 8085...
Interrupt
Name
Maskable Masking
Method
Vectored Vector
location
Memory Triggering
Method
Priority
INTR
Yes
DI/EI
No – No
Level
Sensi-
tive
5 (Lowest)
RST
5.5
Yes
DI/EI
SIM
Yes
002Ch
No
Level
Sensi-
tive
4
RST
6.5
Yes
DI/EI
SIM
Yes
0034h
No
Level
Sensi-
tive
3
RST
7.5
Yes
DI/EI
SIM
Yes
003Ch
Yes
Edge
Sensi-
tive
2
TRAP
No
None
Yes
0024h
No Level
Edge
Sensi-
tive
1 (Highest)
Table : hardware Interrupts of Microprocessor 8085
Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 20 / 36
SIM Instruction
Figure : SIM Instruction
Main Slide
Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 21 / 36
Example - 1
Example - 1
Set the interrupt masks so that RST5.5 is enabled, RST6.5 is masked, and
RST7.5 is enabled.
Solution
EI ; Enable interrupts including INTR
MVI A, 0Ah ; Prepare the mask to enable RST 7.5, and 5.5, disable 6.5
SIM ; Apply the settings RST masks
Main Slide
Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 22 / 36
Non - Vectored Interrupt I
Example
Explain non-vectored interrupt. Also explain how to generate vector
location for non-vectored interrupt
1 The interrupt process should be enabled using the EI instruction.
2 The 8085 checks for an interrupt during the execution of every
instruction.
3 If INTR is high, MP completes current instruction, disables the
interrupt and sends INTA (Interrupt acknowledge) signal to the device
that interrupted .
4 INTA allows the I/O device to send a RST instruction through data
bus.
Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 23 / 36
Non - Vectored Interrupt II
5 Upon receiving the INTA signal, MP saves the memory location of
the next instruction on the stack and the program is transferred to
call location (ISR Call) specified by the RST instruction.
6 Microprocessor Performs the ISR.
7 ISR must include the EI instruction to enable the further interrupt
within the program.
8 RET instruction at the end of the ISR allows the MP to retrieve the
return address from the stack and the program is transferred back to
where the program was interrupted.
9 Although INTR is a maskable interrupt, it does NOT need SIM to get
enabled.
Just instruction EI is enough.
The 8085 recognizes 8 RESTART instructions: RST0 - RST7.
Each of these would send the execution to a predetermined hard-wired
memory location:
Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 24 / 36
Non - Vectored Interrupt III
Restart instruction Equivalent to
RST 0 CALL 0000H
RST 1 CALL 0008H
RST 2 CALL 0010H
RST 3 CALL 0018H
RST 4 CALL 0020H
RST 5 CALL 0028H
RST 6 CALL 0030H
RST 7 CALL 0038H
Main Slide
Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 25 / 36
Restart Sequence
1 The restart sequence is made up of three machine cycles
2 In the 1st machine cycle:The Microprocessor sends the INTA signal.
3 While INTA is active the microprocessor reads the data lines
expecting to receive, from the interrupting device, the opcode for the
specific RST instruction.
4 In the 2nd and 3rd machine cycles:the 16-bit address of the next
instruction is saved on the stack.
5 Then the microprocessor jumps to the address associated with the
specified RST instruction.
6 There are 8 different RST instructions.
7 Each RST instruction tells the processor to go to a specific memory
address (call location fixed)
Main Slide
Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 26 / 36
Restart Sequence...
Reading the RST 5 instruction
The above example is for generating RST 5:
RST 5’s opcode is EF =11101111 Main Slide
Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 27 / 36
Restart Sequence...
During the interrupt acknowledge machine cycle, (the 1st machine cycle of
the RST operation):
1 The Microprocessor activates the INTA signal.
2 This signal will enable the Tri-state buffers, which will place the value
EFH on the data bus.
3 Therefore, sending the Microprocessor the RST 5 instruction.
The RST 5 instruction is exactly equivalent to CALL 0028H
Main Slide
Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 28 / 36
Pending Interrupts
1 Since the 8085 has five interrupt lines, interrupts may occur during an
ISR and remain pending.
2 Using the RIM instruction, it is possible to can read the status of the
interrupt lines and find if there are any pending interrupts
Main Slide
Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 29 / 36
RIM Instruction
Load the accumulator with an 8-bit pattern showing the status of each
interrupt pin and mask.
Main Slide
Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 30 / 36
RIM Instruction...
Main Slide
Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 31 / 36
RIM Instruction...
1 Bits 0-2 show the current setting of the mask for each of RST 7.5,
RST 6.5 and RST 5.5 .They return the contents of the three mask
flip flops.
2 Bit 3 shows whether the maskable interrupt process is enabled or not.
It can be used by a program to determine whether or not interrupts
are enabled.
3 Bits 4-6 show whether or not there are pending interrupts on RST
7.5, RST 6.5, and RST 5.5 .
4 Bit 7 is used for Serial Data Input.
The RIM instruction reads the value of the SID pin on the
microprocessor and returns it in this bit.
Main Slide
Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 32 / 36
Multiple Interrupts
1 Microprocessor can be interrupted again before the completion of the
ISR.
2 As soon as the 1st interrupt arrives, all maskable interrupts are
disabled.
3 They will only be enabled after the execution of the EI instruction.
4 If the EI instruction is placed early in the ISR, other interrupt may
occur before the ISR is done.
Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 33 / 36
Multiple Interrupts...
There are 8 different RST Instructions
Multiple interrupts coming from 8 different external devices
Main Slide
Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 34 / 36
Multiple Interrupts...
1 How do MPU allow multiple devices to interrupt using the INTR line?
2 The microprocessor can only respond to one signal on INTR at a time.
3 Therefore, we must allow the signal from only one of the devices to
reach the microprocessor.
4 We must assign some priority to the different devices and allow their
signals to reach the microprocessor according to the priority.
Main Slide
Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 35 / 36
Thank you
Please send your feedback at nbahadure@gmail.com
For more details and updates kindly visit
https://sites.google.com/site/nileshbbahadure/home
Main Slide
Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 36 / 36

More Related Content

What's hot

Interrupts of 8085
Interrupts of 8085Interrupts of 8085
Interrupts of 8085ShivamSood22
 
Stack in 8085 microprocessor
Stack in 8085 microprocessorStack in 8085 microprocessor
Stack in 8085 microprocessorhepzijustin
 
Signal descriptors of 8086
Signal descriptors of 8086Signal descriptors of 8086
Signal descriptors of 8086aviban
 
Microprocessor 8085 complete
Microprocessor 8085 completeMicroprocessor 8085 complete
Microprocessor 8085 completeShubham Singh
 
Instruction set of 8086
Instruction set of 8086Instruction set of 8086
Instruction set of 80869840596838
 
Logical and shift micro operations
Logical and shift micro operationsLogical and shift micro operations
Logical and shift micro operationsSanjeev Patel
 
Instruction sets of 8086
Instruction sets of 8086Instruction sets of 8086
Instruction sets of 8086Mahalakshmiv11
 
SHIFT REGISTERS
SHIFT REGISTERSSHIFT REGISTERS
SHIFT REGISTERSkumari36
 
State transition diagram 8085
State transition diagram 8085State transition diagram 8085
State transition diagram 8085ShivamSood22
 
Microprocessor 8085 Chapter 3
Microprocessor 8085 Chapter 3Microprocessor 8085 Chapter 3
Microprocessor 8085 Chapter 3Rishikesh Bhavsar
 
flag register of 8086
flag register of 8086flag register of 8086
flag register of 8086asrithak
 
Presentation on 8086 Microprocessor
Presentation  on   8086 MicroprocessorPresentation  on   8086 Microprocessor
Presentation on 8086 MicroprocessorNahian Ahmed
 
Minimum mode and Maximum mode Configuration in 8086
Minimum mode and Maximum mode Configuration in 8086Minimum mode and Maximum mode Configuration in 8086
Minimum mode and Maximum mode Configuration in 8086Jismy .K.Jose
 
Addressing Modes of 8085 Microprocessor
Addressing Modes of 8085 MicroprocessorAddressing Modes of 8085 Microprocessor
Addressing Modes of 8085 MicroprocessorDnyaneshwar Beedkar
 

What's hot (20)

Interrupts of 8085
Interrupts of 8085Interrupts of 8085
Interrupts of 8085
 
Stack in 8085 microprocessor
Stack in 8085 microprocessorStack in 8085 microprocessor
Stack in 8085 microprocessor
 
Signal descriptors of 8086
Signal descriptors of 8086Signal descriptors of 8086
Signal descriptors of 8086
 
Microprocessor 8085 complete
Microprocessor 8085 completeMicroprocessor 8085 complete
Microprocessor 8085 complete
 
Instruction set of 8086
Instruction set of 8086Instruction set of 8086
Instruction set of 8086
 
Logical and shift micro operations
Logical and shift micro operationsLogical and shift micro operations
Logical and shift micro operations
 
Instruction sets of 8086
Instruction sets of 8086Instruction sets of 8086
Instruction sets of 8086
 
Interrupts of 8086
Interrupts of 8086Interrupts of 8086
Interrupts of 8086
 
8155 PPI
8155 PPI8155 PPI
8155 PPI
 
SHIFT REGISTERS
SHIFT REGISTERSSHIFT REGISTERS
SHIFT REGISTERS
 
Interrupts
InterruptsInterrupts
Interrupts
 
State transition diagram 8085
State transition diagram 8085State transition diagram 8085
State transition diagram 8085
 
4 bit Binary to Gray converter using XOR
4 bit Binary to Gray converter using XOR4 bit Binary to Gray converter using XOR
4 bit Binary to Gray converter using XOR
 
Verilog hdl
Verilog hdlVerilog hdl
Verilog hdl
 
Microprocessor 8085 Chapter 3
Microprocessor 8085 Chapter 3Microprocessor 8085 Chapter 3
Microprocessor 8085 Chapter 3
 
Instruction formats-in-8086
Instruction formats-in-8086Instruction formats-in-8086
Instruction formats-in-8086
 
flag register of 8086
flag register of 8086flag register of 8086
flag register of 8086
 
Presentation on 8086 Microprocessor
Presentation  on   8086 MicroprocessorPresentation  on   8086 Microprocessor
Presentation on 8086 Microprocessor
 
Minimum mode and Maximum mode Configuration in 8086
Minimum mode and Maximum mode Configuration in 8086Minimum mode and Maximum mode Configuration in 8086
Minimum mode and Maximum mode Configuration in 8086
 
Addressing Modes of 8085 Microprocessor
Addressing Modes of 8085 MicroprocessorAddressing Modes of 8085 Microprocessor
Addressing Modes of 8085 Microprocessor
 

Similar to Interrupts of microprocessor 8085

Types of Interrupts with details Mi ppt
Types of Interrupts with details Mi pptTypes of Interrupts with details Mi ppt
Types of Interrupts with details Mi pptsanjaytron
 
Interrupt11
Interrupt11Interrupt11
Interrupt11Aisu
 
8085 interrupts
8085 interrupts8085 interrupts
8085 interruptsIsha Negi
 
8085 interrupts
8085 interrupts8085 interrupts
8085 interruptsIsha Negi
 
1206 Interrupts Of 8085
1206 Interrupts Of 80851206 Interrupts Of 8085
1206 Interrupts Of 8085techbed
 
Microcontrollers and Embedded system notes.pdf
Microcontrollers and Embedded system notes.pdfMicrocontrollers and Embedded system notes.pdf
Microcontrollers and Embedded system notes.pdfhelixmanglalina820
 
Chapter 4 - Interrupts of 8085
Chapter 4 - Interrupts of 8085Chapter 4 - Interrupts of 8085
Chapter 4 - Interrupts of 8085Bisrat Girma
 
Unit 5_interrupt programming_Part 1
Unit 5_interrupt programming_Part 1Unit 5_interrupt programming_Part 1
Unit 5_interrupt programming_Part 1KanchanPatil34
 
Microprocessor and-interfacing-techbymak
Microprocessor and-interfacing-techbymakMicroprocessor and-interfacing-techbymak
Microprocessor and-interfacing-techbymakAkshay Makadiya
 
NIE2206 Electronic LogbookNamexxxStudent IDUxxxTe.docx
NIE2206 Electronic LogbookNamexxxStudent IDUxxxTe.docxNIE2206 Electronic LogbookNamexxxStudent IDUxxxTe.docx
NIE2206 Electronic LogbookNamexxxStudent IDUxxxTe.docxcurwenmichaela
 
Interactive irrigation system through mobile with ivr response
Interactive irrigation system through mobile with ivr responseInteractive irrigation system through mobile with ivr response
Interactive irrigation system through mobile with ivr responseeSAT Journals
 

Similar to Interrupts of microprocessor 8085 (20)

Interrupts of microcontroller 8051
Interrupts of microcontroller 8051Interrupts of microcontroller 8051
Interrupts of microcontroller 8051
 
Types of Interrupts with details Mi ppt
Types of Interrupts with details Mi pptTypes of Interrupts with details Mi ppt
Types of Interrupts with details Mi ppt
 
8085 interrupts
8085 interrupts8085 interrupts
8085 interrupts
 
Interrupt
InterruptInterrupt
Interrupt
 
Interrupt11
Interrupt11Interrupt11
Interrupt11
 
Interrupts
InterruptsInterrupts
Interrupts
 
interrupts.ppt
interrupts.pptinterrupts.ppt
interrupts.ppt
 
8085 interrupts
8085 interrupts8085 interrupts
8085 interrupts
 
8085 interrupts
8085 interrupts8085 interrupts
8085 interrupts
 
1206 Interrupts Of 8085
1206 Interrupts Of 80851206 Interrupts Of 8085
1206 Interrupts Of 8085
 
Microcontrollers and Embedded system notes.pdf
Microcontrollers and Embedded system notes.pdfMicrocontrollers and Embedded system notes.pdf
Microcontrollers and Embedded system notes.pdf
 
EE6502 Microprocessor and Microcontroller
EE6502   Microprocessor and MicrocontrollerEE6502   Microprocessor and Microcontroller
EE6502 Microprocessor and Microcontroller
 
Mod3
Mod3Mod3
Mod3
 
Chapter 4 - Interrupts of 8085
Chapter 4 - Interrupts of 8085Chapter 4 - Interrupts of 8085
Chapter 4 - Interrupts of 8085
 
Micro unit 8
Micro unit 8Micro unit 8
Micro unit 8
 
Unit 5_interrupt programming_Part 1
Unit 5_interrupt programming_Part 1Unit 5_interrupt programming_Part 1
Unit 5_interrupt programming_Part 1
 
Microprocessor and-interfacing-techbymak
Microprocessor and-interfacing-techbymakMicroprocessor and-interfacing-techbymak
Microprocessor and-interfacing-techbymak
 
Coa INTERUPT
Coa INTERUPTCoa INTERUPT
Coa INTERUPT
 
NIE2206 Electronic LogbookNamexxxStudent IDUxxxTe.docx
NIE2206 Electronic LogbookNamexxxStudent IDUxxxTe.docxNIE2206 Electronic LogbookNamexxxStudent IDUxxxTe.docx
NIE2206 Electronic LogbookNamexxxStudent IDUxxxTe.docx
 
Interactive irrigation system through mobile with ivr response
Interactive irrigation system through mobile with ivr responseInteractive irrigation system through mobile with ivr response
Interactive irrigation system through mobile with ivr response
 

More from Nilesh Bhaskarrao Bahadure

Microcontroller 8051 instruction set and assemble directives
Microcontroller 8051 instruction set and assemble directivesMicrocontroller 8051 instruction set and assemble directives
Microcontroller 8051 instruction set and assemble directivesNilesh Bhaskarrao Bahadure
 
Question Bank linear integrated circuits and applications
Question Bank linear integrated circuits and applicationsQuestion Bank linear integrated circuits and applications
Question Bank linear integrated circuits and applicationsNilesh Bhaskarrao Bahadure
 

More from Nilesh Bhaskarrao Bahadure (20)

Biomedical Signal Origin and Dynamics
Biomedical Signal Origin and DynamicsBiomedical Signal Origin and Dynamics
Biomedical Signal Origin and Dynamics
 
Introduction to Medical Image Processing
Introduction to Medical Image ProcessingIntroduction to Medical Image Processing
Introduction to Medical Image Processing
 
Timing diagram of microprocessor 8085
Timing diagram of microprocessor 8085Timing diagram of microprocessor 8085
Timing diagram of microprocessor 8085
 
Timers and counters of microcontroller 8051
Timers and counters of microcontroller 8051Timers and counters of microcontroller 8051
Timers and counters of microcontroller 8051
 
Serial communication of microcontroller 8051
Serial communication of microcontroller 8051Serial communication of microcontroller 8051
Serial communication of microcontroller 8051
 
Peripherals of Microprocessor 8085
Peripherals of Microprocessor 8085Peripherals of Microprocessor 8085
Peripherals of Microprocessor 8085
 
Microprocessor 8085 Basics
Microprocessor 8085 BasicsMicroprocessor 8085 Basics
Microprocessor 8085 Basics
 
Microcontroller 8051 instruction set and assemble directives
Microcontroller 8051 instruction set and assemble directivesMicrocontroller 8051 instruction set and assemble directives
Microcontroller 8051 instruction set and assemble directives
 
Microcontroller 8051 basics (part I)
Microcontroller 8051 basics (part I)Microcontroller 8051 basics (part I)
Microcontroller 8051 basics (part I)
 
Memory interfacing of microprocessor 8085
Memory interfacing of microprocessor 8085Memory interfacing of microprocessor 8085
Memory interfacing of microprocessor 8085
 
Memory interfacing of microcontroller 8051
Memory interfacing of microcontroller 8051Memory interfacing of microcontroller 8051
Memory interfacing of microcontroller 8051
 
Instruction sets of microprocessor 8085
Instruction sets of microprocessor 8085Instruction sets of microprocessor 8085
Instruction sets of microprocessor 8085
 
Embedded Systems
Embedded Systems Embedded Systems
Embedded Systems
 
Basic Electronics Semiconductor Diodes
Basic Electronics Semiconductor DiodesBasic Electronics Semiconductor Diodes
Basic Electronics Semiconductor Diodes
 
Basic Electronics Electrical Transducers
Basic Electronics Electrical TransducersBasic Electronics Electrical Transducers
Basic Electronics Electrical Transducers
 
Basic Electronics BJT
Basic Electronics BJTBasic Electronics BJT
Basic Electronics BJT
 
Applications of Microcontroller 8051
Applications of Microcontroller 8051Applications of Microcontroller 8051
Applications of Microcontroller 8051
 
Question Bank Programmable Logic Controller
Question Bank Programmable Logic ControllerQuestion Bank Programmable Logic Controller
Question Bank Programmable Logic Controller
 
Question Bank Microprocessor 8085
Question Bank Microprocessor 8085Question Bank Microprocessor 8085
Question Bank Microprocessor 8085
 
Question Bank linear integrated circuits and applications
Question Bank linear integrated circuits and applicationsQuestion Bank linear integrated circuits and applications
Question Bank linear integrated circuits and applications
 

Recently uploaded

Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfJiananWang21
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VDineshKumar4165
 
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLManishPatel169454
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdfSuman Jyoti
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlysanyuktamishra911
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueBhangaleSonal
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...tanu pandey
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdfKamal Acharya
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTbhaskargani46
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Bookingroncy bisnoi
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdfKamal Acharya
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 

Recently uploaded (20)

Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
 

Interrupts of microprocessor 8085

  • 1. Interrupts of 8085 Microprocessor Dr. Nilesh Bhaskarrao Bahadure https://www.sites.google.com/site/nileshbbahadure/home July 26, 2021 Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 1 / 36
  • 2. Overview I 1 Syllabus 2 Introduction to Interrupts Introduction to Interrupts What happen when interrupt is occurs 3 Interrupt Vs Polling 4 Classification of Interrupts Hardware Interrupts of 8085 Software Interrupts of 8085 Maskable Interrupts of Microprocessor 8085 Non - Maskable Interrupts of Microprocessor 8085 Vectored Interrupts of Microprocessor 8085 Non - Vectored Interrupts of Microprocessor 8085 5 8085 Microprocessor Interrupt Structure Interrupt Structure of Microprocessor 8085 6 SIM Instruction Example on SIM Instruction Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 2 / 36
  • 3. Overview II 7 Non - Vectored Interrupt Restart sequence 8 Pending Interrupts RIM Instruction 9 Multiple Interrupts 10 Thank You Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 3 / 36
  • 4. Outline of Interrupts Main Slide Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 4 / 36
  • 5. Introduction to Interrupts Interrupt is a process where an external device can get the attention of the microprocessor. 1. The process starts from the I/O device 2. The process is asynchronous. An interrupt is considered to be an emergency signal that may be serviced. The Microprocessor may respond to it as soon as possible. Interrupt is signals send by an external device to the processor, to request the processor to perform a particular task or work. Mainly in the microprocessor based system the interrupts are used for data transfer between the peripheral and the microprocessor. The processor will check the interrupts always at the 2nd T-state of last machine cycle. If there is any interrupt it accept the interrupt and send the INTA (active low) signal to the peripheral Main Slide Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 5 / 36
  • 6. What happen when interrupt is occurs 1 When the Microprocessor receives an interrupt signal, it suspends the currently executing program and jumps to an Interrupt Service Routine (ISR) to respond to the incoming interrupt. 2 Each interrupt will most probably have its own ISR. Main Slide Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 6 / 36
  • 7. What happen when interrupt is occurs... Figure : Interrupt Process Main Slide Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 7 / 36
  • 8. Interrupt Vs Polling A single microprocessor can serve several devices. There are two ways to do that: Interrupts and polling. Interrupts: In the interrupt method, whenever any device needs its service, the device notifies the microprocessor by sending an interrupt signal, upon receiving an interrupt signal, the microprocessor interrupts whatever it is doing and serve the device. The program associated with the interrupt is called the interrupt service routine (ISR) or interrupt handler. Main Slide Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 8 / 36
  • 9. Interrupt Vs Polling... Polling: In polling, the microprocessor continuously monitors the status of a several devices, when the status condition is met, it perform the service, after that, it moves on to monitor the next device until each one is serviced. Although polling can monitors the status of several devices and serve each of them as certain conditions are met, it is not an efficient use of microprocessor. Main Slide Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 9 / 36
  • 10. Interrupt Vs Polling... Figure : Polling method to access several devices Main Slide Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 10 / 36
  • 11. Classification of Interrupts Interrupts are mainly classified into different types as follows: 1 Hardware interrupts 2 Software interrupts 3 Maskable interrupts 4 Non - maskable interrupts 5 Vectored interrupts 6 Non - vectored interrupts Main Slide Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 11 / 36
  • 12. Hardware Interrupts of 8085 An external device initiates the hardware interrupts and placing an appropri- ate signal at the interrupt pin of the processor. If the interrupt is accepted then the processor executes an interrupt service routine. The 8085 has five hardware interrupts TRAP RST 7.5 RST 6.5 RST 5.5 INTR Main Slide Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 12 / 36
  • 13. Software Interrupts of 8085 The software interrupts are program instructions. These instructions are inserted at desired locations in a program. Software interrupt are special instructions supported by microprocessor. After executing of these instruc- tions microprocessor completes the execution of the current machine cycle or current operation and then transfers the program control to the subrou- tine program. Upon completion of the execution of the subroutine program, program control returns back to the main program from where the micro- processor has left previously. The 8085 has eight software interrupts from RST 0 to RST 7. The vector address for software interrupt RST0 to RST7 can be calculated as follows Interrupt number * 8 = vector location address Main Slide Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 13 / 36
  • 14. Maskable Interrupts of Microprocessor 8085 Maskable interrupts are enabled and disabled under program control. By setting or resetting particular flip flop in the microprocessor, interrupts can be masked or unmasked respectively. When masked, microprocessor does not respond to the interrupt even through the interrupt is activated. Main Slide Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 14 / 36
  • 15. Non - Maskable Interrupts of Microprocessor 8085 In the microprocessor those interrupt which can be masked under software control are called maskable interrupt whereas the interrupt which cannot be masked under software control are called unmaskable or non maskable interrupt. These types of interrupt are specially used in the emergency shutoff. Main Slide Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 15 / 36
  • 16. Non - Maskable Interrupts of Microprocessor 8085 Figure : Representation of Maskable and Non - Maskable Interrupts Main Slide Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 16 / 36
  • 17. Vectored Interrupts of Microprocessor 8085 When interrupt signal is activated, the internal control circuit of micropro- cessor produces a CALL to a predetermined memory location. This memory location, where the subroutine i.e. interrupts service routine (ISR) starts is referred to as vector location and such interrupts are called vectored inter- rupts. Main Slide Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 17 / 36
  • 18. Non - Vectored Interrupts of Microprocessor 8085 In response to the interrupt signal, the interrupt service routine address is not defined by CALL or not produced CALL by microprocessor internally then it is referred as non vectored interrupt. In this type of interrupt, interrupt service routine address is generate using external hardware circuitry (buffer, decoder or encoder etc). Main Slide Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 18 / 36
  • 19. Interrupt Structure of Microprocessor 8085 Figure : Interrupt Structure of Microprocessor 8085 Main Slide Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 19 / 36
  • 20. Interrupt Structure of Microprocessor 8085... Interrupt Name Maskable Masking Method Vectored Vector location Memory Triggering Method Priority INTR Yes DI/EI No – No Level Sensi- tive 5 (Lowest) RST 5.5 Yes DI/EI SIM Yes 002Ch No Level Sensi- tive 4 RST 6.5 Yes DI/EI SIM Yes 0034h No Level Sensi- tive 3 RST 7.5 Yes DI/EI SIM Yes 003Ch Yes Edge Sensi- tive 2 TRAP No None Yes 0024h No Level Edge Sensi- tive 1 (Highest) Table : hardware Interrupts of Microprocessor 8085 Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 20 / 36
  • 21. SIM Instruction Figure : SIM Instruction Main Slide Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 21 / 36
  • 22. Example - 1 Example - 1 Set the interrupt masks so that RST5.5 is enabled, RST6.5 is masked, and RST7.5 is enabled. Solution EI ; Enable interrupts including INTR MVI A, 0Ah ; Prepare the mask to enable RST 7.5, and 5.5, disable 6.5 SIM ; Apply the settings RST masks Main Slide Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 22 / 36
  • 23. Non - Vectored Interrupt I Example Explain non-vectored interrupt. Also explain how to generate vector location for non-vectored interrupt 1 The interrupt process should be enabled using the EI instruction. 2 The 8085 checks for an interrupt during the execution of every instruction. 3 If INTR is high, MP completes current instruction, disables the interrupt and sends INTA (Interrupt acknowledge) signal to the device that interrupted . 4 INTA allows the I/O device to send a RST instruction through data bus. Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 23 / 36
  • 24. Non - Vectored Interrupt II 5 Upon receiving the INTA signal, MP saves the memory location of the next instruction on the stack and the program is transferred to call location (ISR Call) specified by the RST instruction. 6 Microprocessor Performs the ISR. 7 ISR must include the EI instruction to enable the further interrupt within the program. 8 RET instruction at the end of the ISR allows the MP to retrieve the return address from the stack and the program is transferred back to where the program was interrupted. 9 Although INTR is a maskable interrupt, it does NOT need SIM to get enabled. Just instruction EI is enough. The 8085 recognizes 8 RESTART instructions: RST0 - RST7. Each of these would send the execution to a predetermined hard-wired memory location: Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 24 / 36
  • 25. Non - Vectored Interrupt III Restart instruction Equivalent to RST 0 CALL 0000H RST 1 CALL 0008H RST 2 CALL 0010H RST 3 CALL 0018H RST 4 CALL 0020H RST 5 CALL 0028H RST 6 CALL 0030H RST 7 CALL 0038H Main Slide Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 25 / 36
  • 26. Restart Sequence 1 The restart sequence is made up of three machine cycles 2 In the 1st machine cycle:The Microprocessor sends the INTA signal. 3 While INTA is active the microprocessor reads the data lines expecting to receive, from the interrupting device, the opcode for the specific RST instruction. 4 In the 2nd and 3rd machine cycles:the 16-bit address of the next instruction is saved on the stack. 5 Then the microprocessor jumps to the address associated with the specified RST instruction. 6 There are 8 different RST instructions. 7 Each RST instruction tells the processor to go to a specific memory address (call location fixed) Main Slide Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 26 / 36
  • 27. Restart Sequence... Reading the RST 5 instruction The above example is for generating RST 5: RST 5’s opcode is EF =11101111 Main Slide Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 27 / 36
  • 28. Restart Sequence... During the interrupt acknowledge machine cycle, (the 1st machine cycle of the RST operation): 1 The Microprocessor activates the INTA signal. 2 This signal will enable the Tri-state buffers, which will place the value EFH on the data bus. 3 Therefore, sending the Microprocessor the RST 5 instruction. The RST 5 instruction is exactly equivalent to CALL 0028H Main Slide Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 28 / 36
  • 29. Pending Interrupts 1 Since the 8085 has five interrupt lines, interrupts may occur during an ISR and remain pending. 2 Using the RIM instruction, it is possible to can read the status of the interrupt lines and find if there are any pending interrupts Main Slide Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 29 / 36
  • 30. RIM Instruction Load the accumulator with an 8-bit pattern showing the status of each interrupt pin and mask. Main Slide Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 30 / 36
  • 31. RIM Instruction... Main Slide Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 31 / 36
  • 32. RIM Instruction... 1 Bits 0-2 show the current setting of the mask for each of RST 7.5, RST 6.5 and RST 5.5 .They return the contents of the three mask flip flops. 2 Bit 3 shows whether the maskable interrupt process is enabled or not. It can be used by a program to determine whether or not interrupts are enabled. 3 Bits 4-6 show whether or not there are pending interrupts on RST 7.5, RST 6.5, and RST 5.5 . 4 Bit 7 is used for Serial Data Input. The RIM instruction reads the value of the SID pin on the microprocessor and returns it in this bit. Main Slide Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 32 / 36
  • 33. Multiple Interrupts 1 Microprocessor can be interrupted again before the completion of the ISR. 2 As soon as the 1st interrupt arrives, all maskable interrupts are disabled. 3 They will only be enabled after the execution of the EI instruction. 4 If the EI instruction is placed early in the ISR, other interrupt may occur before the ISR is done. Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 33 / 36
  • 34. Multiple Interrupts... There are 8 different RST Instructions Multiple interrupts coming from 8 different external devices Main Slide Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 34 / 36
  • 35. Multiple Interrupts... 1 How do MPU allow multiple devices to interrupt using the INTR line? 2 The microprocessor can only respond to one signal on INTR at a time. 3 Therefore, we must allow the signal from only one of the devices to reach the microprocessor. 4 We must assign some priority to the different devices and allow their signals to reach the microprocessor according to the priority. Main Slide Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 35 / 36
  • 36. Thank you Please send your feedback at nbahadure@gmail.com For more details and updates kindly visit https://sites.google.com/site/nileshbbahadure/home Main Slide Dr. Nilesh Bhaskarrao Bahadure () Unit - IV (Part - I) July 26, 2021 36 / 36