SlideShare une entreprise Scribd logo
1  sur  12
OPERATION OF
8255A
PROGRAMMABLE PERIPHERAL INTERFACE

BY : ANUJ YADAV
14606, ECS
anuj_yadav

1
MODES
There are two basic modes of operation of 8255A.
• I/O mode – In this mode, the 8255A ports work as
programmable I/O ports.
• Bit Set-Reset mode – In this mode, only port C (PC0 – PC7) can
be used to set or reset its individual port bits.

anuj_yadav

2
Bit

Operation

D7

1 for I/O Mode | 0 for BSR Mode

D6, D5, D4

These are Undefined or Don’t Care

D3, D2, D1

These are Bit select flags
000-111 => for bits PC0 – PC7

D0

1 for set | 0 for Reset

• I/O Mode Control Word Register Format – The I/O modes can
be programmed using control word register by putting D7 at
logic 1. Format is shown below:
D7

D6

D5

D4

D3

D2

D1

D0

1

X

X

X

B2

B1

B0

S/R

• Bit Set-Reset Mode – In this mode any of the 8-bits of port C
can be set or reset depending on D0 of the control word. The
bit to be set or reset is selected by bit select flags D3, D2 and
D1 of CWR. Format is shown below:
D7

D6

D5

D4

D3

D2

D1

D0

0

X

X

X

B2

B1

B0

S/R

anuj_yadav

3
HANDSHAKING Signals
• Dedicated lines used to coordinate data transfer.
• Used to signal ready/not ready, or to acknowledge or request.
NEED:
• The MPU and peripherals operate at different speeds, the
MPU being faster than the peripherals.
• To avoid overlapping of data during data input or data output,
handshake signals are used between MPU & the peripherals.

anuj_yadav

4
I/O Operating Modes
• Under the I/O mode of operation, further there are three
modes of operation of 8255A.
 Mode 0 – Basic Input/output
 Mode 1 – Strobed Input/output
 Mode 2 – Bi-directional Bus
• All these modes can be selected by programming register
internal to 8255A known Control Word Register(CWR).
• This very register with different format can also be used for
Bit Set-Reset(BSR) mode of Operation.

anuj_yadav

5
Mode 0 (BASIC I/O)
• Provides simple input and output capabilities using each of
the three ports.
• Data can be simply read from and written to the input and
output ports respectively, after appropriate initialization.
• No Handshaking is required.
PA
8255A

PA6-PA7

PA

PCU

PC4-PC7

PCU

PCL

PC0-PC3

PB

PB0-PB7

8255A

PA

PC

PCL
PB

PB0-PB7

Signals in MODE 0
anuj_yadav

6
•
•
•
•
•

Features of mode 0:
Two 8-bits and two 4-bits ports.
Output ports are latched.
Input ports are buffered, not latched.
Any port can be input or output.
With 4 ports, 16 different combinations of I/O are possible.

anuj_yadav

7
Mode 1 (STROBE I/O)
• This functional configuration provides a means for
transferring I/O data to or from a specified port in conjunction
with strobes or “handshaking” signals.
• In mode 1, Port A and Port B use the lines on Port C to
generate or accept these “handshaking” signals.
PC4
PC5
PC3
8255A

I/P

PC2
PC1
PC0
PC6,7

PA[0:7]
STB(A)[AL]
IBF(A)
INTR(A)
PB[0:7]
STB(B)[AL]
IBF(B)
INTR(B)
O/P

PC7
PC6
PC3
8255A

anuj_yadav

PC2
PC1
PC0
PC4,5

PA[0:7]
OBF(A)[AL]
ACK(A)[AL]
INTR(A)
PB[0:7]
OBF(B)[AL]
ACK(B)[AL]
INTR(B)
8
•
•
•
•

Features of mode 1:
Two Groups (Group A and Group B).
Each group contains one 8-bit data port and one 4-bit
control/data port.
The 8-bit data port can be either input or output. Both inputs
and outputs are latched.
The 4-bit port is used for control and status of the 8-bit data
port. PC0 – PC2 for Port B and PC3 – PC5 for Port A.

anuj_yadav

9
Mode 2

(STROBE BIDIRECTIONAL BUS I/O)
• This functional configuration provides a means for
communicating with a peripheral device or structure on a
single 8-bit bus for both transmitting and receiving data
(bidirectional bus I/O).
• “Handshaking” signals are provided to maintain proper bus
flow discipline in a similar manner to MODE 1.
• Interrupt generation and enable/disable functions are also
available.
PA[0:7]

