Quick links
Latest articles
Internship
Members
New...
Algorithms
Discrete Mathematics
Big data
Languages
C
C++
C++ STL
Java
Data Structure
C#.Net
Android
Kotlin
SQL
Web
PHP
Python
JavaScript
CSS
Ajax
Node.js
Web prog.
Programs
C
C++
DS
Java
C#
Python
Aptitude
C
C++
Java
DBMS
Interview
C
Embedded C
Java
SEO
HR
CS Subjects
CS Basics
O.S.
Networks
DBMS
Embedded Systems
Cloud Computing
Machine learning
CS Organizations
Linux
DOS
More...
Articles
Puzzles
News/Updates

Home » Embedded Systems

The 8255 programmable IC



Here, we are going to learn about the 8255 programmable IC: its introduction, ports of 8255, architecture of 8255, pin diagram, modes etc.
Submitted by Ayush Sharma, on November 02, 2018

Introduction

An 8255 programmable integrated circuit (IC) is an IC used for interfacing the microprocessor with the peripheral devices. It is a 40 pin IC which was introduced by INTEL to use with its 8085 and 8086 microprocessors.

Ports of 8255

There are three input/output 8-bit ports in this IC namely port A, port B, port C. The port C can be divided into two each of 4 bits(C upper and C lower) according to requirement.

Architecture of 8255

Architecture of 8255

Pin diagram of 8255

Pin diagram of 8255
  • The pins 1-4 and 37-40 are for Port A(PA0-PA7).
  • The pins 18-25 are for port B(PB0-PB7).
  • The pins 10-17 are for port C(PC0-PC7).
  • The pins 27-34 are for data bus(D0-D7) linked to the microprocessor.
  • The RD(5) and WR(36) are two low active pins for reading and write operations respectively. When a low signal is sent to the pin no 5 it means a read operation is performing. Similarly, when a low signal is sent to pin no 36 this means the write operation is being performed.
  • The CS(chip select) is another low active pin that works as an enable to the IC.
  • The A0 and A1 are the control logic at 8 and 9.
  • A0 A1
  • 0 0 port A
  • 0 1 port B
  • 1 0 port C
  • 1 1 Control Word logic(CWR)
  • These select the ports.
  • The RESET pin at 35 used to reset the IC.
  • The ground(7) and Vcc(26) are also present to establish the potential difference.

Modes of 8255

This IC works in 3 modes

  1. Mode 0 in which all the three ports act as input-output ports.
  2. Mode 1 in which only port A and port B act as input-output port while port C is used for handshaking.
  3. Mode 2 in which only port A is used as a bidirectional port for both input-output.

Control word logic (CWL)

Everything in the 8255 IC is dependent on the CWL. There are 8 bits in the CWL:

CWL
  1. D0 port Clower
  2. D1 port B
  3. D2 Mode
  4. D3 port Cupper
  5. D4 port A
  6. D5 Mode
  7. D6 Mode
  8. D7 BSR(Bit Set Reset)/I/O mode

We can set the CWL by using the IN and OUT command of the respective microprocessor.






Quick links:
C FAQ(s) C Advance programs C/C++ Tips & Tricks Puzzles JavaScript CSS Python Linux Commands PHP Android Articles More...

Featured post:
Introduction to Linux (Its modes, Safety, Most popular Applications)
Linux Best Distribution Software (Distros) of 2018

Was this page helpful? Please share with your friends...

Are you a blogger? Join our Blogging forum.

Comments and Discussions



Languages: » C » C++ » C++ STL » Java » Data Structure » C#.Net » Android » Kotlin » SQL
Web Technologies: » PHP » Python » JavaScript » CSS » Ajax » Node.js » Web programming/HTML
Solved programs: » C » C++ » DS » Java » C#
Aptitude que. & ans.: » C » C++ » Java » DBMS
Interview que. & ans.: » C » Embedded C » Java » SEO » HR
CS Subjects: » CS Basics » O.S. » Networks » DBMS » Embedded Systems » Cloud Computing » Machine learning » CS Organizations » Linux » DOS
More: » Articles » Puzzles » News/Updates



© https://www.includehelp.com (2015-2018), Some rights reserved.