Top Banner
Microprocessors and Interfaces: 2021-22 Lecture 31 : Programable Interrupt Controller 8259A By Dr. Sanjay Vidhyadharan
27

Microprocessors and Interfaces: 2021-22 Lecture 31 ...

Jan 06, 2022

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Microprocessors and Interfaces: 2021-22 Lecture 31 ...

Microprocessors and Interfaces: 2021-22

Lecture 31 :

Programable Interrupt Controller 8259A

By Dr. Sanjay Vidhyadharan

Page 2: Microprocessors and Interfaces: 2021-22 Lecture 31 ...

Input & Output Interface

64K I/P & 64K O/P

Bi-Directional Buffer

Latch

Page 3: Microprocessors and Interfaces: 2021-22 Lecture 31 ...

Input & Output Interface

Page 4: Microprocessors and Interfaces: 2021-22 Lecture 31 ...

Interface with 8259A

Page 5: Microprocessors and Interfaces: 2021-22 Lecture 31 ...

8259A Block Diagram

Page 6: Microprocessors and Interfaces: 2021-22 Lecture 31 ...

Cascaded 8259A

Max 64

Page 7: Microprocessors and Interfaces: 2021-22 Lecture 31 ...

Addressing 8259A

➢Only Two Addresses per 8259A.

▪ INITIALIZATION COMMAND WORDS (ICWS)

ICW 1, ICW 2, ICW 3, & IC4

▪ Operation Command Words (OCWs):

OCW 1, OCW 2 & ICW 3

Page 8: Microprocessors and Interfaces: 2021-22 Lecture 31 ...

8259A ICWs

ICW1 : Mandatory

Page 9: Microprocessors and Interfaces: 2021-22 Lecture 31 ...

8259A ICWs

Page 10: Microprocessors and Interfaces: 2021-22 Lecture 31 ...

8259A ICWs

ICW2 : Mandatory

Page 11: Microprocessors and Interfaces: 2021-22 Lecture 31 ...

8259A ICWs

ICW3 : Dependant on ICW 1 ( Mandatory if Cascade selected in ICW1)

Page 12: Microprocessors and Interfaces: 2021-22 Lecture 31 ...

8259A ICWs

ICW3 : Dependant on ICW 1 ( Mandatory if Cascade selected in ICW1)

Page 13: Microprocessors and Interfaces: 2021-22 Lecture 31 ...

8259 ICWs

ICW3 : Dependant on ICW 1 ( Mandatory if Cascade selected in ICW1)

Page 14: Microprocessors and Interfaces: 2021-22 Lecture 31 ...

8259 ICWs

ICW4 : Dependant on ICW 1 ( Mandatory if 8086 used)

D0-0 for 8085

D0-1 for 8086

Normal EOI- D1-0

ISR has EOI

Auto EOI : D1-1

After sending vector ISR

register set 0

SFNM :1 for

Fully nested

Cascade: 0/1

SFNM :0 for

Single

Page 15: Microprocessors and Interfaces: 2021-22 Lecture 31 ...

4/20/2021 15

8259 OCWs

OCW1 : Non-Mandatory

Page 16: Microprocessors and Interfaces: 2021-22 Lecture 31 ...

4/20/2021 16

Problem

Page 17: Microprocessors and Interfaces: 2021-22 Lecture 31 ...

4/20/2021 17

Problem

Page 18: Microprocessors and Interfaces: 2021-22 Lecture 31 ...

4/20/2021 18

Problem

Page 19: Microprocessors and Interfaces: 2021-22 Lecture 31 ...

4/20/2021 19

Problem

Page 20: Microprocessors and Interfaces: 2021-22 Lecture 31 ...

4/20/2021 20

Problem

Page 21: Microprocessors and Interfaces: 2021-22 Lecture 31 ...

4/20/2021 21

Problem

Page 22: Microprocessors and Interfaces: 2021-22 Lecture 31 ...

4/20/2021 22

Problem

Page 23: Microprocessors and Interfaces: 2021-22 Lecture 31 ...

4/20/2021 23

Problem

Page 24: Microprocessors and Interfaces: 2021-22 Lecture 31 ...

4/20/2021 24

Problem

Page 25: Microprocessors and Interfaces: 2021-22 Lecture 31 ...

4/20/2021 25

Problem

Page 26: Microprocessors and Interfaces: 2021-22 Lecture 31 ...

4/20/2021 26

Problem

Page 27: Microprocessors and Interfaces: 2021-22 Lecture 31 ...

4/20/2021 27

Thank You