Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Introduction to 8255, 8259, and 8254 Chips: A Comprehensive Guide, Study notes of Microprocessors

lecture notes for microprocessor

Typology: Study notes

2017/2018

Uploaded on 01/29/2018

dragon-tech
dragon-tech 🇮🇳

4

(2)

1 document

1 / 121

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
DEEPAK.P
MICROPROCESSORS AND APPLICATIONS
Mr. DEEPAK P.
Associate Professor
ECE Department
SNGCE
1
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 Introduction to 8255, 8259, and 8254 Chips: A Comprehensive Guide and more Study notes Microprocessors in PDF only on Docsity!

DEEPAK.P

MICROPROCESSORS AND APPLICATIONS

Mr. DEEPAK P. Associate Professor ECE Department SNGCE 1

DEEPAK.P UNIT 4 2

Programmable

Peripheral Interface

[8255]

DEEPAK.P 4 19/9/

PPI 8255

It is an I/O port chip used for interfacing I/O devices with microprocessor. The parallel input-output port chip 8255 is also called as programmable peripheral input-output port. The Intel’s 8255 is designed for use with Intel’s 8-bit, 16-bit microprocessors.

PPI 8255

The port A lines are identified by symbols PA 0 - PA 7 while the port C lines are identified as PC 4 - PC 7. Similarly, Group B contains an 8-bit port B, containing lines PB0-PB7 and a 4-bit port C with lower bits PC0- PC3. All of these ports can function independently either as input or as output ports. This can be achieved by programming the bits of an internal register of 8255 called as control word register ( CWR ).

Block Diagram of 8255  (^) Two control groups, labeled group A control and group B control define how the three I/O ports operate.  (^) One of the 4 bit group is associated with group A control and the other 4 bit group with group B control device signals.  (^) The upper 4 bits of port C are associated with group A control while the lower 4 bits are associated with group B control. The final logic blocks are read/write control logic and data bus buffer.

Block Diagram of 8255 These blocks provide the electrical interface between the micro processor and 8255. The data bus buffer buffers the data I/O lines to/from the microprocessor data bus. The read/write control logic routes the data to and from the correct internal registers with the right timing.

Pin Diagram of 8255  (^) The 8255 is a 40 pin integrated circuit (IC), designed to perform a variety of interface functions in a computer environment.  (^) D0 - D7 These are the data input/output lines for the device.  (^) All information read from and written to the 8255 occurs via these 8 data lines.  (^) CS ( Chip Select Input ). If this line is a logical 0, the microprocessor can read and write to the 8255.  (^) RD ( Read Input ) Whenever this input line is a logical 0 and the CS input is a logical 0, the 8255 data outputs are enabled onto the system data bus.

Pin Diagram of 8255  (^) WR ( Write Input ) Whenever this input line is a logical 0 and the CS input is a logical 0, data is written to the 8255 from the system data bus  (^) A0 - A1 ( Address Inputs ) The logical combination of these two input lines determines which internal register of the 8255 data is written to or read from.  (^) RESET The 8255 is placed into its reset state if this input line is a logical 1. All peripheral ports are set to the input mode.

  • Signals of
  • Block Diagram of
  • Pin Diagram of
  • Pin Diagram of
  • Control word Format of

Modes of 8255 There are 3 I/O modes of operation for the ports of 8255. Mode 0, Mode 1, and Mode 2 1) Mode 0 - Basic I/O mode 

  1. Mode 1 - Strobed I/O mode 
  2. Mode 2 - Strobed bi-directional I/O

Modes of 8255 Mode 0 Operation It is Basic or Simple I/O. It does not use any handshake signals. It is used for interfacing an i/p device or an o/p device. It is used when timing characteristics of I/O devices is well known