230 likes | 252 Views
82C55 Programmable Peripheral Interface. By: Dr. Hetal Patel, Professor, EC Dept, ADIT. Intel 8255 PPI. About 82C55. The 82C55 is a popular interfacing component, that can interface any TTL-compatible I/O device to a microprocessor.
E N D
82C55Programmable Peripheral Interface By: Dr. Hetal Patel, Professor, EC Dept, ADIT
About 82C55 • The 82C55 is a popular interfacing component, that can interface any TTL-compatible I/O device to a microprocessor. • It is used to interface to the keyboard and a parallel printer port in PCs (usually as part of an integrated chipset). • PPI has 24 pins for I/O that are programmable in groups of 12 pins and has three distinct modes of operation.
Basic Mode Definitions and Bus Int • Mode 0 • Basic I/O • Mode 1 • Strobe I/O • Mode 2 • Bi-Dir Bus
Mode 0 (Basic Input/Output). • This functional configuration provides simple input and output operations for each of the three ports. • No “handshaking” is required, data is simply written to or read from a specified port.
Assembly Language Program • Write an ALP for reading the status of switches from Port B of 8255 and transfer the data received to port A of 8255. • Control Word: • Control word = 82H (Port A as output, Port B as input)
Assembly Language Program • MVI A , 82H ; Control word • OUT 83H ; load control word to control register • IN 81H ; read the data from switches from Port B • OUT 80H ; Transfer the bits (“0” if Pressed) to Port A