8255A

PC7
STB(A)[AL]
PC6
IBF(A)
INTR(A)
PC4
PC5
INTR(A)
PC3
INTR(A)
PC2
PC1
PC0
anuj_yadav
PB[0:7]

10
• Features of mode 1:
• Used in Group A only.
• One 8-bit, bi-directional bus port (Port A) and a 5-bit control
port (Port C).
• Three I/O lines available at port C.
• Both inputs and outputs are latched.
• The 5-bit control port (Port C) is used for control and status for
the 8-bit, bi-directional bus port (Port A).

anuj_yadav

11
THANK YOU

anuj_yadav

12

Contenu connexe

Tendances (20)

8255
82558255
8255
 
Chapter5
Chapter5Chapter5
Chapter5
 
8254 presentation
8254 presentation8254 presentation
8254 presentation
 
The 8255 PPI
The 8255 PPIThe 8255 PPI
The 8255 PPI
 
Addressing modes of 8086
Addressing modes of 8086Addressing modes of 8086
Addressing modes of 8086
 
8155 PPI
8155 PPI8155 PPI
8155 PPI
 
8251 USART
8251 USART8251 USART
8251 USART
 
8155 Basic Concepts
8155 Basic Concepts8155 Basic Concepts
8155 Basic Concepts
 
PPT on 8085 Microprocessor
PPT on 8085 Microprocessor  PPT on 8085 Microprocessor
PPT on 8085 Microprocessor
 
3.programmable interrupt controller 8259
3.programmable interrupt controller 82593.programmable interrupt controller 8259
3.programmable interrupt controller 8259
 
8086 pin diagram description
8086 pin diagram description8086 pin diagram description
8086 pin diagram description
 
Interfacing 8255
Interfacing 8255Interfacing 8255
Interfacing 8255
 
I2C Protocol
I2C ProtocolI2C Protocol
I2C Protocol
 
Programmable peripheral interface 8255
Programmable peripheral interface 8255Programmable peripheral interface 8255
Programmable peripheral interface 8255
 
8255 presentaion.ppt
8255 presentaion.ppt8255 presentaion.ppt
8255 presentaion.ppt
 
23. serial and parallel data communication
23. serial and parallel data communication23. serial and parallel data communication
23. serial and parallel data communication
 
8255 Introduction
8255 Introduction8255 Introduction
8255 Introduction
 
Ch3
Ch3Ch3
Ch3
 
Microprocessor Interfacing and 8155 Features
Microprocessor Interfacing and 8155 FeaturesMicroprocessor Interfacing and 8155 Features
Microprocessor Interfacing and 8155 Features
 
8086 Microprocessor
8086 Microprocessor8086 Microprocessor
8086 Microprocessor
 

En vedette

Interfacing of 8255 IC By Er. Swapnil Kaware.
Interfacing of 8255 IC By Er. Swapnil Kaware.Interfacing of 8255 IC By Er. Swapnil Kaware.
Interfacing of 8255 IC By Er. Swapnil Kaware.Prof. Swapnil V. Kaware
 
8254 Programmable Interval Timer by vijay
8254 Programmable Interval Timer by vijay8254 Programmable Interval Timer by vijay
8254 Programmable Interval Timer by vijayVijay Kumar
 
8259 Programmable Interrupt Controller by vijay
8259 Programmable Interrupt Controller by vijay8259 Programmable Interrupt Controller by vijay
8259 Programmable Interrupt Controller by vijayVijay Kumar
 
8085 instruction set and addressing modes
8085 instruction set and addressing modes8085 instruction set and addressing modes
8085 instruction set and addressing modesVijay Kumar
 
1204 Ppi 8255
1204 Ppi 82551204 Ppi 8255
1204 Ppi 8255techbed
 
Basics of peripheral devices and Working
Basics of peripheral devices and WorkingBasics of peripheral devices and Working
Basics of peripheral devices and WorkingDr.YNM
 
Microcontroller 8051 and its interfacing
Microcontroller 8051 and its interfacingMicrocontroller 8051 and its interfacing
Microcontroller 8051 and its interfacingAnkur Mahajan
 
8051 Microcontroller Notes
8051 Microcontroller Notes8051 Microcontroller Notes
8051 Microcontroller NotesDr.YNM
 
8085 microprocessor 8155, 8255
8085 microprocessor  8155, 8255 8085 microprocessor  8155, 8255
8085 microprocessor 8155, 8255 Nitin Ahire
 
