










Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!











8255 PPI: A general-purpose programmable Input/Output device designed by Intel to interface a microprocessor (8085, 8086, etc.) with external peripherals such as an ADC, DAC, keyboard, printer, and similar devices.
Data Bus Buffer: Acts as an interface between the internal bus of the 8255 and the system data bus (D0–D7); it is bidirectional and tri-state.
Read/Write Control Logic: Manages all internal and external data transfers based on the RD', WR', A0, A1, RESET, and CS' signals.
Group A Control: Controls Port A (PA7–PA0) and the upper nibble of Port C (PC7–PC4). It receives control signals from the internal data bus (the control word) and forwards them to the respective ports.
Group B Control: Controls Port B (PB7–PB0) and the lower nibble of Port C (PC3–PC0), working the same way as Group A Control.
Port A, Port B, Port C: Three 8-bit bidirectional I/O ports through which actual data is exchanged with external peripherals.
The functioning mode of the 8255 is decided by the control word written into the control register. The most significant bit (D7) of the control word determines whether the chip works in BSR mode or I/O mode.
BSR Mode: If the MSB of the control word (D7) is 0, the PPI works in BSR mode. In this mode, only the bits of Port C can be individually set or reset; the rest of the control word bits select which bit of Port C is affected and whether it is set or reset.
Input-Output Mode: If the MSB of the control word (D7) is 1, the PPI works in Input- Output mode. This mode is further divided into three sub-modes: Mode 0, Mode 1, and Mode
In this mode, all three ports (Port A, Port B, Port C) can work as a simple input function or a simple output function. There is no interrupt handling capability in this mode.
In this mode, either Port A or Port B can work as a simple input port or a simple output port, while the bits of Port C are used for handshake signals that occur before the actual data transmission. Mode 1 has interrupt handling capacity, and both input and output data are latched.
Example: When a CPU wants to transfer data to a printer, the processor is much faster than the relatively slow printer. So, before the actual data transfer, the CPU sends handshake signals to the printer to synchronize the speed difference between the CPU and the peripheral.
In this mode, only Port A can work in this bidirectional fashion, while Port B can work either in Mode 0 or Mode 1. The bits of Port C are used as handshake signals. Mode 2 also has interrupt handling capacity.
HOLD: Hold signal — sent by the DMA controller to the CPU requesting control of the buses.
HLDA: Hold Acknowledgment — sent by the CPU to the DMA controller granting control of the buses.
DREQ: DMA Request — sent by a peripheral device to the DMA controller requesting a DMA transfer.
DACK: DMA Acknowledgment — sent by the DMA controller to the peripheral device confirming that its DMA request has been granted.
DRQ0–DRQ3: The four individual channel DMA request inputs, used by peripheral devices to request DMA services. In fixed priority mode, DRQ0 has the highest priority and DRQ has the lowest.
DACK0'–DACK3': Active-low DMA acknowledge lines that update the requesting peripheral about the status of its request; they can also act as strobe lines for the requesting devices.
Only one channel is used, meaning only a single DMAC is connected to the bus system.
Multiple channels are used, and additional DMACs can be cascaded to further increase the number of channels available.
Improved performance: DMA frees the CPU to perform other tasks while data is transferred between memory and I/O devices, allowing faster and more efficient data transfer.
Reduced CPU overhead: The CPU is not required to be involved in the data transfer, which reduces its overhead and lets it focus on other tasks — particularly useful in real-time systems needing low latency and fast response.
Support for high-bandwidth devices: DMA can support high-bandwidth devices such as graphics cards and network interfaces that require fast data transfer rates.
Efficient use of system resources: DMA allows multiple devices to access memory simultaneously, making more efficient use of system resources.
Complexity: DMA requires specialized hardware and software to function, adding to system complexity and making it harder to implement and troubleshoot.
Security risks: If not properly configured or secured, DMA can be a security risk — attackers can exploit DMA vulnerabilities to gain unauthorized access to a system or steal data.
Limited control: Since the CPU is not involved in the data transfer, it has limited control over the transfer process, which can lead to data corruption or errors if not properly managed.
Resource conflicts: DMA can lead to resource conflicts if multiple devices try to access memory simultaneously, potentially causing instability and performance issues.
Intel 8259: A Programmable Interrupt Controller (PIC). The 8085 microprocessor has 5 hardware interrupts and the 8086 has 2 hardware interrupts. By connecting an 8259 to these microprocessors, their interrupt-handling capability can be increased, since the 8259 combines multiple interrupt input sources into a single interrupt output line.
Interrupt Request Register (IRR): Stores all the interrupt levels that are currently requesting interrupt service.
Interrupt Service Register (ISR): Stores the interrupt level that is currently being executed.
Interrupt Mask Register (IMR): Stores the interrupt levels that are to be masked, by holding the masking bits for each interrupt level.
Priority Resolver: Examines the IRR, ISR, and IMR, and sets the priority of pending interrupts. The interrupt with the highest priority is placed into the ISR register, and the already-serviced interrupt level is reset in the IRR.
Cascade Buffer: Used to increase interrupt-handling capability by cascading additional 8259 chips. The CAS0–CAS2 lines are used to control the resulting multiple-interrupt structure.
SP/EN' (Slave Program/Enable Buffer): When set high, the chip works in master mode; otherwise it works in slave mode. In Non-Buffered mode, SP/EN' specifies whether the 8259 acts as master or slave; in Buffered mode, SP/EN' is used as an output to enable the data bus.
The different modes of operation of the 8259 are programmed by setting the bits of its ICW (Initialization Command Words) or OCW (Operation Command Words).
Used to set and reset the mask bits in the Interrupt Mask Register (IMR). Bits M7–M describe the 8 mask bits, one per interrupt line.
Used to select the mode of operation of the 8259. Bits L2–L0 describe the interrupt level on which the action needs to be performed.
Device Full Form Primary Function Key Capacity 8255 Programmable Peripheral Interface (PPI)
General-purpose parallel I/O interfacing
3 ports x 8 bits (Port A, B, C); Modes 0, 1, 2, BSR 8257 DMA Controller High-speed direct data 4 channels, 16-