×

8255 Microprocessor Operating Modes

8255 microprocessor was invented by intel in the year 1980s. 8255 microprocessor is a general-purpose microprocessor that can be programmed. 8255 is mostly used as an interface between devices like Analog to digital or Digital to analog converters or Keyboards with the Central processing unit. This microprocessor is programable according to the interface device.

Operting Modes of 8255

There are two operating modes for the 8255 microprocessor:

  • Bit set Reset Mode
  • Input/ Output Mode

1. Bit Set Reset Mode:

Setting or resetting bits on Port-C is the only function of Bit Set Reset Mode. Bit set reset mode D7 port will always be 0. As you can see, the control register looks like this:

BitsD7D6D5D4D3D2D1D0
Values0XXXPC bit NumberPC bit NumberPC bit Number0 or 1

Changing the bit requires loading the bit pattern into the control register. Bits D3, D2, and D1 can be 000 or 111. If the user once sets the bit, then until the user unsets the bit, those bits will be set.

D3D2D2
000
001
010
011
100
101
110
111

Changes to a bit can be made only after the bit pattern has been loaded into the control register.

2. Input/output mode(I/O):

We can use this mode when the D7 bit in the control register is set.

Input/Output mode has three different modes, which are Mode 0, Mode 1, and mode 3

  • Mode 0: Simple or basic input/output mode

This mode can handle the interrupts. When we use this mode, all ports A, B and C will be used as Input or output mode. There is a latch between the outputs but no latch between the inputs.

  • Mode 1: Handshake or strobed Input / Output:

This mode allows ports A and B as input and output ports and C as handshaking ports. Like the previous mode, this mode also has interrupts that can be handled and single control for CPU, Input, and output devices to match their speeds. Unlike the previous mode, 0, this mode has inputs and outputs latched.

  • Mode 3- Bidirectional Input / Output

The only port that can work in this mode is port A, while port B is either in mode 0 or 1, and port C is used for handshaking. Inputs and outputs are both latched in this mode. When the control register is in this mode, it looks like this :

8255 Microprocessor Operating Modes

BSR modes use the most significant bit (D7) as 1, while input and output mode uses the most significant bit (D7) as 0.

The D6 and D5 bits are used to set the port A mode.

D6D5Mode
00M0
00M1
0XM2

Now let's discuss other bits in this mode:

D4 bit: The value of D4 tells whether port A is taking Input or displaying the result. If the value is 1, it takes Input. Otherwise, it displays the result.

D3 bit: Port C high bits are used to determine whether an input or output is being taken. If D3 is 1, then port C is taking Input. Otherwise, the output is displayed.

D2 bit: The value of D2 indicates the mode in which port B is operating. If it is zero, then the port is in m0 mode; otherwise, it is in m1 mode.

D1 bit: This field indicates whether port B is taking Input or displaying the result. It should be 1 if it is taking Input. Otherwise, it should be displayed.

D0 bit: Port c lower bits are used to determine whether Input is being taken or output is being displayed. Initially, if D0 is 1, then Input is being taken. Otherwise, the output is displayed.

Resetting the 8255 microprocessor will clear the control word register contents, setting all ports to Input.


Related Topics

8085 Pin Configuration

Introduction: Intel 8085 is consist 40 pin IC. The pin name of 8085 is A8 – A15; AD0 – AD7; ALE; IO/M; S0, S1; RD; WR; READY; HOLD; HLDA; INTR; INTA;...

6 minutes read.

Biconnectivity in a Graph

What is a Graph? A graph is a structure where values are stored at the vertex, and the relation between vertices is denoted by edges. In a graph, if there is only...

4 minutes read.

8086 Microprocessor Pin Configurations

8086 microprocessor is invented and developed by Intel in 1976. The 8086 Microprocessor is an enhanced version of the 8085 Microprocessor. There are 20 address lines and 16 data lines...

6 minutes read.

8085 Arithmetic Instructions

Arithmetic instructions are a type of instruction in a computer's instruction set that perform arithmetic operations on data. These operations can include addition, subtraction, multiplication, and division. Arithmetic instructions can...

4 minutes read.

Data Transfer and Manipulation

What is Data Transfer? In computer architecture, data transfer refers to the movement of data between different components within a computer system. These components can include the central processing unit (CPU),...

6 minutes read.

Ethernet Frame Format

What is Ethernet? As we know in computer networking, LAN (Local Area Network) is used to connect devices in limited geographical areas like schools or a building.LAN uses different topologies (arrangement...

3 minutes read.

Assembly Language Register

Assembly Language Register Assembly language was introduced during the late 1940s in the second generation. It is a low-level language that helps in communication between the user and the computer. It...

6 minutes read.

CPU Registers

CPU Registers Within the CPU, we have small- small storage units called registers. If we are executing a certain program within the CPU, there's a need to store that program content,...

11 minutes read.

Flag Register of 8086 Microprocessor

In this article, we are going to study about the one of the registers named flag registers of 8086 microprocessor. We are also going to know where and how to...

3 minutes read.

Microprocessor classification

Introduction: Microprocessor is known as the computer processor. The IC or integrated Circuit makes the microprocessor. that is the brain of the computer machine. The microprocessor is known as the...

6 minutes read.

8255 Microprocessor Operating Modes

8255 microprocessor was invented by intel in the year 1980s. 8255 microprocessor is a general-purpose microprocessor that can be programmed. 8255 is mostly used as an interface between devices like...

3 minutes read.

Instruction Cycle: Computer Organization and Architecture

What is an effective Address? “Effective address is the address of operand in a computation-type instruction.” Computation type instructions are like ADD, SUB, MOV, OR, AND, etc., which require operand to...

4 minutes read.

Advantages and Disadvantages of Flash Memory

What is Flash Memory? Electrically Erasable Programmable Read-Only Memory (EEPROM) and Erasable Programmable Read-Only Memory (EPROM) are used for flash memory (EEPROM). Although technically the word flash is used in the industry...

3 minutes read.

COA: Interrupt and its types

Introduction: In general terms, the word interrupt means to stop the progress of ongoing work in between or to break the continuation of the work. In early digital computing, the...

5 minutes read.

IEEE Standard 754 Floating Point Numbers

Floating Point Representation: IEEE- 754 There were many problems in the conventional representation of floating-point notation like we could not express 0(zero), infinity number. To solve this, scientists have given a...

8 minutes read.

Types of Microprocessors

Introduction:Microprocessor is known as the computer processor. The IC or integrated Circuit makes the microprocessor. That is the brain of the computer machine.  The microprocessor is the Processor or CPU (Central...

3 minutes read.

Use Case Diagram for the online bank system

What is a Use Case Diagram? A tool is called a Use Case Diagram which is used to create, present, and comprehend the functional requirements for a system. The Use Case...

3 minutes read.

Bipartite Graph

A graph is said to be bipartite if and only if we can divide all the vertices of a graph into two sets such that these sets are mutually exclusive...

4 minutes read.

Convert a number from base 2 to base 6

Base 2 Base 2 is the format where you can represent any number with just two values which are 0 and 1. With the help of 0s and 1s, we can...

4 minutes read.

74138 IC DECODER

74138 DECODER Decoder A combinational circuit called a decoder can have up to 2n output lines and 'n' input lines. When a decoder is enabled, depending on the mix of inputs,...

4 minutes read.