SlideShare a Scribd company logo
1 of 17
Download to read offline
Prof. Nitin Ahire 1
Microprocessor & Microcontroller - I
T.E Sem V (Rev)
Prof. Nitin Ahire
XIE, Mahim
Prof. Nitin Ahire 2
Connection of I/O devices.
Polling method
Interrupt method
Prof. Nitin Ahire 3
Interrupt system of 8085
Definition: “It is a mechanism by which an
I/O device ( Hardware interrupt) or an
instruction (software interrupt) can suspend
the normal execution of the processor and
get it self serviced.”
Prof. Nitin Ahire 4
Types of interrupt
1) Hardware interrupt
2) Software interrupt
Prof. Nitin Ahire 5
Hardware interrupt
Interrupt : “It is an external asynchronous
input that inform the ‘up’ to complete the
instruction that it is currently executing and
fetch a new routine in order to offer a service
to that I/O devices. Once the I/O device is
serviced, the ‘up’ will continue with execution
of its normal program.”
Prof. Nitin Ahire 6
Hardware interrupt
8085 has ‘5’ hardware interrupt
1)Trap
2)RST 7.5
3)RST 6.5
4)RST 5.5
5)INTR
Prof. Nitin Ahire 7
Types of Hardware interrupt
NMI( non maskable)
1) It can’t be masked or
made pending
2) Highest priority
3) This interrupt disable
all maskable interrupts
4) Used for emergency
purpose like power
failure, smoke detector
e.g. TRAP
Maskable
1) It can be masked or made
pending
2) Lower priority
3) These interrupt dose not
disable non maskable
interrupt
4) Used to interface
peripherals.
e.g. RST 7.5
Prof. Nitin Ahire 8
Hardware Interrupt
Priority interrupt ISR address trigger
1 TRAP 0024h edge +level
2 RST 7.5 003Ch edge
3 RST 6.5 0034h level
4 RST 5.5 002Ch level
5 INTR No specific level
location
Prof. Nitin Ahire 9
Software interrupt
8085 has ‘8’ software interrupt
1)RST0
2)RST1
3)RST2
4)RST3
5)RST4
6)RST5
7)RST6
8)RST7
Prof. Nitin Ahire 10
Software interrupt
These instruction ( RST0-RST7) allow the
‘up’ to transfer the program control from main
program to the subroutine program (i.e. ISR)
ISR: interrupt service routing
Prof. Nitin Ahire 11
Software interrupt
Interrupt Restart locations
RST 0 0 X 8 = 0000h
RST 1 1 X 8 = 0008h
RST 2 2 x 8 = 0010h
RST 3 3 X 8 = 0018h
RST 4 4 X 8 = 0020h
RST 5 5 X 8 = 0028h
RST 6 6 X 8 = 0030h
RST 7 7 X 8 = 0038h
Prof. Nitin Ahire 12
Software interrupt / hardware interrupt
Software interrupt
1)It is as synchronous event
2)This interrupt is requested
by executing instruction
3)PC is incremented
4)The priority is highest
5)It can’t be ignored
6)It is not used to interface the
peripheral
Used in debugging
Hardware interrupt
1)It is an asynchronous event
2)This interrupt is requested
by external device
3)PC is not incremented
4)The priority is lower than
softer interrupt
5)Can be masked
6)It is used to interface
peripheral devices
Prof. Nitin Ahire 13
Interrupt related instructions
1) EI : it is used to enable the all maskable
interrupt. It required 1-byte, one MC (4T). It
does not affect on TRAP
2) DI : it is used to disable all maskable
interrupt. 1-byte (4T). It does not affect on
TRAP
Prof. Nitin Ahire 14
Interrupt related instructions
SIM : (set interrupt mask)
1-byte (4T) state.
Used to enable or disable RST 7.5, RST 6.5,
RST 5.5 interrupts.
It does not affect on TRAP & INTR .
It is used in serial data transmission
It also transfer serial data bit ‘D7’of ‘A’ to the
SOD pin
Hence the CWR format must be load in the ‘A’
before execution of SIM instruction.
Prof. Nitin Ahire 15
SIM (bit pattern)
SOD pin
D7= SOD
D6= serial data enable 1=enable, 0=disable
D5= Don’t care
D4= Reset R7.5 F/F, 1=Reset 0=no effect
D3=MSE Mask set enable 1=D2,D1,D0 bit are effective
0=D2,D1,D0 bit are ignored
D2= M’7.5 Mask RST 7.5 1= Mask or disable R7.5
0= Enable RST 7.5
D1=M’6.5 Mask RST 6.5 1= Mask or disable R6.5
0= Enable RST 6.5
D0=M’5.5 Mask RST 5.5 1= Mask or disable R5.5
0= Enable RST 5.5
SOD SDE M’ 6.5M’ 7.5MSER 7.5X M’ 5.5
Prof. Nitin Ahire 16
Interrupt related instructions
RIM : ( read interrupt mask)
1-byte (4T) state.
It gives the status of the pending maskable interrupt
(RST 7.5 – RST 5.5)
It does not affect on TRAP & INTR
It can also transfer the contents of the serial input data
on the SID pin into the accumulator (‘D7’ bit.)
Hence after execution of this instruction serial data get
load in to the accumulator
Prof. Nitin Ahire 17
RIM (bit pattern)
SID pin
D7= SID
D6=
D5= if 1 respective interrupt is pending
D4= 0 respective interrupt is not pending
D3=IE interrupt enable
D2=
D1= if 1 respective interrupt is Masked
D0= 0 respective interrupt is unmasked
SID I 7.5 M 6.5M 7.5IEI 5.5I 6.5 M 5.5