Microprocess Microconroller mcq 1000+
Microprocess Microconroller mcq 1000+Microprocess Microconroller mcq 1000+
Microprocess Microconroller mcq 1000+Kumaran K
 
1203 Ppi 8155
1203 Ppi 81551203 Ppi 8155
1203 Ppi 8155techbed
 
8237 dma controller
8237 dma controller8237 dma controller
8237 dma controllerTech_MX
 
8237 / 8257 DMA
8237 / 8257 DMA8237 / 8257 DMA
8237 / 8257 DMAAJAL A J
 

En vedette (20)

Interfacing of 8255 IC By Er. Swapnil Kaware.
Interfacing of 8255 IC By Er. Swapnil Kaware.Interfacing of 8255 IC By Er. Swapnil Kaware.
Interfacing of 8255 IC By Er. Swapnil Kaware.
 
8255 Programmable parallel I/O
8255 Programmable parallel I/O 8255 Programmable parallel I/O
8255 Programmable parallel I/O
 
8255_utkarsh_kulshrestha
8255_utkarsh_kulshrestha8255_utkarsh_kulshrestha
8255_utkarsh_kulshrestha
 
8254 Programmable Interval Timer by vijay
8254 Programmable Interval Timer by vijay8254 Programmable Interval Timer by vijay
8254 Programmable Interval Timer by vijay
 
8259 Programmable Interrupt Controller by vijay
8259 Programmable Interrupt Controller by vijay8259 Programmable Interrupt Controller by vijay
8259 Programmable Interrupt Controller by vijay
 
7 8255
7 82557 8255
7 8255
 
8085 instruction set and addressing modes
8085 instruction set and addressing modes8085 instruction set and addressing modes
8085 instruction set and addressing modes
 
1204 Ppi 8255
1204 Ppi 82551204 Ppi 8255
1204 Ppi 8255
 
Basics of peripheral devices and Working
Basics of peripheral devices and WorkingBasics of peripheral devices and Working
Basics of peripheral devices and Working
 
Microcontroller 8051 and its interfacing
Microcontroller 8051 and its interfacingMicrocontroller 8051 and its interfacing
Microcontroller 8051 and its interfacing
 
8051 Microcontroller Notes
8051 Microcontroller Notes8051 Microcontroller Notes
8051 Microcontroller Notes
 
8085 microprocessor 8155, 8255
8085 microprocessor  8155, 8255 8085 microprocessor  8155, 8255
8085 microprocessor 8155, 8255
 
8295
82958295
8295
 
Programmable Timer 8253/8254
Programmable Timer 8253/8254Programmable Timer 8253/8254
Programmable Timer 8253/8254
 
Microprocess Microconroller mcq 1000+
Microprocess Microconroller mcq 1000+Microprocess Microconroller mcq 1000+
Microprocess Microconroller mcq 1000+
 
1203 Ppi 8155
1203 Ppi 81551203 Ppi 8155
1203 Ppi 8155
 
USART
USARTUSART
USART
 
8237 dma controller
8237 dma controller8237 dma controller
8237 dma controller
 
8237 / 8257 DMA
8237 / 8257 DMA8237 / 8257 DMA
8237 / 8257 DMA
 
Interfacing LCD with 8051 Microcontroller
Interfacing LCD with 8051 MicrocontrollerInterfacing LCD with 8051 Microcontroller
Interfacing LCD with 8051 Microcontroller
 

Similaire à Operation of 8255A

Mod-2 M&M.pptx
Mod-2 M&M.pptxMod-2 M&M.pptx
Mod-2 M&M.pptxTechCook1
 
PROGRAMMABLE PERIPHERAL INTERFACE (PPI) -8255
PROGRAMMABLE PERIPHERAL  INTERFACE (PPI) -8255PROGRAMMABLE PERIPHERAL  INTERFACE (PPI) -8255
PROGRAMMABLE PERIPHERAL INTERFACE (PPI) -8255Zahid Parvez
 
UNIT 3 Peripheral Interfacing.pptx
UNIT 3 Peripheral Interfacing.pptxUNIT 3 Peripheral Interfacing.pptx
UNIT 3 Peripheral Interfacing.pptxGowrishankar C
 
8255 ppi students material for ppi mpmc study
8255 ppi students material for ppi mpmc study8255 ppi students material for ppi mpmc study
8255 ppi students material for ppi mpmc studySirisha Vamsi
 
