SlideShare una empresa de Scribd logo
1 de 17
Pin Diagram of 8255PPI
8255PPI
•TheINTEL8255is a 40pinIC havingtotal24I/Opins.
consistingof 3numbersof 8–bit parallelI/O ports (i.e.
PORTA,PORTB,PORTC).Theports canbe
programmedto functioneitheras a inputport oras a
output port indifferentoperatingmodes.operatesin
mainly twomodes.
•(1)Bit SetResetMode (BSRMode).
•(2)I/O Mode.
Function of Blocks
BLOCK FUNCTION OFBLOCK
Data BusBuffer
Itisusedtointerfacetheinternaldatabusof8255tothesystemdatabusby reading
andwritingoperations.
Read/write
Controllogic
Itacceptstheinputfromtheaddressbusandissuescommandstotheindividual group
blocks.also issues appropriateenablingsignals toaccesstherequired data/control
words/statuswords.
PortA
ItcanbeprogrammedinthreemodesMode0,Mode1andMode2.
PortB
ItcanbeprogrammedinthreemodesMode0andMode1.
PortC
ItcanbeprogrammedforBitSet/resetoperation.
Function of Pins
PIN FUNCTIONOFPIN
D0-D7(DataBus)
Thesearebidirectional,tri-statedatabuslinesareconnectedtothesystemdatabus.They areusedto
transferdataand controlwordfrommicroprocessor(8085)to 8255orreceive dataorstatusword
from8255tothe8085.
PA0-PA7(PortA)
Theseare8BitbidirectionalI/O pinsusedtosenddatatooutputdeviceandtoreceivedata frominput
device.It functionsas an 8Bitdataoutputlatch/bufferwhenusedin output modeandasan8Bit
datainputlatch/bufferwhenusedininputmode.
PB0-PB7(PortB)
Theseare8BitbidirectionalI/O pinsusedtosenddatatooutputdeviceandtoreceivedata frominput
device.It functionsas an 8Bitdataoutputlatch/bufferwhenusedin output modeandasan8Bit
datainputlatch/bufferwhenusedininputmode.
Function of Pins
PIN FUNCTION OFPIN
PC0-PC7
(PortC)
Theseare8bitbidirectionalI/O pins dividedintotwogroupsPCL(PC3-PC)andPCU(PC7-
PC4).thesegroupscanindividuallytransferdatainoroutwhenprogrammedforsimpleI/O, and
usedashandshakesignalswhenprogrammedforhandshakeor
bidirectionalmodes.
RD
Whenthispinislow,theCPUcanreaddataintheportsorthestatuswordthroughthedata bus
buffer.
WR
Whenthispinislow,theCPUcanwritedataontheportsorinthecontrolregisterthrough thedata
busbuffer.
CS
ThispincanbeenabledfordatatransferoperationbetweentheCPUand8255.
RESET
Thispinisusedtoreset8255.i.econtrolregistergetsclearedandalltheportsaresettothe inputmode.
Function of Pins
PIN FUNCTIONOFPIN
A0-A1 TheselectionofinputportandcontrolwordregisterisdonebyusingA0andA1pinsIn
conjunctionwithRDandWR pins.
A1 A0 RD WR CS Operations
0 0 0 1 0 PORT A TODATABUS
0 1 0 1 0 PORT B TODATABUS
1 0 0 1 0 PORT CTODATABUS
0 0 1 0 0 DATABUS TOPORTA
0 1 1 0 0 DATABUS TOPORTB
1 0 1 0 0 DATABUS TOPORTC
1 1 1 0 0 DATABUS TOCONTROLREGISTER
x x x x 1 DATABUS TRISTATED
1 1 0 1 0 ILLEGALCONDITION
x x 1 1 0 DATABUS TRISTATED
Block Diagram of 8255 PPI
READ/
WRITE
CONTROL
LOGIC
DATABUS
BUFFER
GROUPA
CONTROL
GROUPA
PORTA(8)
GROUPA
PORTC
UPPER(4)
GROUP B
PORTC
LOWER(4)
GROUPB
PORTB
(8)
GROUP B
CONTROL
Bidirectional
DataBus
D7- D0
RD
WR
A0
A1
RESET
cs
8Bit
Internal
DataBus
PA
PA7-PA0
PCU
PC7-PC4
PCL
PC3-PC0
PB
PB7-PB0
DATABUS
BUFFER
POWER
SUPPLIES
+5V
Ground
CS,A1,A2
CS A1 A2 RESULT
0 0 0 PORT-A
0 0 1 PORT-B
0 1 0 PORT-C
0 1 1 CONTROL
REGISTER
1 X X NO
SELECTION
Control Word Format in BSRMode
D7 D6 D5 D4 D3 D2 D1D1 D0
BIT SET/RESETFLAG
0=ACTIVE
BITSET/RESET
1=SET
0=RESET
BITSELECT
0 1 2 3 4 5 6 7
0 1 0 1 0 1 0 1 B0
0 0 1 1 0 0 1 1 B1
0 0 0 0 1 1 1 1 B2
DON’TCARE
Control Word Format in I/OMode
D7 D6 D5 D4 D3 D2 D1 D0 GROUP B
PORT C(LOWER)1=I/P,
0=O/P
PORT B
1=I/P, 0=O/P
MODESELECTION
0=MODE 0
1=MODE1
GROUP A
PORT C(UPPER)1=I/P,
0=O/P
PORTA
1=I/P, 0=O/P
MODESELECTION
00=MODE 0
01=MODE 1
1X =MODE2
MODE SETFLAG
1=ACTIVE
Operating Modes Of8255
• There are two main operational modes of8255:
(1)Input/output mode,
(2)Bit set/reset mode (BSRMode).
I/O mode againclassified into three types
• (1) Mode 0,
• (2) Mode 1,
• (3) Mode 2.
MODE 0
• In this mode, the ports can be used for simple input/output operations
without handshaking.
• If both port A and B are initialized in mode 0,the two halves of port Ccan
be either used together as an additional 8-bit port, or they can be used as
individual 4-bitports.
• Since the two halves of port Care independent, they may be used such that
one-half is initialized as an input port while the other half is initialized as an
output port.
Themode 0has followingfeatures:
• O/p arelatched.
• I/p are buffered notlatched.
• Port do not have handshake or interruptcapability.
MODE 1
• When we wish to use portAor port B for handshake (strobed) input or
output operation, we initialize that port in mode 1.
• Forport B in this mode (irrespective of whether is acting as an input port
or output port), PC0,PC1 and PC2pins function as handshake lines.
Themode 1has followingfeatures:
• Twoports i.e. portAand B can be use as 8-biti/o port.
• Each port uses three lines of port cas handshake signal and remaining two
signals can be function as i/oport.
• Interrupt logic issupported.
• Input and Output data arelatched.
MODE 2
•Only groupA can be initialized in thismode.
•PortA can be used for bidirectional handshake data
transfer.This means that data can be input or outputon
the same eight lines (PA0-PA7).
•Pins PC3- PC7are used as handshake lines for portA.
•Theremaining pins of port C(PC0 - PC2) can be usedas
input/output lines if group B is initialized in mode 0.
•In this mode, the 8255may be used to extend thesystem
bus to a slavemicroprocessor.
8255 PPI or parallel interface

