Vous êtes sur la page 1sur 3

7/7/2015

The8255ProgrammablePeripheralInterface

8255ProgrammablePeripheralInterface(PPI)
DataBusBuffer
Thisthreestatebidirectional8bitbufferisusedtointerfacethe8255tothesystemdatabus.
Dataistransmittedorreceivedbythebufferuponexecutionofinputoroutputinstructionsby
theCPU.Controlwordsandstatusinformationarealsotransferredthroughthedatabus
buffer.
Read/WriteandControlLogic
ThefunctionofthisblockistomanagealloftheinternalandexternaltransfersofbothDataand
ControlorStatuswords.ItacceptsinputsfromtheCPUAddressandControlbussesandin
turn,issuescommandstobothoftheControlGroups.
(CS)ChipSelect.A"low"onthisinputpinenablesthecommuncationbetweenthe8255and
theCPU.
(RD)Read.A"low"onthisinputpinenables8255tosendthedataorstatusinformationtothe
CPUonthedatabus.Inessence,itallowstheCPUto"readfrom"the8255.
(WR)Write.A"low"onthisinputpinenablestheCPUtowritedataorcontrolwordsintothe
8255.
(A0andA1)PortSelect0andPortSelect1.Theseinputsignals,inconjunctionwiththeRD
andWRinputs,controltheselectionofoneofthethreeportsorthecontrolwordregister.They
arenormallyconnectedtotheleastsignificantbitsoftheaddressbus(A0andA1).
(RESET)Reset.A"high"onthisinputinitializesthecontrolregisterto9Bhandallports(A,B,
C)aresettotheinputmode.

A1

A0

SELECTION

0
0
1
1

0
1
0
1

PORTA
PORTB
PORTC
CONTROL

GroupAandGroupBControls
Thefunctionalconfigurationofeachportisprogrammedbythesystemssoftware.Inessence,
theCPU"outputs"acontrolwordtothe8255.Thecontrolwordcontainsinformationsuchas
"mode","bitset","bitreset",etc.,thatinitializesthefunctionalconfigurationofthe8255.Eachof
theControlblocks(GroupAandGroupB)accepts"commands"fromtheRead/WriteControl
logic,receives"controlwords"fromtheinternaldatabusandissuesthepropercommandsto
itsassociatedports.
PortsA,B,andC
http://www.electronics.dit.ie/staff/tscarff/8255PPI/8255.htm

1/3

7/7/2015

The8255ProgrammablePeripheralInterface

The8255containsthree8bitports(A,B,andC).Allcanbeconfiguredtoawidevarietyof
functionalcharacteristicsbythesystemsoftwarebuteachhasitsownspecialfeaturesor
"personality"tofurtherenhancethepowerandflexibilityofthe8255.
PortAOne8bitdataoutputlatch/bufferandone8bitdatainputlatch.Both"pullup"and"pull
down"busholddevicesarepresentonPortA.
PortBOne8bitdatainput/outputlatch/bufferandone8bitdatainputbuffer.
PortCOne8bitdataoutputlatch/bufferandone8bitdatainputbuffer(nolatchforinput).This
portcanbedividedintotwo4bitportsunderthemodecontrol.Each4bitportcontainsa4bit
latchanditcanbeusedforthecontrolsignaloutputandstatussignalinputsinconjunctionwith
portsAandB.

BlockDiagramofthe8255ProgrammablePeripheralInterface(PPI)

http://www.electronics.dit.ie/staff/tscarff/8255PPI/8255.htm

2/3

7/7/2015

The8255ProgrammablePeripheralInterface

ModeDefinitionFormat

ExamplesofIN/OUTinstructionsand8086assemblylanguageprogrammes.

http://www.electronics.dit.ie/staff/tscarff/8255PPI/8255.htm

3/3

Vous aimerez peut-être aussi