×

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

BCD to 7 Segment Decoder

What is BCD? BCD is called Binary Coded Decimal. As you know there are a lot of forms in which we can represent the number like Binary, decimal, hexadecimal, and octal...

3 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.

CarryLook Ahead Adder

What is Adder? Adder is the combinational circuit that is used to add the bits in digital electronics. As we know, in the digital system, every number is represented in the...

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.

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.

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.

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.

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.

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.

Control Signals in 8155 Microprocessor

Intel designed the chip 8155 used to interface with I/O devices. Basically, the 8085 microprocessor is directly unable to deal with its peripheral input output devices for reading data or...

3 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.

Addressing Modes

Introduction: Addressing Modes An instruction consists of two parts opcode and operands. Opcode tells the operation going to perform, and operand information is the address of the operand. The CPU interprets...

8 minutes read.

Control Unit Organization

Control Unit Organization The Control Unit is the unit in the CPU, which controls the various components like input  & output devices, logic unit and memory. The Control Unit is the...

7 minutes read.

Computer Organization and Architecture Data Formats

Data Formats In the digital world, everything is based on digits. In every method, the calculation is processed on the digits, and most importantly, the computer only understands the binary language...

6 minutes read.

Basic Terminologies Related to COA

Some Basic Terminologies Related to COA Computer organization and architecture is the detailed study of the internal components of the computer with their functionality. It describes how components arranged together and...

7 minutes read.

Computer Organization and Architecture Tutorial

Introduction to Computer Organization and Architecture In this modern era, or we can say computer era, Technology from all around surrounds us. Human is conserved, connected and absorbed by Technology. From...

4 minutes read.

Instruction Pipelining and Pipeline Hazards

Instruction Pipelining and Pipeline Hazards To apply pipeline, the prerequisite is to perform the same processing over multiple inputs, then pipelining is important. So instruction execution is the best example for...

10 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.

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.

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.