Más contenido relacionado

La actualidad más candente

25. 8255 programmable peripheral interface
25. 8255 programmable peripheral interface25. 8255 programmable peripheral interface
25. 8255 programmable peripheral interfacesandip das
 
1204 Ppi 8255
1204 Ppi 82551204 Ppi 8255
1204 Ppi 8255techbed
 
26. 8255 control word programming
26. 8255 control word programming26. 8255 control word programming
26. 8255 control word programmingsandip das
 
Programmable peripheral interface 8255
Programmable peripheral interface 8255Programmable peripheral interface 8255
Programmable peripheral interface 8255Marajulislam3
 
Microprocessor Interfacing and 8155 Features
Microprocessor Interfacing and 8155 FeaturesMicroprocessor Interfacing and 8155 Features
Microprocessor Interfacing and 8155 FeaturesSrikrishna Thota
 
8255:ppi & 8259:pic
8255:ppi & 8259:pic 8255:ppi & 8259:pic
8255:ppi & 8259:pic Adarsh Patel
 
1203 Ppi 8155
1203 Ppi 81551203 Ppi 8155
1203 Ppi 8155techbed
 
Operation of 8255A
Operation of 8255AOperation of 8255A
Operation of 8255AAnuj Yadav
 
Programmable Peripheral Interface
Programmable Peripheral InterfaceProgrammable Peripheral Interface
Programmable Peripheral InterfaceMeherul1234
 
