First page Back Continue Last page Overview Graphics
Memory mapped I/O vs. Direct I/O
Memory mapped I/O
- Easier to program -- supported by all instructions and addressing modes.
- Requires more complex hardware address decoding circuits.
- Need special instructions in programming.
- Uses simpler address decoding circuits.
- Makes it easier to handle timing differences between I/O and memory.
The advantage of direct I/O is that the hardware circuit is usually simpler, since the number of I/O ports is limited. Partial decoding techniques can be used to design the address decoding circuit. When memory mapped I/O is used, full address decoding is needed, which results in a more complex hardware circuit.
The advantage of memory mapped I/O is that all instructions and addressing modes can be used for I/O access. This makes programming easier. When Direct I/O is supported, many microprocessors provide limited instructions and addressing modes for I/O access. These limitations make programming I/O access is more cumbersome.