Data Bus Buffer
Data Bus Buffer
Data Bus Buffer
The 8255A is a programmable peripheral interface (PPI) device designed for use in Intel mic
systems. Its function is that of a general purposes I/O component to Interface peripheral equ
microcomputer system bush. The functional configuration of the 8255A is programmed by th
software so that normally no external logic is necessary to interface peripheral devices or st
This 3-stable bi-directional 8-bit buffer is used to interface the 8255A to the systems data bu
transmitted or received by the buffer upon execution of input or output instructions by the CP
words and status information are also transferred through the data bus buffer.
The function of this block is to manage all of the Internal and External transfers of both Data
Status words. It accepts inputs from the CPU Address and Control business and in turn, issu
to both of the Control Groups.
(CS)
Chip Select. A ¡§low¡¦ on this input pin enables the communication between the 8255A, and
(RD)
Read. A ¡§low¡¨ on this Input pin enables the 8255A to send the data or status information to
the data bus. In essence, it allows the CPU to ¡§read from the 8255A.
(WR)
Write. A. ¡§ low¡¨ on the input pin enables the CPU to write data or control words into the 82
Port Select 0 and Port Select 1. The Input signals, in conjunction with the RD and WR Input
selection of one of the three ports or the control word registers. They are normally connecte
significant bits of the address bus (A0 and A1).
http://www.pci8255.net/8255%20data%20sheet.htm 07.03.2004
8253/8254 Data Sheet for Decision Computer 8255/8254 Timer and Counter Card Seite 2 von 16
Figure 3. 8255 A Block Diagram Showing Data Bus Buffer and Read/Write Control Log
(RESET)
Reset. A ¡§high¡¨ on this Input clears the control register and all ports (A, B, C) are set to th
The functional configuration of each port is programmed by the systems software. In essenc
http://www.pci8255.net/8255%20data%20sheet.htm 07.03.2004
8253/8254 Data Sheet for Decision Computer 8255/8254 Timer and Counter Card Seite 3 von 16
¡§output¡¨ a control word to the 8255A. The control word contains information such as ¡§mo
reset¡¨, etc. that Initializes the functional configuration of the 8255A.
Each of the Control blocks (Group A and Group B) accepts commands from the Read/Write
receives control words from the internal data bus and issues the proper commands to its as
Ports A, B, and C
The 8255A contains three 8-bit ports (A , B, and C). All can be configured in a wide variety o
characteristics by the system software but each has its own special features or personally to
the power and flexibility of the 8255A.
Port A. One 8 bit data output latch/buffer and one 8-bit data input latch.
Port B. One 8-bit data output latch/buffer and one 8-bit data input buffer.
Port C. One 8-bit data output latch/buffer and one 8-bit data input buffer (no latch for input).
divided into two 4-bit ports under the mode control. Each 4-bit port contains a 4-bit latch and
for the controls signal outputs and status signal inputs in conjunction with ports A and B.
http://www.pci8255.net/8255%20data%20sheet.htm 07.03.2004
8253/8254 Data Sheet for Decision Computer 8255/8254 Timer and Counter Card Seite 4 von 16
Mode Selection
There are three basic modes of operation that can be selected by the systems software:
When the reset Input goes ¡§high¡¨ all ports will be set to the Input mode (i.e., all 24 lines wi
Impedance state). After the reset is removed the 8255A can remain in the input mode with n
required. During the execution of the systems program any of the other modes may be selec
output Instruction. This allows a single 8255A to service a variety of peripheral devices with
maintenance routine.
The modes for Ports A and Port B can be separately defined, while Port C is divided into two
the Port A and Port B definitions. All of the output registers, including the status flip-flops, wi
mode is changed. Modes may be combined so that their functional definition can be ¡§tailore
stricture. For instance; Group B can be programmed in Mode 0 to monitor simple switch clos
computational results, Group A could be programmed in Mode 1 to monitor a keyboard or ta
interrupt-driven basis.
http://www.pci8255.net/8255%20data%20sheet.htm 07.03.2004
8253/8254 Data Sheet for Decision Computer 8255/8254 Timer and Counter Card Seite 5 von 16
http://www.pci8255.net/8255%20data%20sheet.htm 07.03.2004
8253/8254 Data Sheet for Decision Computer 8255/8254 Timer and Counter Card Seite 6 von 16
The Mode definitions and possible mode combinations may seem confusing at first but after
complete device operation a simple , logical I/O approach will surface. The design of the 825
things such as efficient PC board layout, control signal definition vs PC layout and complete
almost any peripheral device with no use of the available pints.
Any of the eight bits of Port C can be Set or Reset using a single OUT put Instruction. This f
requirements in Control-based applications.
http://www.pci8255.net/8255%20data%20sheet.htm 07.03.2004
8253/8254 Data Sheet for Decision Computer 8255/8254 Timer and Counter Card Seite 7 von 16
When Port C is being used as status/control for Port A or B these Bits can be set or reset by
just as if they were data output port.
When the 8255A is programmed to operate in mode 1 or mode 2, control signals are provide
request input to the CPU. The interrupt request signal generated from port C, can be inhibite
the associated INTE flip-flop, using the bit set/reset function of port C.
This function allows the Programmer to disallow or allow a specific I/O device to interrupt the
device in the interrupt structure.
Note: All Mask flip-flops are automatically reset during mode selection and device reset.
Operating Modes
Mode 0 (Basic Input/Output). This functional configuration provides simple input operations f
¡§handshaking¡¨ is required data is simply written to or read from a specified port.
http://www.pci8255.net/8255%20data%20sheet.htm 07.03.2004
8253/8254 Data Sheet for Decision Computer 8255/8254 Timer and Counter Card Seite 8 von 16
Mode 0 Configuration
http://www.pci8255.net/8255%20data%20sheet.htm 07.03.2004
8253/8254 Data Sheet for Decision Computer 8255/8254 Timer and Counter Card Seite 9 von 16
http://www.pci8255.net/8255%20data%20sheet.htm 07.03.2004
8253/8254 Data Sheet for Decision Computer 8255/8254 Timer and Counter Card Seite 10 von 16
Operating Modes
MODE 1 (Strobed Input/Output). This functional configuration provides a means for transferr
port in conjunction with strobes or ¡§handshaking¡¨ signals. In mode 1, port A and Port B use
or accept these ¡§handshaking¡¨ signals.
STB (Strobe Input). A ¡§ low ¡§ on the input loads data into the input latch.
http://www.pci8255.net/8255%20data%20sheet.htm 07.03.2004
8253/8254 Data Sheet for Decision Computer 8255/8254 Timer and Counter Card Seite 11 von 16
A ¡§high¡¨ on this output indicates that the data has been loaded into the input latch. In esse
IBF is set by STB input being low and is reset by the rising edge of the RD input.
A ¡§high¡¨ on this output can be used to interrupt the CPU when an input device is requestin
is a ¡§one¡¨, IBF is a ¡§one ¡§ and INTE is ¡§one ¡§. It is reset by the falling edge of RD. This
device to request service from the CPU by simply strobing its data into port.
INTE A
INTE B
OBF (Output Buffer Full F/F). The OBF output will go ¡§low¡¨ to indicate that the CPU has
The OBF F/F will be set by rising edge of the WR input being low.
http://www.pci8255.net/8255%20data%20sheet.htm 07.03.2004
8253/8254 Data Sheet for Decision Computer 8255/8254 Timer and Counter Card Seite 12 von 16
ACK (Acknowledge Input). A ¡§low¡¨ on this input informs the 8255A that the data from po
essence, a response from the peripheral device indicating that it has received the data outpu
INTR (Interrupt Request). A ¡§high¡¨ on the output can be used to interrupt the CPU when
transmitted by the CPU. INTR is set when ACK is a ¡§one¡¨, OBF is a ¡§one¡¨, and INTE is a
edge of WR.
INTE A
INTE B
Controlled by bit s
of
PC2.
Combination of MODE 1
Port A and B can be Individually defined as Input or output in Mode 1 to support a wide varle
http://www.pci8255.net/8255%20data%20sheet.htm 07.03.2004
8253/8254 Data Sheet for Decision Computer 8255/8254 Timer and Counter Card Seite 13 von 16
Mode 2 (Strobed Bidirectional Bus I/O). This functional configuration provides a means fo
device or structure on a single 8-bit bus for both transmitting and receiving data (bi-direction
are provided to maintain proper bus flow discipline in a similar manner to MODE.
INTR (Interrupt Request). A high on this output can be used to interrupt the CPU for both in
Output Operations
OBF (Output Buffer Full). The OBF output will go ¡§low¡¨ to indicate that the CPU has writt
ACK (Acknowledge). A ¡§low¡¨ on this input enables the iri-state output buffer of port A to s
output buffer will be in the high impedance state.
INTE 1 (The INTE Flip-Flop Associated with OBF). Controlled by bit set/reset of PC6
Input Operations
STB (Strobe Interrupt)
STB (Strobed Input). A ¡§low¡¨ on this input loads data into the input latch.
IBF (Input Buffer Full F/F). A ¡§high¡¨ on this output indicates that data has been loaded into
INTE 2 (The INTE Flip-Flop Associated with IBF). Controlled by bit set/reset of PC4.
http://www.pci8255.net/8255%20data%20sheet.htm 07.03.2004
8253/8254 Data Sheet for Decision Computer 8255/8254 Timer and Counter Card Seite 14 von 16
There are several combinations or modes when not all of the bits in Port C are used for cont
can be used as follows:
http://www.pci8255.net/8255%20data%20sheet.htm 07.03.2004
8253/8254 Data Sheet for Decision Computer 8255/8254 Timer and Counter Card Seite 15 von 16
If Programmed as Inputs-
If programmed as Outputs-
Bits in C upper (PC7-PC4) must be individually accessed using the bit set/reset function.
Bits in C lower (PC3_Pco) can be accessed using the bit set/reset function or accessed as a
Any set of eight output buffers, selected randomly from Ports B and Ports C can source 1mA
the 8255A to directly drive Darlington type drivers and high-voltage displays that require suc
In Mode O, Port C transfers data to or from the peripheral device. When the 8255 is program
Port C generates or accepts ¡§hand shaking¡¨ signals with the peripheral device. Reading th
programmer to test or verify the ¡§status¡¨ of each peripheral device and change the program
There is co special instruction to read the status information from Port C. A normal read ope
perform this function.
OUTPUT CONFIGURATION
http://www.pci8255.net/8255%20data%20sheet.htm 07.03.2004
8253/8254 Data Sheet for Decision Computer 8255/8254 Timer and Counter Card Seite 16 von 16
http://www.pci8255.net/8255%20data%20sheet.htm 07.03.2004