More Related Content

What's hot

8086 memory interface.pptx
8086 memory interface.pptx8086 memory interface.pptx
8086 memory interface.pptx
HebaEng
 
Interrupt11
Interrupt11Interrupt11
Interrupt11
Aisu
 
8237 dma controller
8237 dma controller8237 dma controller
8237 dma controller
Tech_MX
 

What's hot (20)

Introduction to 8085 Microprocessor
Introduction to 8085 MicroprocessorIntroduction to 8085 Microprocessor
Introduction to 8085 Microprocessor
 
Instruction set of 8085
Instruction set of 8085Instruction set of 8085
Instruction set of 8085
 
Addressing modes 8085
Addressing modes 8085Addressing modes 8085
Addressing modes 8085
 
Memory & I/O interfacing
Memory & I/O  interfacingMemory & I/O  interfacing
Memory & I/O interfacing
 
Interrupts in 8051
Interrupts in 8051Interrupts in 8051
Interrupts in 8051
 
INTEL 80386 MICROPROCESSOR
INTEL  80386  MICROPROCESSORINTEL  80386  MICROPROCESSOR
INTEL 80386 MICROPROCESSOR
 
Interrupts and types of interrupts
Interrupts and types of interruptsInterrupts and types of interrupts
Interrupts and types of interrupts
 
8086 memory interface.pptx
8086 memory interface.pptx8086 memory interface.pptx
8086 memory interface.pptx
 
Interrupts
InterruptsInterrupts
Interrupts
 
Stack in 8085 microprocessor
Stack in 8085 microprocessorStack in 8085 microprocessor
Stack in 8085 microprocessor
 
Ch12 microprocessor interrupts
Ch12 microprocessor interruptsCh12 microprocessor interrupts
Ch12 microprocessor interrupts
 
Interrupts
InterruptsInterrupts
Interrupts
 
8259 a
8259 a8259 a
8259 a
 
Interrupt11
Interrupt11Interrupt11
Interrupt11
 
Interrupts of microprocessor 8085
Interrupts of microprocessor  8085Interrupts of microprocessor  8085
Interrupts of microprocessor 8085
 
8085 Microprocessor
8085 Microprocessor8085 Microprocessor
8085 Microprocessor
 
8237 dma controller
8237 dma controller8237 dma controller
8237 dma controller
 
80386 processor
80386 processor80386 processor
80386 processor
 
8257 DMA Controller
8257 DMA Controller8257 DMA Controller
8257 DMA Controller
 
8 interrupt 8051
8 interrupt 80518 interrupt 8051
8 interrupt 8051
 

Similar to Interrupt of 8085

8085 interrupts
8085 interrupts8085 interrupts
8085 interrupts
Isha Negi
 
8085 interrupts
8085 interrupts8085 interrupts
8085 interrupts
Isha Negi
 

Similar to Interrupt of 8085 (20)

interrupts.ppt
interrupts.pptinterrupts.ppt
interrupts.ppt
 
Interrupt
InterruptInterrupt
Interrupt
 
Interruptsof8085
Interruptsof8085Interruptsof8085
Interruptsof8085
 
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 8085
Interrupt 8085Interrupt 8085
Interrupt 8085
 
Timing n interrupt.pptx
Timing n interrupt.pptxTiming n interrupt.pptx
Timing n interrupt.pptx
 
