O slideshow foi denunciado.
Utilizamos seu perfil e dados de atividades no LinkedIn para personalizar e exibir anúncios mais relevantes. Altere suas preferências de anúncios quando desejar.
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...
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 ...
HANDSHAKING Signals
• Dedicated lines used to coordinate data transfer.
• Used to signal ready/not ready, or to acknowledg...
I/O Operating Modes
• Under the I/O mode of operation, further there are three
modes of operation of 8255A.
 Mode 0 – Bas...
Mode 0 (BASIC I/O)
• Provides simple input and output capabilities using each of
the three ports.
• Data can be simply rea...
•
•
•
•
•

Features of mode 0:
Two 8-bits and two 4-bits ports.
Output ports are latched.
Input ports are buffered, not la...
Mode 1 (STROBE I/O)
• This functional configuration provides a means for
transferring I/O data to or from a specified port...
•
•
•
•

Features of mode 1:
Two Groups (Group A and Group B).
Each group contains one 8-bit data port and one 4-bit
contr...
Mode 2

(STROBE BIDIRECTIONAL BUS I/O)
• This functional configuration provides a means for
communicating with a periphera...
• 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...
THANK YOU

anuj_yadav

12
Terminou este documento.
Transfira e leia offline.
Próximos SlideShares
Programmable Peripheral Interface 8255
Avançar
Próximos SlideShares
Programmable Peripheral Interface 8255
Avançar
Transfira para ler offline e ver em ecrã inteiro.

Compartilhar

Operation of 8255A

Baixar para ler offline

Operation of 8255A
PROGRAMMABLE PERIPHERAL INTERFACE

Livros relacionados

Gratuito durante 30 dias do Scribd

Ver tudo

Audiolivros relacionados

Gratuito durante 30 dias do Scribd

Ver tudo

Operation of 8255A

  1. 1. OPERATION OF 8255A PROGRAMMABLE PERIPHERAL INTERFACE BY : ANUJ YADAV 14606, ECS anuj_yadav 1
  2. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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
  12. 12. THANK YOU anuj_yadav 12
  • AshwiniChoudhary6

    Mar. 18, 2020
  • ShaikAkther

    Oct. 3, 2018
  • ArpanGajjar

    May. 15, 2018
  • MonsurAhmed13

    May. 2, 2018
  • KrishnaBhure1

    Jan. 19, 2018
  • AsmaFerradji

    Dec. 9, 2017
  • hameefazi

    Oct. 9, 2017
  • GurpreetSingh1299

    Apr. 2, 2017
  • maharishi37

    Mar. 17, 2017
  • AshwinSingaravel

    Oct. 31, 2016
  • mariasiddiqua5

    Oct. 9, 2016
  • sunny9900

    Oct. 3, 2016
  • SwatiTomar7

    May. 5, 2016
  • VinayRoyalls

    Apr. 16, 2016
  • sravankumarkls

    Feb. 16, 2016
  • jaradatabeer1

    Aug. 15, 2015
  • djsreeraj

    May. 3, 2015
  • DheerajaReddy

    Nov. 14, 2014
  • sajithkumarev

    Aug. 14, 2014
  • qnusu

    Feb. 28, 2014

Operation of 8255A PROGRAMMABLE PERIPHERAL INTERFACE

Vistos

Vistos totais

18.881

No Slideshare

0

De incorporações

0

Número de incorporações

4

Ações

Baixados

602

Compartilhados

0

Comentários

0

Curtir

20

×