Interfacing ics for microprocessor
Interfacing ics for microprocessorInterfacing ics for microprocessor
Interfacing ics for microprocessorTHANDAIAH PRABU
 
Programmableperipheralinterface 8255 ppt
Programmableperipheralinterface 8255 pptProgrammableperipheralinterface 8255 ppt
Programmableperipheralinterface 8255 pptsharan Kumar
 

La actualidad más candente (20)

25. 8255 programmable peripheral interface
25. 8255 programmable peripheral interface25. 8255 programmable peripheral interface
25. 8255 programmable peripheral interface
 
Chapter
ChapterChapter
Chapter
 
1204 Ppi 8255
1204 Ppi 82551204 Ppi 8255
1204 Ppi 8255
 
Ppi 8255
Ppi 8255Ppi 8255
Ppi 8255
 
26. 8255 control word programming
26. 8255 control word programming26. 8255 control word programming
26. 8255 control word programming
 
Programmable peripheral interface 8255
Programmable peripheral interface 8255Programmable peripheral interface 8255
Programmable peripheral interface 8255
 
Microprocessor Interfacing and 8155 Features
Microprocessor Interfacing and 8155 FeaturesMicroprocessor Interfacing and 8155 Features
Microprocessor Interfacing and 8155 Features
 
8255:ppi & 8259:pic
8255:ppi & 8259:pic 8255:ppi & 8259:pic
8255:ppi & 8259:pic
 
8085 lab
8085 lab8085 lab
8085 lab
 
1203 Ppi 8155
1203 Ppi 81551203 Ppi 8155
1203 Ppi 8155
 
Class7
Class7Class7
Class7
 
8255 Programmable parallel I/O
8255 Programmable parallel I/O 8255 Programmable parallel I/O
8255 Programmable parallel I/O
 
Operation of 8255A
Operation of 8255AOperation of 8255A
Operation of 8255A
 
8255 PPI
8255 PPI8255 PPI
8255 PPI
 
8255_Ppi new
8255_Ppi new8255_Ppi new
8255_Ppi new
 
Lec13
Lec13Lec13
Lec13
 
Programmable Peripheral Interface
Programmable Peripheral InterfaceProgrammable Peripheral Interface
Programmable Peripheral Interface
 
Interfacing ics for microprocessor
Interfacing ics for microprocessorInterfacing ics for microprocessor
Interfacing ics for microprocessor
 
Programmableperipheralinterface 8255 ppt
Programmableperipheralinterface 8255 pptProgrammableperipheralinterface 8255 ppt
Programmableperipheralinterface 8255 ppt
 
8255_utkarsh_kulshrestha
8255_utkarsh_kulshrestha8255_utkarsh_kulshrestha
8255_utkarsh_kulshrestha
 

Similar a 8255 PPI or parallel interface

UNIT 3 Peripheral Interfacing.pptx
UNIT 3 Peripheral Interfacing.pptxUNIT 3 Peripheral Interfacing.pptx
UNIT 3 Peripheral Interfacing.pptxGowrishankar C
 
Mod-2 M&M.pptx
Mod-2 M&M.pptxMod-2 M&M.pptx
Mod-2 M&M.pptxTechCook1
 
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 Programmble Peripheral Interface
8255 Programmble Peripheral Interface8255 Programmble Peripheral Interface
8255 Programmble Peripheral InterfaceAmit Kumer Podder
 
