This action might not be possible to undo. Are you sure you want to continue?
• It has 24 input/output lines which may be individually programmed in two groups of 12 lines each. or three groups of eight lines.Introduction • It is also known as programmable peripheral input-out port. 16-bit high capacity microprocessor. • The Intel's 8255 is designed for use with Intel's 8-bit. .
• The two groups of I/O pins are named as Group A and Group B • Each of these two groups contain subgroup of 8 I/O lines called as 8-bit port and another subgroup of four I/O lines or a 4-bit port.Continue.. .
Pin diagram .
Block diagram .
Continue. Data is transmitted or received by the buffer upon execution of input or output instructions by the CPU.. Control words and status information are also transferred through the data bus buffer . • Data Bus Buffer: This bidirectional 8-bit buffer is used to interface the 8255 to the system data bus.
. • (CS) Chip Select: A “low” on this input pin enables the communication between the 8255 and the CPU. • Read/Write and Control Logic: The function of this block is to manage all of the internal and external transfers of both Data and Control or Status words. .Continue.
it allows the CPU to “read from” the 8255. • (WR) Write: A “low” on this input pin enables the CPU to write data or control words into the 8255. In essence. in conjunction with the RD and WR inputs.. • (A0 and A1): Port Select 0 and Port Select 1. . They are normally connected to the least significant bits of the address bus (A0 and A1).Continue. These input signals. control the selection of one of the three ports or the control word register. • (RD) Read: A “low” on this input pin enables 8255 to send the data or status information to the CPU on the data bus.
Operational description • There are two basic modes of operation of 8255 . while in BSR mode only port C(PC0-PC7) can be used to set or reset individual port bits. the 8255 ports work as programmable I/O ports. . • In the I/O mode .I/O mode and Bit Set-Reset mode(BSR).
BSR MODE • Any of the eight bits of Port C can be Set or Reset using a single Output instruction. . these bits can be set or reset by using the Bit Set/Reset operation just as if they were output ports. • When Port C is being used as status/control for Port A or B. • This feature reduces software requirements in control-based applications.
MODE 0 • Mode 0 (Basic Input/output): provides simple input and output operations for each of the three ports. written to or read from a specific port. • Mode 0 Basic Functional Definitions: Two 8-bit ports and two 4-bit ports Any Port can be input or output 16 different Input/output configurations possible .
Initialize PORT A as O/P port. . Port A address should be 10h.Example Interface an 8255 with 8085 to work as an I/O port. PORT B as I/P port and PORT C as O/P port.
Interfacing 8255 with 8085 .