Professional Documents
Culture Documents
MEMORY SEGMENTATION
AND INTERFACING
[ECEg 4161] – Microcomputer and interfacing
AD0-AD15 (Bidirectional)
Address/Data bus
2
8086 Microprocessor
Pins and Signals Common signals
MN/𝐌𝐗
MINIMUM/MAXIMUM
This pin signal indicates what mode the
processor is to operate in. When it is
high, it works in the minimum mode and
vice-versa.
𝐑𝐃 (Read-Active Low)
The signal is used for read operation.
It is an output signal.
It is active when low.
3
8086 Microprocessor
Pins and Signals Common signals
𝐓𝐄𝐒𝐓
READY
4
8086 Microprocessor
Pins and Signals Common signals
RESET
CLK
5
MIN/ MAX PINS
MINIMUM MODE
AND
MAXIMUM MODE
6
8086 Microprocessor
Pins and Signals Min/ Max Pins
7
8086 Microprocessor
Pins and Signals Minimum mode signals
Pins 24 -31
9
8086 Microprocessor
Pins and Signals Maximum mode signals
10
8086 Microprocessor
Pins and Signals Maximum mode signals
11
8086 Microprocessor
Pins and Signals Maximum mode signals
12
MEMORY
SEGMENTATION
13
What is Memory Segmentation?
14
Memory Segmentation
15
16
Memory Segmentation
17
INTERFACING
INTERFACING
Interface is the path for communication between two components.
Interfacing is of two types, memory interfacing and I/O interfacing.
1. Memory Interfacing:
When we are executing any instruction, we need the microprocessor to access
the memory for reading instruction codes and the data stored in the memory.
For this, both the memory and the microprocessor requires some signals to read
from and write to registers.
The interfacing circuit therefore should be designed in such a way that it
matches the memory signal requirements with the signals of the
microprocessor.
2. I/O Interfacing:
There are various communication devices like the keyboard, mouse, printer,
etc. So, we need to interface the keyboard and other devices with the
microprocessor by using latches and buffers. This type of interfacing is known
as I/O interfacing.
Interfacing of memory & I/O
to Microprocessor
Fig: Block Diagram of Memory and I/O Interface with 8086 microprocessor
I/O Interface with 8086 Microprocessor
The last figure shows how the memory and I/O devices are
connected to the system.
8255-PPI (programmable
peripheral interface) is a
programmable I/O device
that acts as interface between
peripheral devices and the
microprocessor for parallel
data transfer.
8255 PPI is programmed in a
way such as to transfer data in
different conditions according
to the need of the system.
A1 A0 Port Selection
0 0 Port A
0 1 Port B
1 0 Port C (U/L)
1 1 Control Register
Note : -
There is no separate selection for Port C (Upper) or Port C (Lower).
Port C is selected as a whole i.e. Both ports upper (U) and lower (L)
ports are selected when A1= 1, and A0 = 0
8255 PPI – 8086 Interfacing - 8 Bit I/O
RD RD
control bus WR A0-A7
WR
8255 B0-B7
8086 Data bus
D0
D7 PPI
µP C4-C7 (U)
Address bus A0
M / IO A1 C0-C3 (L)
CS
EN Decoder