UNIT- 3.pptx
UNIT- 3.pptxUNIT- 3.pptx
UNIT- 3.pptxBASKARS53
 
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
 
Unit 3-1 (1)
Unit 3-1 (1)Unit 3-1 (1)
Unit 3-1 (1)Vasu Ch
 
MECHATRONICS-Unit 3-PROGRAMMABLE PERIPERAL INTERFACE.ppt
MECHATRONICS-Unit 3-PROGRAMMABLE PERIPERAL INTERFACE.pptMECHATRONICS-Unit 3-PROGRAMMABLE PERIPERAL INTERFACE.ppt
MECHATRONICS-Unit 3-PROGRAMMABLE PERIPERAL INTERFACE.pptCHANDRA KUMAR S
 
363118864 8255-nptel
363118864 8255-nptel363118864 8255-nptel
363118864 8255-nptelZerihunDemere
 
8096 microcontrollers notes
8096 microcontrollers notes8096 microcontrollers notes
8096 microcontrollers notesDr.YNM
 
With suitable diagram explain the working of 8255 a and inerrupts
With suitable diagram explain the working of 8255 a and inerruptsWith suitable diagram explain the working of 8255 a and inerrupts
With suitable diagram explain the working of 8255 a and inerruptsransherraj
 

Similar a 8255 PPI or parallel interface (19)

8255 & IO Interfacing.pdf
8255 & IO Interfacing.pdf8255 & IO Interfacing.pdf
8255 & IO Interfacing.pdf
 
UNIT 3 Peripheral Interfacing.pptx
UNIT 3 Peripheral Interfacing.pptxUNIT 3 Peripheral Interfacing.pptx
UNIT 3 Peripheral Interfacing.pptx
 
Mod-2 M&M.pptx
Mod-2 M&M.pptxMod-2 M&M.pptx
Mod-2 M&M.pptx
 
8255 ppi.pptx
8255 ppi.pptx8255 ppi.pptx
8255 ppi.pptx
 
8255 presentaion.ppt
8255 presentaion.ppt8255 presentaion.ppt
8255 presentaion.ppt
 
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
 
8255 Programmble Peripheral Interface
8255 Programmble Peripheral Interface8255 Programmble Peripheral Interface
8255 Programmble Peripheral Interface
 
1.ppi 8255
1.ppi 8255 1.ppi 8255
1.ppi 8255
 
unit-3-8255.pdf
unit-3-8255.pdfunit-3-8255.pdf
unit-3-8255.pdf
 
UNIT- 3.pptx
UNIT- 3.pptxUNIT- 3.pptx
UNIT- 3.pptx
 
8255.pdf
8255.pdf8255.pdf
8255.pdf
 
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
 
Unit 3-1 (1)
Unit 3-1 (1)Unit 3-1 (1)
Unit 3-1 (1)
 
MECHATRONICS-Unit 3-PROGRAMMABLE PERIPERAL INTERFACE.ppt
MECHATRONICS-Unit 3-PROGRAMMABLE PERIPERAL INTERFACE.pptMECHATRONICS-Unit 3-PROGRAMMABLE PERIPERAL INTERFACE.ppt
MECHATRONICS-Unit 3-PROGRAMMABLE PERIPERAL INTERFACE.ppt
 
363118864 8255-nptel
363118864 8255-nptel363118864 8255-nptel
363118864 8255-nptel
 
Programmable Peripheral Devices
Programmable Peripheral Devices Programmable Peripheral Devices
Programmable Peripheral Devices
 
8096 microcontrollers notes
8096 microcontrollers notes8096 microcontrollers notes
8096 microcontrollers notes
 
PPI-MECHATRONICS
PPI-MECHATRONICSPPI-MECHATRONICS
PPI-MECHATRONICS
 
With suitable diagram explain the working of 8255 a and inerrupts
With suitable diagram explain the working of 8255 a and inerruptsWith suitable diagram explain the working of 8255 a and inerrupts
With suitable diagram explain the working of 8255 a and inerrupts
 

Último

Earthing details of Electrical Substation
Earthing details of Electrical SubstationEarthing details of Electrical Substation
Earthing details of Electrical Substationstephanwindworld
 