8255 PPI (programmable Peripheral Interface) mode 0
8255 PPI (programmable Peripheral Interface) mode 08255 PPI (programmable Peripheral Interface) mode 0
8255 PPI (programmable Peripheral Interface) mode 0ABHIMANYUJHA8
 
8255-PPI MPMC text book for engineering.ppt
8255-PPI MPMC text book for engineering.ppt8255-PPI MPMC text book for engineering.ppt
8255-PPI MPMC text book for engineering.pptkhushiduppala
 
MicroProcessors and MicroControllersUnit3
MicroProcessors and MicroControllersUnit3MicroProcessors and MicroControllersUnit3
MicroProcessors and MicroControllersUnit3deepakdmaat
 
Microprocessor Basics 8085-8255 ch-5
Microprocessor Basics 8085-8255 ch-5Microprocessor Basics 8085-8255 ch-5
Microprocessor Basics 8085-8255 ch-5Neelam Kapoor
 

Similaire à Operation of 8255A (20)

8255 class
8255 class8255 class
8255 class
 
8255 & IO Interfacing.pdf
8255 & IO Interfacing.pdf8255 & IO Interfacing.pdf
8255 & IO Interfacing.pdf
 
Mod-2 M&M.pptx
Mod-2 M&M.pptxMod-2 M&M.pptx
Mod-2 M&M.pptx
 
Programmable Peripheral Devices
Programmable Peripheral Devices Programmable Peripheral Devices
Programmable Peripheral Devices
 
1.ppi 8255
1.ppi 8255 1.ppi 8255
1.ppi 8255
 
PROGRAMMABLE PERIPHERAL INTERFACE (PPI) -8255
PROGRAMMABLE PERIPHERAL  INTERFACE (PPI) -8255PROGRAMMABLE PERIPHERAL  INTERFACE (PPI) -8255
PROGRAMMABLE PERIPHERAL INTERFACE (PPI) -8255
 
8255.pdf
8255.pdf8255.pdf
8255.pdf
 
8255 ppi
8255 ppi8255 ppi
8255 ppi
 
Lec14
Lec14Lec14
Lec14
 
UNIT 3 Peripheral Interfacing.pptx
UNIT 3 Peripheral Interfacing.pptxUNIT 3 Peripheral Interfacing.pptx
UNIT 3 Peripheral Interfacing.pptx
 
8255 programable io
8255  programable io8255  programable io
8255 programable io
 
8255 ppi students material for ppi mpmc study
8255 ppi students material for ppi mpmc study8255 ppi students material for ppi mpmc study
8255 ppi students material for ppi mpmc study
 
Unit-IV.pptx
Unit-IV.pptxUnit-IV.pptx
Unit-IV.pptx
 
8255 PPI (programmable Peripheral Interface) mode 0
8255 PPI (programmable Peripheral Interface) mode 08255 PPI (programmable Peripheral Interface) mode 0
8255 PPI (programmable Peripheral Interface) mode 0
 
8255-PPI MPMC text book for engineering.ppt
8255-PPI MPMC text book for engineering.ppt8255-PPI MPMC text book for engineering.ppt
8255-PPI MPMC text book for engineering.ppt
 
8255 ppi.pptx
8255 ppi.pptx8255 ppi.pptx
8255 ppi.pptx
 
L4-L6 8255 A.pptx
L4-L6 8255 A.pptxL4-L6 8255 A.pptx
L4-L6 8255 A.pptx
 
MicroProcessors and MicroControllersUnit3
MicroProcessors and MicroControllersUnit3MicroProcessors and MicroControllersUnit3
MicroProcessors and MicroControllersUnit3
 
Microprocessor Basics 8085-8255 ch-5
Microprocessor Basics 8085-8255 ch-5Microprocessor Basics 8085-8255 ch-5
Microprocessor Basics 8085-8255 ch-5
 
Lec13
Lec13Lec13
Lec13
 

Dernier

Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersChitralekhaTherkar
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 

Dernier (20)

Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of Powders
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 

