Here we come with a new topic operational modes of 8255 PPI IC. In my previous post I discussed on details of “Programmable Peripheral Interface (PPI) IC 8255”. Now here we see how we can classified 8255 PPI IC depending upon its operational modes. The operational modes of 8255 PPI IC can be classified into two broad groups.
- I/O Mode
- BIT Set Reset (BSR) modes.
Further I/O mode subdivided into three groups.
- 1) Mode 0
- 2) Mode 1
- 3) Mode 2.
Now we go for some elaborate discussion on all the operational modes of 8255 PPI IC.
I/O Mode
I/O mode refer as input/output mode. So for any input/output operation of microprocessor this mode will activated. As we know the input/output mode can further subdivided into three groups:
- Mode 0 – Simple Input/output mode
In this mode the 8 bit port A (PA0-PA7) of 8255 IC can be configured as input or output port. In the similar fashion port B (PB0-PB7) can also configured as input or output operation. However there is flexibility for the port C. It can be divided into two 4 bit ports, the port CLower (PC0-PC3) and port CUpper (PC4-PC7). Each of them can set independently for input or output operation. In this way we can say there are four ports (port-A, port-B, port CLower and port CUpper) and each of them can set either as an input port or an output port.
Here these ports are simple input or output ports. That means these ports can work without handshaking. In this mode the outputs are latched whereas the inputs are not latched.
Mode 1 – Strobed Input/output or Handshake mode
Mode 1 is a second mode of 8255 I/O mode. In this mode of operation handshaking can used for the input or output data transfer. Another important think we have to remember that there are two groups in 8255 PPI, Group A and Group B. Both these groups have one 8-bit port and one 4-bit port.Group A consist Port-A and Port CUpper. And group B consist Port-B and Port CLower. The 8-bit port of each group can be programmed for input or output operation with latched input and latched output facilities. The bits of Port C used for handshaking.
Mode 2 – Bidirectional Mode
So the final mode of 8255 is Mode 2. In this mode Port A can be programmed to operate as a bidirectional port. When Port A programmed in this mode of operation, Port B can used either in Mode 0 or Mode 1. For mode 2 operation PC3 to PC7 bits used for handshaking. In this mode too both inputs and outputs are latched.
Bit Set/Reset Mode
In BSR mode, any of the 8-bits of port C can Set or reset using a single control word written into the control register. Because of this facility it helps the programmer to control the port C pin output individually. It is also uses in mode 1 and mode 2 operation. In bellow you will find the control word format for BSR mode.
Hope this discussion on operational modes of 8255 PPI IC will cleared your concept regarding that.
Let’s check how you learn 8255 PPI with a simple quiz.
0 of 5 questions completed Questions: MCQ on 8255 PPI You have already completed the quiz before. Hence you can not start it again. Quiz is loading... You must sign in or sign up to start the quiz. You have to finish following quiz, to start this quiz: 0 of 5 questions answered correctly Time has elapsed You have reached 0 of 0 points, (0) Programmable peripheral input-output port is other name for Port C of 8255 can function independently as All the functions of the ports of 8255 are achieved by programming the bits of an internal The port that is used for the generation of handshake lines in mode 1 or mode 2 is The pin that clears the control word register of 8255 when enabled is8255 PPI
Quiz-summary
Information
Results
Average score Your score Categories
1. Question
2. Question
3. Question
register called 4. Question
5. Question