PadhaikoAll subjects

Past exam question: 2082 Kartik (Back), Q8

Microprocessors · 3 marks

Open in the Padhaiko app

Topic: Memory Hierarchy & I/O/Memory Interfacing with 8085

Question

Differentiate between Memory mapped I/O and I/O mapped I/O.

Solution

Architectural Comparison:

Comparison Table:

FeatureMemory Mapped I/OI/O Mapped I/O (Isolated I/O)
Address Width16-bit address (A15–A0)8-bit address (A7–A0 replicated on A15–A8)
Address SpaceShares 64 KB address space with memorySeparate 256 input and 256 output ports
Control SignalsMEMR_bar, MEMW_bar (IO/M_bar = 0)IOR_bar, IOW_bar (IO/M_bar = 1)
Instructions UsedAny memory instruction (MOV, LDA, STA, ADD M)Only dedicated IN and OUT instructions
Data RegisterAny general-purpose registerOnly Accumulator (Reg A)
Hardware DecodingFull 16-bit address decoding requiredSimpler 8-bit address decoding
Memory AvailableReduces total memory addressable for RAM/ROMPreserves full 64 KB memory space
Execution SpeedUsually 3 bytes / 13 T-states2 bytes / 10 T-states
Answer:

Memory mapped I/O treats devices as memory using 16-bit addresses and standard memory instructions (reducing RAM/ROM space), while I/O mapped I/O uses an isolated 8-bit port space with dedicated IN/OUT instructions and IOR/IOW strobes.

All past exam questions for Microprocessors