Interfacing
Interfacing: Interface is the path for communication between two components. Interfacing is of two
types, memory interfacing and I/O interfacing.
The microprocessor cannot do anything by itself therefore, It needs to be linked with memory, extra
peripherals, or IO devices. This linking is called Interfacing.
Block Diagram of Memory and I/O Interfacing
The interfacing of the I/O devices in 8085 can be done in two ways :
1. Memory-Mapped I/O Interfacing :
In this kind of interfacing, we assign a memory address that can be used in the same manner as we use a
normal memory location.
2. I/O Mapped I/O Interfacing :
A kind of interfacing in which we assign an 8-bit address value to the input/output devices which can be
accessed using IN and OUT instruction is called I/O Mapped I/O Interfacing.
Difference between Memory-Mapped I/O Interfacing and I/O Mapped I/O Interfacing :
Features Memory Mapped IO IO Mapped IO
IO devices are accessed like They cannot be accessed like any other
Addressing any other memory location. memory location.
They are assigned with 16-bit
Address Size address values. They are assigned with 8-bit address values.
The instruction used are LDA
Instructions Used and STA, etc. The instruction used are IN and OUT.
Cycles involved during
operation are Memory Read, Cycles involved during operation are IO read
Cycles Memory Write. and IO writes in the case of IO Mapped IO.
Any register can
communicate with the IO
Registers device in case of Memory Only Accumulator can communicate with IO
Communicating Mapped IO. devices in case of IO Mapped IO.
216 IO ports are possible to be Only 256 I/O ports are available for
Space Involved used for interfacing in case of interfacing in case of IO Mapped IO.
Er.Binay Yadav Page 1
Interfacing
Memory Mapped IO.
During writing or read cycles
(IO/M` = 0 ) in case of During writing or read cycles (IO/M` = 1) in
IO/M` signal Memory Mapped IO. case of IO Mapped IO.
No separate control signal
required since we have
unified memory space in the Special control signals are used in the case of
Control Signal case of Memory Mapped IO. IO Mapped IO.
Arithmetic and logical
Arithmetic and operations are performed Arithmetic and logical operations cannot be
Logical directly on the data in the performed directly on the data in the case of
operations case of Memory Mapped IO. IO Mapped IO.
Er.Binay Yadav Page 2