Minimum - Mode Interface: 8086/8088Mp Instructor: Abdulmuttalib A. H. Aldouri
Minimum - Mode Interface: 8086/8088Mp Instructor: Abdulmuttalib A. H. Aldouri
ALDOURI
Maximum-Mode Interfaces
83
8086/8088MP INSTRUCTOR: ABDULMUTTALIB A. H. ALDOURI
84
8086/8088MP INSTRUCTOR: ABDULMUTTALIB A. H. ALDOURI
Memory Unit:
It is a collection of storage cells together with associated circuits needed to
transfer information in and out of storage device. The memory stores binary
information in groups of bits called bytes or words. The memory unit is mainly
divided into two main parts:
1. Main Memory (Primary Memory)
2. Secondary storage devices (Magnetic Memory)
Bit Select
DRAM Cell
85
8086/8088MP INSTRUCTOR: ABDULMUTTALIB A. H. ALDOURI
SRAM (Static RAM) - one-bit memory cells use bistable latches (flip-
flop) for data storage. It is faster with a typical assess time of 10
nanoseconds. It is more expensive and can only store a quarter of the data
that DRAM is able to in the same given area, however data will remain
stored as long as power is on. Fast SRAM can be found in most CPU's
called cache memory.
Bit Select
Write En
RAM Cell
86
8086/8088MP INSTRUCTOR: ABDULMUTTALIB A. H. ALDOURI
Magnetic Memory
The magnetic memory is cheaper than static memory. It is in the form of
magnetic disks {hard disk (HD) , compact disk (CD) and floppy disk} . It is
used as secondary memory or Auxiliary memory. The size is in G-Bytes but the
speed is very low compared with main memory.
Memory Unit
Main Secondary
Memory Memory
RAM ROM HD CD
EEPROM
88
8086/8088MP INSTRUCTOR: ABDULMUTTALIB A. H. ALDOURI
A memory device must have three types of lines or connections: Address, Data,
and Enable & Control.
Address Lines: The input lines that select a memory location within the
memory device. Decoders are used, inside the memory chip, to select a
specific location. The number of address pins on a memory chip specifies
the number of memory locations.
If a memory chip has 13 address pins (A0 - A12), then then the size is 213 =
23 x 210 = 8 Kbyte.
If a memory chip has 4Kbytes, then it has N pins:
2N = 4 Kbyte = 212 → N = 12 address pins (A0 - A11)
Data Connections: All memory devices have a set of data output pins
(for ROM devices), or input/output pins (for RAM devices).
80
8086/8088MP INSTRUCTOR: ABDULMUTTALIB A. H. ALDOURI
Enable and Control Connections: All memory devices have at least one
Chip Select CS or Chip Enable (CE) input, used to select or enable the
memory device. If a device is not selected or enabled then no data can be
read from, or written into it.
The CS or CE input is usually controlled by the microprocessor through
the higher address lines via an address decoding circuit. RAM chips
have two control input signals that specify the type of memory operation:
the Read (RD) and the Write (WR) signals. ROM chips can perform
only memory read operations, thus there is only read (RD) signal. In most
real ROM devices the Read signal is called the Output Enable (OE)
signal.
RAM ROM
Address Decoding
The physical address space, or memory map, of a microprocessor refers to
the range of addresses of memory locations that can be accessed by the
microprocessor. The size of the address space depends on the number of address
lines of the microprocessor.
89
8086/8088MP INSTRUCTOR: ABDULMUTTALIB A. H. ALDOURI
2. Connect the data lines of each memory chip in parallel on the data lines of
the processor.
3. Connect the address lines of each memory chip in parallel with the low
address lines of the processor.
4. Connect the CS lines of each memory device with the high address lines
of the processor through an address decoding circuit..
5. Connect together all WR and RD lines of each memory device.
The following example is assumed that the processor has only 7 address lines
(A0 – A6) , thus it can address 27=128 memory locations . The data lines are 4
(D0 – D3) The size of the RAM used in the system is 32 locations (4 chips of 8
locations), then 3 address lines (A0 – A2) are used to address the 8 locations of
each RAM chip. There are 4 address lines (A3 – A6) used as chip select.
The memory block occupied by the memory module depends on the connection
of the address selection circuit (AND gate) that enables the decoder.
Two address lines are used to control the address selection circuit, thus the
circuit can be configured to occupy four different areas in the address space.
08