Basic I O Interfacings
Basic I O Interfacings
Memory Interfacing and I/O Interfacing are the two main types of interfacing.
Isolated I/O:
In Isolated I/O, IN, OUT, INS and OUTS instructions are used for interfacings.
The most common I/O Transfer technique.
In isolated I/O, the memory address space and I/O address space are
separate from each other.
Separate control signal such as I/O read and I/O write signals
are used for the operations.
Basic I/O Interfacing
Methods of Interfacings:
Memory-mapped I/O:
Unlike Isolated I/O, IN, OUT, INS and OUTS instructions are not used for
interfacings. Instead it used any instructions (such as MOV, ADD, SUB etc.) that
transfer data between the microprocessor and memory.
The main advantages of memory-mapped I/O is that any memory transfer can
be used to access the I/O device.
The main disadvantage is that a portion of memory system is used as the I/O
map. This reduces the memory available to the applications.
Separate control signal such as I/O read and I/O write signals
are nor required for the operations.
Basic I/O Interfacing
Methods of Interfacings:
(a) (b)
Fig. Methods of interfacings: (a) Isolated I/O and (b) Memory mapped I/O
Basic I/O Interfacing
Basic Input/Output Interface:
The
Thebasic
basicinput
inputdevice
deviceisisaathree
threestate
statebuffer.
buffer.
The basic output device is a set of data latch.
Assembly code:
Basic I/O Interfacing
Mode 1 Strobed Output:
Basic I/O Interfacing
Mode 1 Strobed Output:
Basic I/O Interfacing
Mode 1 Strobed Output:
Basic I/O Interfacing
Example of Mode 1 Strobed Output:
Basic I/O Interfacing
Example of Mode 1 Strobed Output:
Basic I/O Interfacing
Example of Mode 1 Strobed Output:
Assembly code:
Basic I/O Interfacing
Mode 2 Bidirectional Operation:
Basic I/O Interfacing
Mode 2 Bidirectional Operation:
Basic I/O Interfacing
Example o Mode 2 Bidirectional Operation for transmitting data:
Assembly code:
Basic I/O Interfacing
Example o Mode 2 Bidirectional Operation for receiving data:
Assembly code:
Basic I/O Interfacing
82C55 Mode Summary:
Thank you