ArticleslgStudy

engineering

Intel 8259

Intel 8259 is a engineering topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Intel 8259 rather than just read about it. In short: The Intel 8259 is a programmable interrupt controller (PIC) designed for the Intel 8080 and Intel 8085 microprocessors. The initial part was the 8259; the later 8259A was upward compatible and usable with the 8086 or 8088 processor.

Intel 8259 — main illustration
Intel 8259 — illustration

Key takeaways

  • Intel 8259 belongs to engineering; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Intel 8259 to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Intel 8259 from memory before moving on to harder problems.

Reference excerpt

The Intel 8259 is a programmable interrupt controller (PIC) designed for the Intel 8080 and Intel 8085 microprocessors. The initial part was the 8259; the later 8259A was upward compatible and usable with the 8086 or 8088 processor. The 8259 combines multiple interrupt input sources into a single interrupt output to the host microprocessor, extending the interrupt levels available in a system beyond the one or two levels found on the processor chip. The 8259A was the interrupt controller for the ISA bus in the original IBM PC and IBM PC AT. The 8259 was introduced as part of Intel's MCS 85 family in 1976. The 8259A was included in the original PC introduced in 1981 and maintained by the PC/XT when introduced in 1983. A second 8259A was added with the introduction of the PC/AT. The 8259 has coexisted with the Intel APIC Architecture since its introduction in symmetric multiprocessor PCs. Modern PCs have begun to phase out the 8259A in favor of the Intel APIC Architecture. However, while not anymore a separate chip, the 8259A interface is still provided by the Platform Controller Hub or southbridge on modern x86 motherboards.

Functional description The main signal pins on an 8259 are as follows: eight interrupt request input lines named IRQ0 through IRQ7, an interrupt request output line named INTR, interrupt acknowledgment line named INTA, D0 through D7 for communicating the interrupt level or vector offset. Other connections include CAS0 through CAS2 for cascading between 8259s. Up to eight slave 8259s may be cascaded to a master 8259 to provide up to 64 IRQs. 8259s are cascaded by connecting the INT line of one slave 8259 to the IRQ line of one master 8259. End of interrupt (EOI) operations support specific EOI, non-specific EOI, and auto-EOI. A specific EOI specifies the IRQ level it is acknowledging in the ISR. A non-specific EOI resets the IRQ level in the ISR. Auto-EOI resets the IRQ level in the ISR immediately after the interrupt is acknowledged. Edge and level interrupt trigger modes are supported by the 8259A. Fixed priority and rotating priority modes are supported. The 8259 may be configured to work with an 8080/8085 or an 8086/8088. On the 8086/8088, the interrupt controller will provide an interrupt number on the data bus when an interrupt occurs. The interrupt cycle of the 8080/8085 will issue three bytes on the data bus (corresponding to a CALL instruction in the 8080/8085 instruction set). The 8259A provides additional functionality compared to the 8259 (in particular buffered mode and level-triggered mode) and is upward compatible with it.

Programming considerations

MS-DOS and Windows

Programming an 8259 in conjunction with MS-DOS and Windows has introduced a number of confusing issues for the sake of backwards compatibility, which extends as far back as the original 1981 IBM PC.

MS-DOS device drivers are expected to send a non-specific EOI to the 8259s when they finish servicing their device. This prevents the use of any of the 8259's other EOI, and excludes the differentiation between device interrupts rerouted from the master 8259 to the slave 8259. The use of IRQ2 and IRQ9 from the introduction of a slave 8259 in the IBM PC/AT. The slave 8259's INT output is connected to the master's IR2. The IRQ2 line of the ISA bus, originally connected to this IR2, was rerouted to IR1 of the slave. Thus the old IRQ2 line now generates IRQ9 in the CPU. To allow backwards compatibility with DOS device drivers that still set up for IRQ2, a handler is installed by the BIOS for IRQ9 that redirects interrupts to the original IRQ2 handler. For IBM PC compatibles, the BIOS maps the master 8259 interrupt requests IRQ0–IRQ7 to interrupts INT 08–INT 0Fh). When present, the IBM PC/AT’s slave 8259 is mapped to interrupt INT 70–INT 77h. This was done despite the first 32 (INT 00-INT 1F) interrupt vectors being reserved by the processor for internal exceptions. This meant that, on later chips, handlers for lower-numbered vectors needed to differentiate between three causes:

Faults, exceptions, and traps caused incidentally. Interrupts caused by IRQ or NMI, potentially including spurious IRQs. Deliberate calls from software executing INT, breakpoint, or indirect far CALL/JMP instructions, as might be used to interact with the BIOS, operating system, or device drivers. Because of this, most operating systems that don’t make use of the BIOS will configure the interrupt controller(s) to avoid the reserved vector range entirely. In protected mode, the OS can restrict use of INT instructions to specific vectors only (e.g., Linux exposes INT 80h for system calls), and any attempt to use a disallowed vector will raise a protection fault. This avoids some of the need for cause determination in interrupt vector handlers, although spurious interrupts and IRQ-sharing can still complicate matters. Fortunately, most peripheral devices can be queried with regards to outstanding IRQs, and if no source can be found an interrupt can be treated as spurious or ignored altogether.

Other operating systems Since most other operating systems allow for changes in device driver expectations, other 8259 modes of operation, such as Auto-EOI, may be used. This is especially important for modern x86 hardware in which a significant amount of time may be spent on I/O address space delay when communicating with the 8259s. This also allows a number of other optimizations in synchronization, such as critical sections, in a multiprocessor x86 system with 8259s.

Edge and level triggered modes Since the ISA bus does not support level triggered interrupts, level triggered mode may not be used for interrupts connected to ISA devices. This means that on PC/XT, PC/AT, and compatible systems the 8259 must be programmed for edge triggered mode. On MCA systems, devices use level triggered interrupts and the interrupt controller is hardwired to always work in level triggered mode. On newer EISA, PCI, and later systems the Edge/Level Control Registers (ELCRs) control the mode per IRQ line, effectively making the mode of the 8259 irrelevant for such systems with ISA buses. The ELCR is programmed by the BIOS at system startup for correct operation. The ELCRs are located 0x4d0 and 0x4d1 in the x86 I/O address space. They are 8-bits wide, each bit corresponding to an IRQ from the 8259s. When a bit is set, the IRQ is in level triggered mode; otherwise, the IRQ is in edge triggered mode.

… excerpt ends here. Continue reading the full article.

Illustrations

Intel 8259: Closeup of an Intel 8259A IRQ chip from a PC XT.
Closeup of an Intel 8259A IRQ chip from a PC XT.
Intel 8259: Pinout
Pinout
Intel 8259: NEC D8259AC, used on the original IBM PC motherboard.
NEC D8259AC, used on the original IBM PC motherboard.

Worked examples

Example 1 — a first encounter with Intel 8259

Start with the simplest possible case. Write down what Intel 8259 claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In engineering, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Intel 8259 before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Intel 8259 ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Intel 8259

In research
Intel 8259 appears in engineering research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Intel 8259 in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Intel 8259 is common in secondary-school and first-year university syllabi. It links to neighbouring topics IBM PC compatibles, Input/output integrated circuits, Intel chipsets, so understanding it makes those chapters shorter.
In everyday life
Look for Intel 8259 outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Intel 8259” →

How to study Intel 8259 in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Intel 8259 means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Intel 8259 out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Intel 8259 in simple terms?

The Intel 8259 is a programmable interrupt controller (PIC) designed for the Intel 8080 and Intel 8085 microprocessors. The initial part was the 8259; the later 8259A was upward compatible and usable with the 8086 or 8088 processor.

Why does Intel 8259 matter?

Because it connects several engineering ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Intel 8259?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Intel 8259.

Tags

  • IBM PC compatibles
  • Input/output integrated circuits
  • Intel chipsets
  • Interrupts

Keep exploring