Chapter 4 - Interrupts of 8085
Chapter 4 - Interrupts of 8085Chapter 4 - Interrupts of 8085
Chapter 4 - Interrupts of 8085
 
Introduction to Interrupts of 8085 microprocessor
Introduction to Interrupts of 8085 microprocessorIntroduction to Interrupts of 8085 microprocessor
Introduction to Interrupts of 8085 microprocessor
 
Presentation on Intel 8085 processor
Presentation on Intel 8085 processorPresentation on Intel 8085 processor
Presentation on Intel 8085 processor
 
21. interrupts
21. interrupts21. interrupts
21. interrupts
 
Microprocessor Part 4
Microprocessor    Part 4Microprocessor    Part 4
Microprocessor Part 4
 
Microprocessor Architecture 4
Microprocessor Architecture  4Microprocessor Architecture  4
Microprocessor Architecture 4
 
8085 interrupts
8085 interrupts8085 interrupts
8085 interrupts
 
8085 interrupts
8085 interrupts8085 interrupts
8085 interrupts
 
Interrupts of 8086
Interrupts of 8086Interrupts of 8086
Interrupts of 8086
 
Interrupts
InterruptsInterrupts
Interrupts
 
1206 Interrupts Of 8085
1206 Interrupts Of 80851206 Interrupts Of 8085
1206 Interrupts Of 8085
 
B sc e5.2 mp unit 3 interfacing
B sc e5.2 mp unit 3 interfacingB sc e5.2 mp unit 3 interfacing
B sc e5.2 mp unit 3 interfacing
 
Detailed Explanation of Pin Description of 8085 microprocessor
Detailed Explanation of Pin Description of  8085 microprocessorDetailed Explanation of Pin Description of  8085 microprocessor
Detailed Explanation of Pin Description of 8085 microprocessor
 

More from Nitin Ahire (10)

Microprocessor 8086 8087_nitin ahire
Microprocessor 8086 8087_nitin ahireMicroprocessor 8086 8087_nitin ahire
Microprocessor 8086 8087_nitin ahire
 
8051 Microcontroller
8051 Microcontroller8051 Microcontroller
8051 Microcontroller
 
8085 ppi 8255 and 8155
8085 ppi 8255 and 81558085 ppi 8255 and 8155
8085 ppi 8255 and 8155
 
Microprocessor
MicroprocessorMicroprocessor
Microprocessor
 
Addressing mode of 8051
Addressing mode of 8051Addressing mode of 8051
Addressing mode of 8051
 
8051 singed number concept [compatibility mode]
8051 singed  number concept [compatibility mode]8051 singed  number concept [compatibility mode]
8051 singed number concept [compatibility mode]
 
8051 micro controllers Instruction set
8051 micro controllers Instruction set 8051 micro controllers Instruction set
8051 micro controllers Instruction set
 
8051 (microcontroller)class1
8051 (microcontroller)class18051 (microcontroller)class1
8051 (microcontroller)class1
 
Serial communication in 8085
Serial communication in 8085Serial communication in 8085
Serial communication in 8085
 
Interfacing of io device to 8085
Interfacing of io device to 8085Interfacing of io device to 8085
Interfacing of io device to 8085
 

Recently uploaded

Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
MateoGardella
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
SanaAli374401
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 

Recently uploaded (20)

Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 