Research Methodology for Engineering pdf
Research Methodology for Engineering pdfResearch Methodology for Engineering pdf
Research Methodology for Engineering pdfCaalaaAbdulkerim
 
Crushers to screens in aggregate production
Crushers to screens in aggregate productionCrushers to screens in aggregate production
Crushers to screens in aggregate productionChinnuNinan
 
Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...121011101441
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfgUnit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfgsaravananr517913
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor CatchersTechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catcherssdickerson1
 
Transport layer issues and challenges - Guide
Transport layer issues and challenges - GuideTransport layer issues and challenges - Guide
Transport layer issues and challenges - GuideGOPINATHS437943
 
Class 1 | NFPA 72 | Overview Fire Alarm System
Class 1 | NFPA 72 | Overview Fire Alarm SystemClass 1 | NFPA 72 | Overview Fire Alarm System
Class 1 | NFPA 72 | Overview Fire Alarm Systemirfanmechengr
 
Autonomous emergency braking system (aeb) ppt.ppt
Autonomous emergency braking system (aeb) ppt.pptAutonomous emergency braking system (aeb) ppt.ppt
Autonomous emergency braking system (aeb) ppt.pptbibisarnayak0
 
Mine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptxMine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptxRomil Mishra
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvLewisJB
 
DM Pillar Training Manual.ppt will be useful in deploying TPM in project
DM Pillar Training Manual.ppt will be useful in deploying TPM in projectDM Pillar Training Manual.ppt will be useful in deploying TPM in project
DM Pillar Training Manual.ppt will be useful in deploying TPM in projectssuserb6619e
 
Main Memory Management in Operating System
Main Memory Management in Operating SystemMain Memory Management in Operating System
Main Memory Management in Operating SystemRashmi Bhat
 
Ch10-Global Supply Chain - Cadena de Suministro.pdf
Ch10-Global Supply Chain - Cadena de Suministro.pdfCh10-Global Supply Chain - Cadena de Suministro.pdf
Ch10-Global Supply Chain - Cadena de Suministro.pdfChristianCDAM
 
home automation using Arduino by Aditya Prasad
home automation using Arduino by Aditya Prasadhome automation using Arduino by Aditya Prasad
home automation using Arduino by Aditya Prasadaditya806802
 
Input Output Management in Operating System
Input Output Management in Operating SystemInput Output Management in Operating System
Input Output Management in Operating SystemRashmi Bhat
 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfAsst.prof M.Gokilavani
 

Último (20)

Earthing details of Electrical Substation
Earthing details of Electrical SubstationEarthing details of Electrical Substation
Earthing details of Electrical Substation
 
Research Methodology for Engineering pdf
Research Methodology for Engineering pdfResearch Methodology for Engineering pdf
Research Methodology for Engineering pdf
 
Crushers to screens in aggregate production
Crushers to screens in aggregate productionCrushers to screens in aggregate production
Crushers to screens in aggregate production
 
Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfgUnit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
POWER SYSTEMS-1 Complete notes examples
POWER SYSTEMS-1 Complete notes  examplesPOWER SYSTEMS-1 Complete notes  examples
POWER SYSTEMS-1 Complete notes examples
 
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor CatchersTechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
 
Transport layer issues and challenges - Guide
Transport layer issues and challenges - GuideTransport layer issues and challenges - Guide
Transport layer issues and challenges - Guide
 
Class 1 | NFPA 72 | Overview Fire Alarm System
Class 1 | NFPA 72 | Overview Fire Alarm SystemClass 1 | NFPA 72 | Overview Fire Alarm System
Class 1 | NFPA 72 | Overview Fire Alarm System
 
Autonomous emergency braking system (aeb) ppt.ppt
Autonomous emergency braking system (aeb) ppt.pptAutonomous emergency braking system (aeb) ppt.ppt
Autonomous emergency braking system (aeb) ppt.ppt
 
Mine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptxMine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptx
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvv
 
