02Chapter 2: Memory-mapped and isolated I/OThis chapter assumes you know the basics of computer organization (CPU, registers, memory, buses), the instruction cycle, and binary and hexadecimal numbers. It also assumes you have read the previous chapter on I/O interface modules and their status, control and data registers.9 min read
03Chapter 3: Programmed I/O and pollingThis chapter assumes you know the instruction cycle, how a CPU reads and writes registers and memory over a bus, and basic hexadecimal and bit masking. It also assumes you have seen the idea of device registers (status, control, data) and of memory-mapped versus isolated addressing from the previous8 min read
04Chapter 4: Interrupt-driven I/OThis chapter explains how a device can tell the CPU that it needs attention, so the CPU doesn't have to keep asking. It assumes you know the instruction cycle (fetch, decode, execute), how a subroutine call uses the stack, and the idea of status, control and data registers from the earlier chapters 7 min read
05Chapter 5: What happens when an interrupt occursThis chapter assumes you know the instruction cycle (fetch, decode, execute), how the stack and subroutine call/return work, and the idea of interrupt-driven I/O from the previous chapter. Here you follow one interrupt from the device's request signal to the first instruction after the return. GATE 8 min read
06Chapter 6: Interrupt types, masking, vectoring and daisy-chain priorityThis chapter assumes you know the instruction cycle, how a stack and subroutine call/return work, and how hexadecimal addresses are written. It also assumes you have read the previous chapter on the interrupt handling cycle: the CPU finishes the current instruction, saves the program counter (PC) an9 min read
07Chapter 7: Why DMA: moving blocks without the CPUThis chapter assumes you know the instruction cycle, the roles of the CPU, memory and system bus, how programmed I/O polls a status register, and how an interrupt is accepted and serviced by an ISR. We now ask what remains expensive about interrupt-driven I/O, and how direct memory access (DMA) remo7 min read
08Chapter 8: How a DMA controller works: registers and bus handshakeThis chapter assumes you know the concepts from the earlier chapters. These are the I/O interface and its registers, memory-mapped I/O, and interrupt-driven I/O with the interrupt cycle. It also assumes you can read hexadecimal addresses and know how the address, data and control buses connect the C8 min read
09Chapter 9: Burst, cycle stealing and transparent DMAThis chapter assumes you know the DMA controller's registers and the bus request and grant handshake from the previous chapter. It also assumes you can do basic rate arithmetic. Here we look at how a DMA controller shares the system bus with the CPU while a block moves. The three standard answers ar8 min read
10Chapter 10: Calculating CPU overhead and transfer ratesThis chapter assumes you know the instruction cycle, clock cycles and clock frequency, and the basic ideas of polling, interrupt-driven I/O and DMA from the earlier chapters. It also assumes you can convert between seconds, milliseconds, microseconds and nanoseconds.8 min read
11Chapter 11: Comparing the three techniques and solving GATE-style problemsThis chapter assumes you know the basics of I/O interface registers, memory-mapped and isolated I/O, programmed I/O with polling, the interrupt cycle with the interrupt service routine (ISR), and the DMA controller with its bus request and grant handshake. Here you will put the three techniques side9 min read