8255 ppi interface used to connect micrprocessor, Lecture notes of Electronics

8255 serial communicaion interface

Typology: Lecture notes

2019/2020

Uploaded on 04/30/2020

vivek1728
vivek1728 🇮🇳

6 documents

1 / 107

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
PROGRAMMABLE PERIPHERAL
INTERFACE (PPI) -8255
8255 is a general purpose programmable device used
for data transfer between processor and I/O devices.
It has 3 programmable I/O ports (PA,PB &PC) and
port operation (IN/OUT Port) is defined by control
word in the control word register.
Ports are operated in two modes:
i) I/O modes: Mode 0, Mode 1,& Mode 2
Ii) BSR (Bit set/Reset) mode
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61
pf62
pf63
pf64

Partial preview of the text

Download 8255 ppi interface used to connect micrprocessor and more Lecture notes Electronics in PDF only on Docsity!

PROGRAMMABLE PERIPHERAL

INTERFACE (PPI) -

  • 8255 is a general purpose programmable device used

for data transfer between processor and I/O devices.

  • It has 3 programmable I/O ports (PA,PB &PC) and

port operation (IN/OUT Port) is defined by control

word in the control word register.

  • Ports are operated in two modes:
  • i) I/O modes: Mode 0, Mode 1,& Mode 2
  • Ii) BSR (Bit set/Reset) mode

About 8255

• PPI has 40 pins and it has three distinct modes of

operation.

• Port A (PA7-PA0) :8 pins

• Port B (PB7-PB0) :8 pins

• Port C (Pc: Upper: PC7-PC4) : 4 pins

• Port C (Pc: Lower: PC3-PC)) : 4 pins

• Data Bus (D7-D0) : 8 pins

• Control signals : 6 pins

• VCC and Gnd : 2 pins

Pin names and function

Pin name No.of pins

I/O functions

PA0-PA7 8 i/o

Tristate

 Port can be configured either input or output by

software

 Port has output latch buffer and input buffer

 PA can be programmed by mode 0 , mode 1,

mode 2.

 PB can be programmed by mode 0 and mode 1.

 PC can be programmed by bit set/reset

operation.

 Port C can be divided into two 4 bit ports namely

PC7-PC4 & PC3-PCO and used for control

signals to PA and PB

PB0-PB7 8 i/o

Tristate

PC0-PC7 8 i/o

Tristate

D0-D7 8 i/o

Tristate

 Used for data transfer with MPU

 Transfer of control words to PPI

 Read status information from PPI

Group A and Group B control:

Group A and B get the Control Signal from CPU and send the command to the

individual control blocks.

Group A send the control signal to port A and Port C (Upper) PC7-PC4.

Group B send the control signal to port B and Port C (Lower) PC3-PC0.

operation modes: i) I/O modes (M0,M1,&M2)

ii) BSR (Bit set/Reset) mode

BIT SET/RESET MODE: The PORT C can be Set or Reset by sending OUT instruction to the CONTROL registers.

Mode 1:Handshake interrupt i/p port

When i/p device has data to send it checks if IBF (input buffer full)

signal is 0.

If 0, it sends data on PA/PB7-0 and activates STB* (Strobe) signal.

(STB* is active low. )

When STB* goes high, the data enters the port and IBF gets

activated.

If the Port interrupt is enabled, INT is activated. This interrupts the

processor.

Processor reads the port during the ISS. Then IBF and INT get

deactivated.

11

Handshake interrupt o/p port

When o/p device wants to receive data it checks if OBF (output buffer full) signal is 0.*

If 0, it receives data on PB7-0 and activates ACK (Acknowledge) signal. ACK is active low.**

When ACK goes high, the data goes out of the port and OBF is set to 1.**

If the Port interrupt is enabled, INT is activated. This interrupts the processor.

Processor sends another byte to the port during the ISS. Then OBF and INT are reset to 0.* 13

Mode 1 o/p mode

INTE A Controlled by bit set/reset of PC6. INTE B Controlled by bit set/reset of PC2.

82C55: Mode 2 Bi-directional Operation

  • IBF : Input buffer full is an output indicating that the

input latch contains information for the external bi-

directional bus.

  • INTE : Interrupt enable are internal bits that enable

the INTR pin. BIT PC6(INTE1) and PC4(INTE2).

  • PC2,PC1,PC0 : These port C pins are general-purpose

I/O pins that are available for any purpose.

FOR BIT SET/RESET MODE (Port C only)

  • This is bit set/reset control word format.

X X X

Don’t care

Bit select for Port C (Pc0-Pc7)

B 0

B 1

B 2

D7 D6 D5 D4 D3 D2 D1 D
BIT SET/RESET
1=SET
0=RESET
BIT SET/RESET FLAG

=0 Active