DM Pillar Training Manual.ppt will be useful in deploying TPM in project
DM Pillar Training Manual.ppt will be useful in deploying TPM in projectDM Pillar Training Manual.ppt will be useful in deploying TPM in project
DM Pillar Training Manual.ppt will be useful in deploying TPM in project
 
Main Memory Management in Operating System
Main Memory Management in Operating SystemMain Memory Management in Operating System
Main Memory Management in Operating System
 
Ch10-Global Supply Chain - Cadena de Suministro.pdf
Ch10-Global Supply Chain - Cadena de Suministro.pdfCh10-Global Supply Chain - Cadena de Suministro.pdf
Ch10-Global Supply Chain - Cadena de Suministro.pdf
 
home automation using Arduino by Aditya Prasad
home automation using Arduino by Aditya Prasadhome automation using Arduino by Aditya Prasad
home automation using Arduino by Aditya Prasad
 
Input Output Management in Operating System
Input Output Management in Operating SystemInput Output Management in Operating System
Input Output Management in Operating System
 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
 

8255 PPI or parallel interface

  • 1.
  • 2. Pin Diagram of 8255PPI
  • 3. 8255PPI •TheINTEL8255is a 40pinIC havingtotal24I/Opins. consistingof 3numbersof 8–bit parallelI/O ports (i.e. PORTA,PORTB,PORTC).Theports canbe programmedto functioneitheras a inputport oras a output port indifferentoperatingmodes.operatesin mainly twomodes. •(1)Bit SetResetMode (BSRMode). •(2)I/O Mode.
  • 4. Function of Blocks BLOCK FUNCTION OFBLOCK Data BusBuffer Itisusedtointerfacetheinternaldatabusof8255tothesystemdatabusby reading andwritingoperations. Read/write Controllogic Itacceptstheinputfromtheaddressbusandissuescommandstotheindividual group blocks.also issues appropriateenablingsignals toaccesstherequired data/control words/statuswords. PortA ItcanbeprogrammedinthreemodesMode0,Mode1andMode2. PortB ItcanbeprogrammedinthreemodesMode0andMode1. PortC ItcanbeprogrammedforBitSet/resetoperation.
  • 5. Function of Pins PIN FUNCTIONOFPIN D0-D7(DataBus) Thesearebidirectional,tri-statedatabuslinesareconnectedtothesystemdatabus.They areusedto transferdataand controlwordfrommicroprocessor(8085)to 8255orreceive dataorstatusword from8255tothe8085. PA0-PA7(PortA) Theseare8BitbidirectionalI/O pinsusedtosenddatatooutputdeviceandtoreceivedata frominput device.It functionsas an 8Bitdataoutputlatch/bufferwhenusedin output modeandasan8Bit datainputlatch/bufferwhenusedininputmode. PB0-PB7(PortB) Theseare8BitbidirectionalI/O pinsusedtosenddatatooutputdeviceandtoreceivedata frominput device.It functionsas an 8Bitdataoutputlatch/bufferwhenusedin output modeandasan8Bit datainputlatch/bufferwhenusedininputmode.
  • 6. Function of Pins PIN FUNCTION OFPIN PC0-PC7 (PortC) Theseare8bitbidirectionalI/O pins dividedintotwogroupsPCL(PC3-PC)andPCU(PC7- PC4).thesegroupscanindividuallytransferdatainoroutwhenprogrammedforsimpleI/O, and usedashandshakesignalswhenprogrammedforhandshakeor bidirectionalmodes. RD Whenthispinislow,theCPUcanreaddataintheportsorthestatuswordthroughthedata bus buffer. WR Whenthispinislow,theCPUcanwritedataontheportsorinthecontrolregisterthrough thedata busbuffer. CS ThispincanbeenabledfordatatransferoperationbetweentheCPUand8255. RESET Thispinisusedtoreset8255.i.econtrolregistergetsclearedandalltheportsaresettothe inputmode.
  • 7. Function of Pins PIN FUNCTIONOFPIN A0-A1 TheselectionofinputportandcontrolwordregisterisdonebyusingA0andA1pinsIn conjunctionwithRDandWR pins. A1 A0 RD WR CS Operations 0 0 0 1 0 PORT A TODATABUS 0 1 0 1 0 PORT B TODATABUS 1 0 0 1 0 PORT CTODATABUS 0 0 1 0 0 DATABUS TOPORTA 0 1 1 0 0 DATABUS TOPORTB 1 0 1 0 0 DATABUS TOPORTC 1 1 1 0 0 DATABUS TOCONTROLREGISTER x x x x 1 DATABUS TRISTATED 1 1 0 1 0 ILLEGALCONDITION x x 1 1 0 DATABUS TRISTATED
  • 8. Block Diagram of 8255 PPI READ/ WRITE CONTROL LOGIC DATABUS BUFFER GROUPA CONTROL GROUPA PORTA(8) GROUPA PORTC UPPER(4) GROUP B PORTC LOWER(4) GROUPB PORTB (8) GROUP B CONTROL Bidirectional DataBus D7- D0 RD WR A0 A1 RESET cs 8Bit Internal DataBus PA PA7-PA0 PCU PC7-PC4 PCL PC3-PC0 PB PB7-PB0 DATABUS BUFFER POWER SUPPLIES +5V Ground
  • 9. CS,A1,A2 CS A1 A2 RESULT 0 0 0 PORT-A 0 0 1 PORT-B 0 1 0 PORT-C 0 1 1 CONTROL REGISTER 1 X X NO SELECTION
  • 10. Control Word Format in BSRMode D7 D6 D5 D4 D3 D2 D1D1 D0 BIT SET/RESETFLAG 0=ACTIVE BITSET/RESET 1=SET 0=RESET BITSELECT 0 1 2 3 4 5 6 7 0 1 0 1 0 1 0 1 B0 0 0 1 1 0 0 1 1 B1 0 0 0 0 1 1 1 1 B2 DON’TCARE
  • 11. Control Word Format in I/OMode D7 D6 D5 D4 D3 D2 D1 D0 GROUP B PORT C(LOWER)1=I/P, 0=O/P PORT B 1=I/P, 0=O/P MODESELECTION 0=MODE 0 1=MODE1 GROUP A PORT C(UPPER)1=I/P, 0=O/P PORTA 1=I/P, 0=O/P MODESELECTION 00=MODE 0 01=MODE 1 1X =MODE2 MODE SETFLAG 1=ACTIVE
  • 12.
  • 13. Operating Modes Of8255 • There are two main operational modes of8255: (1)Input/output mode, (2)Bit set/reset mode (BSRMode). I/O mode againclassified into three types • (1) Mode 0, • (2) Mode 1, • (3) Mode 2.
  • 14. MODE 0 • In this mode, the ports can be used for simple input/output operations without handshaking. • If both port A and B are initialized in mode 0,the two halves of port Ccan be either used together as an additional 8-bit port, or they can be used as individual 4-bitports. • Since the two halves of port Care independent, they may be used such that one-half is initialized as an input port while the other half is initialized as an output port. Themode 0has followingfeatures: • O/p arelatched. • I/p are buffered notlatched. • Port do not have handshake or interruptcapability.
  • 15. MODE 1 • When we wish to use portAor port B for handshake (strobed) input or output operation, we initialize that port in mode 1. • Forport B in this mode (irrespective of whether is acting as an input port or output port), PC0,PC1 and PC2pins function as handshake lines. Themode 1has followingfeatures: • Twoports i.e. portAand B can be use as 8-biti/o port. • Each port uses three lines of port cas handshake signal and remaining two signals can be function as i/oport. • Interrupt logic issupported. • Input and Output data arelatched.
  • 16. MODE 2 •Only groupA can be initialized in thismode. •PortA can be used for bidirectional handshake data transfer.This means that data can be input or outputon the same eight lines (PA0-PA7). •Pins PC3- PC7are used as handshake lines for portA. •Theremaining pins of port C(PC0 - PC2) can be usedas input/output lines if group B is initialized in mode 0. •In this mode, the 8255may be used to extend thesystem bus to a slavemicroprocessor.