Interrupt of 8085

  • 1. Prof. Nitin Ahire 1 Microprocessor & Microcontroller - I T.E Sem V (Rev) Prof. Nitin Ahire XIE, Mahim
  • 2. Prof. Nitin Ahire 2 Connection of I/O devices. Polling method Interrupt method
  • 3. Prof. Nitin Ahire 3 Interrupt system of 8085 Definition: “It is a mechanism by which an I/O device ( Hardware interrupt) or an instruction (software interrupt) can suspend the normal execution of the processor and get it self serviced.”
  • 4. Prof. Nitin Ahire 4 Types of interrupt 1) Hardware interrupt 2) Software interrupt
  • 5. Prof. Nitin Ahire 5 Hardware interrupt Interrupt : “It is an external asynchronous input that inform the ‘up’ to complete the instruction that it is currently executing and fetch a new routine in order to offer a service to that I/O devices. Once the I/O device is serviced, the ‘up’ will continue with execution of its normal program.”
  • 6. Prof. Nitin Ahire 6 Hardware interrupt 8085 has ‘5’ hardware interrupt 1)Trap 2)RST 7.5 3)RST 6.5 4)RST 5.5 5)INTR
  • 7. Prof. Nitin Ahire 7 Types of Hardware interrupt NMI( non maskable) 1) It can’t be masked or made pending 2) Highest priority 3) This interrupt disable all maskable interrupts 4) Used for emergency purpose like power failure, smoke detector e.g. TRAP Maskable 1) It can be masked or made pending 2) Lower priority 3) These interrupt dose not disable non maskable interrupt 4) Used to interface peripherals. e.g. RST 7.5
  • 8. Prof. Nitin Ahire 8 Hardware Interrupt Priority interrupt ISR address trigger 1 TRAP 0024h edge +level 2 RST 7.5 003Ch edge 3 RST 6.5 0034h level 4 RST 5.5 002Ch level 5 INTR No specific level location
  • 9. Prof. Nitin Ahire 9 Software interrupt 8085 has ‘8’ software interrupt 1)RST0 2)RST1 3)RST2 4)RST3 5)RST4 6)RST5 7)RST6 8)RST7
  • 10. Prof. Nitin Ahire 10 Software interrupt These instruction ( RST0-RST7) allow the ‘up’ to transfer the program control from main program to the subroutine program (i.e. ISR) ISR: interrupt service routing
  • 11. Prof. Nitin Ahire 11 Software interrupt Interrupt Restart locations RST 0 0 X 8 = 0000h RST 1 1 X 8 = 0008h RST 2 2 x 8 = 0010h RST 3 3 X 8 = 0018h RST 4 4 X 8 = 0020h RST 5 5 X 8 = 0028h RST 6 6 X 8 = 0030h RST 7 7 X 8 = 0038h
  • 12. Prof. Nitin Ahire 12 Software interrupt / hardware interrupt Software interrupt 1)It is as synchronous event 2)This interrupt is requested by executing instruction 3)PC is incremented 4)The priority is highest 5)It can’t be ignored 6)It is not used to interface the peripheral Used in debugging Hardware interrupt 1)It is an asynchronous event 2)This interrupt is requested by external device 3)PC is not incremented 4)The priority is lower than softer interrupt 5)Can be masked 6)It is used to interface peripheral devices
  • 13. Prof. Nitin Ahire 13 Interrupt related instructions 1) EI : it is used to enable the all maskable interrupt. It required 1-byte, one MC (4T). It does not affect on TRAP 2) DI : it is used to disable all maskable interrupt. 1-byte (4T). It does not affect on TRAP
  • 14. Prof. Nitin Ahire 14 Interrupt related instructions SIM : (set interrupt mask) 1-byte (4T) state. Used to enable or disable RST 7.5, RST 6.5, RST 5.5 interrupts. It does not affect on TRAP & INTR . It is used in serial data transmission It also transfer serial data bit ‘D7’of ‘A’ to the SOD pin Hence the CWR format must be load in the ‘A’ before execution of SIM instruction.
  • 15. Prof. Nitin Ahire 15 SIM (bit pattern) SOD pin D7= SOD D6= serial data enable 1=enable, 0=disable D5= Don’t care D4= Reset R7.5 F/F, 1=Reset 0=no effect D3=MSE Mask set enable 1=D2,D1,D0 bit are effective 0=D2,D1,D0 bit are ignored D2= M’7.5 Mask RST 7.5 1= Mask or disable R7.5 0= Enable RST 7.5 D1=M’6.5 Mask RST 6.5 1= Mask or disable R6.5 0= Enable RST 6.5 D0=M’5.5 Mask RST 5.5 1= Mask or disable R5.5 0= Enable RST 5.5 SOD SDE M’ 6.5M’ 7.5MSER 7.5X M’ 5.5
  • 16. Prof. Nitin Ahire 16 Interrupt related instructions RIM : ( read interrupt mask) 1-byte (4T) state. It gives the status of the pending maskable interrupt (RST 7.5 – RST 5.5) It does not affect on TRAP & INTR It can also transfer the contents of the serial input data on the SID pin into the accumulator (‘D7’ bit.) Hence after execution of this instruction serial data get load in to the accumulator
  • 17. Prof. Nitin Ahire 17 RIM (bit pattern) SID pin D7= SID D6= D5= if 1 respective interrupt is pending D4= 0 respective interrupt is not pending D3=IE interrupt enable D2= D1= if 1 respective interrupt is Masked D0= 0 respective interrupt is unmasked SID I 7.5 M 6.5M 7.5IEI 5.5I 6.5 M 5.5