Operation of 8255A

  • 1. OPERATION OF 8255A PROGRAMMABLE PERIPHERAL INTERFACE BY : ANUJ YADAV 14606, ECS anuj_yadav 1
  • 2. MODES There are two basic modes of operation of 8255A. • I/O mode – In this mode, the 8255A ports work as programmable I/O ports. • Bit Set-Reset mode – In this mode, only port C (PC0 – PC7) can be used to set or reset its individual port bits. anuj_yadav 2
  • 3. Bit Operation D7 1 for I/O Mode | 0 for BSR Mode D6, D5, D4 These are Undefined or Don’t Care D3, D2, D1 These are Bit select flags 000-111 => for bits PC0 – PC7 D0 1 for set | 0 for Reset • I/O Mode Control Word Register Format – The I/O modes can be programmed using control word register by putting D7 at logic 1. Format is shown below: D7 D6 D5 D4 D3 D2 D1 D0 1 X X X B2 B1 B0 S/R • Bit Set-Reset Mode – In this mode any of the 8-bits of port C can be set or reset depending on D0 of the control word. The bit to be set or reset is selected by bit select flags D3, D2 and D1 of CWR. Format is shown below: D7 D6 D5 D4 D3 D2 D1 D0 0 X X X B2 B1 B0 S/R anuj_yadav 3
  • 4. HANDSHAKING Signals • Dedicated lines used to coordinate data transfer. • Used to signal ready/not ready, or to acknowledge or request. NEED: • The MPU and peripherals operate at different speeds, the MPU being faster than the peripherals. • To avoid overlapping of data during data input or data output, handshake signals are used between MPU & the peripherals. anuj_yadav 4
  • 5. I/O Operating Modes • Under the I/O mode of operation, further there are three modes of operation of 8255A.  Mode 0 – Basic Input/output  Mode 1 – Strobed Input/output  Mode 2 – Bi-directional Bus • All these modes can be selected by programming register internal to 8255A known Control Word Register(CWR). • This very register with different format can also be used for Bit Set-Reset(BSR) mode of Operation. anuj_yadav 5
  • 6. Mode 0 (BASIC I/O) • Provides simple input and output capabilities using each of the three ports. • Data can be simply read from and written to the input and output ports respectively, after appropriate initialization. • No Handshaking is required. PA 8255A PA6-PA7 PA PCU PC4-PC7 PCU PCL PC0-PC3 PB PB0-PB7 8255A PA PC PCL PB PB0-PB7 Signals in MODE 0 anuj_yadav 6
  • 7. • • • • • Features of mode 0: Two 8-bits and two 4-bits ports. Output ports are latched. Input ports are buffered, not latched. Any port can be input or output. With 4 ports, 16 different combinations of I/O are possible. anuj_yadav 7
  • 8. Mode 1 (STROBE I/O) • This functional configuration provides a means for transferring I/O data to or from a specified port in conjunction with strobes or “handshaking” signals. • In mode 1, Port A and Port B use the lines on Port C to generate or accept these “handshaking” signals. PC4 PC5 PC3 8255A I/P PC2 PC1 PC0 PC6,7 PA[0:7] STB(A)[AL] IBF(A) INTR(A) PB[0:7] STB(B)[AL] IBF(B) INTR(B) O/P PC7 PC6 PC3 8255A anuj_yadav PC2 PC1 PC0 PC4,5 PA[0:7] OBF(A)[AL] ACK(A)[AL] INTR(A) PB[0:7] OBF(B)[AL] ACK(B)[AL] INTR(B) 8
  • 9. • • • • Features of mode 1: Two Groups (Group A and Group B). Each group contains one 8-bit data port and one 4-bit control/data port. The 8-bit data port can be either input or output. Both inputs and outputs are latched. The 4-bit port is used for control and status of the 8-bit data port. PC0 – PC2 for Port B and PC3 – PC5 for Port A. anuj_yadav 9
  • 10. Mode 2 (STROBE BIDIRECTIONAL BUS I/O) • This functional configuration provides a means for communicating with a peripheral device or structure on a single 8-bit bus for both transmitting and receiving data (bidirectional bus I/O). • “Handshaking” signals are provided to maintain proper bus flow discipline in a similar manner to MODE 1. • Interrupt generation and enable/disable functions are also available. PA[0:7] 8255A PC7 STB(A)[AL] PC6 IBF(A) INTR(A) PC4 PC5 INTR(A) PC3 INTR(A) PC2 PC1 PC0 anuj_yadav PB[0:7] 10
  • 11. • Features of mode 1: • Used in Group A only. • One 8-bit, bi-directional bus port (Port A) and a 5-bit control port (Port C). • Three I/O lines available at port C. • Both inputs and outputs are latched. • The 5-bit control port (Port C) is used for control and status for the 8-bit, bi-directional bus port (Port A). anuj_yadav 11