27
MEMORY S YSTEM DESIGN WITH 8085 1

Memory system design with 8085.pdf

Embed Size (px)

Citation preview

Page 1: Memory system design with 8085.pdf

7/27/2019 Memory system design with 8085.pdf

http://slidepdf.com/reader/full/memory-system-design-with-8085pdf 1/27

MEMORY SYSTEM DESIGN WITH 8085

1

Page 2: Memory system design with 8085.pdf

7/27/2019 Memory system design with 8085.pdf

http://slidepdf.com/reader/full/memory-system-design-with-8085pdf 2/27

2

Page 3: Memory system design with 8085.pdf

7/27/2019 Memory system design with 8085.pdf

http://slidepdf.com/reader/full/memory-system-design-with-8085pdf 3/27

 

3

Page 4: Memory system design with 8085.pdf

7/27/2019 Memory system design with 8085.pdf

http://slidepdf.com/reader/full/memory-system-design-with-8085pdf 4/27

Demultiplexing of address and data bus

4

Page 5: Memory system design with 8085.pdf

7/27/2019 Memory system design with 8085.pdf

http://slidepdf.com/reader/full/memory-system-design-with-8085pdf 5/27

Demultiplexing of address and data bus by ALE signal

{MSBTE – W2010 – 4M}

5

Page 6: Memory system design with 8085.pdf

7/27/2019 Memory system design with 8085.pdf

http://slidepdf.com/reader/full/memory-system-design-with-8085pdf 6/27

Demultiplexing of address and data bus by ALE

signal

The address on the higher order bus remains on the bus for three clock periods.

However lower order address is lost after the first clock period.

This address needs to be latched and used for identifying the memory address

In the above figure a latch and an ALE signal is used to demultiplex the bus.

The bus AD7 - AD0 is connected as input to the latch 74LS373.

The ALE signal is connected to the enable(G) pin of the latch and the o/p control

(OC)signal of the latch is grounded.

ALE goes high during the T1 state

When ALE is high, the output of the latch changes according to input, hence the

o/p of the latch is the lower order address.

When ALE goes low the address is latched until the next ALE

Now the o/p of the latch represents the lower order address bus A7 – A0.

6

Page 7: Memory system design with 8085.pdf

7/27/2019 Memory system design with 8085.pdf

http://slidepdf.com/reader/full/memory-system-design-with-8085pdf 7/27

Generation of control signals (MEMR, MEMW,

IOR, IOW signal)

MSBTE – S2011 – 4M

7

Page 8: Memory system design with 8085.pdf

7/27/2019 Memory system design with 8085.pdf

http://slidepdf.com/reader/full/memory-system-design-with-8085pdf 8/27

Generation of control signals

RD is a control signal.

Since this signal is used for both reading memory and an input device, it is necessary for generating two different read signals: one for memory and other for input device

Similarly two different write signals are generated

The above figure shows 4 different control signals are generated by combining the signals RD, WRand IO/M

The signal IO/M goes low for the memory operation

This signal is ANDed with RD and WR signals by using 74LS32

When both the inputs are low the output of the gate is low and generate MEMR signal(memory read)

and MEMW signal (memory write)

When IO/M goes high, it indicates io operation

This signal is complemented using inverter IC 74LS04 and ANDed with RD and WR signals togenerate IOR(io read) and IOW (io write) control signals

8

Page 9: Memory system design with 8085.pdf

7/27/2019 Memory system design with 8085.pdf

http://slidepdf.com/reader/full/memory-system-design-with-8085pdf 9/27

Address decoding techniques:

Address decoding is the process of generating chip select (CS*) signals from

the address bus for each device in the system

The address bus lines are split into two sections

1.The N most significant bits are used to generate the CS* signals for the different

devices.2. The M least significant signals are passed to the devices as addresses to the

different memory cells.

9

Page 10: Memory system design with 8085.pdf

7/27/2019 Memory system design with 8085.pdf

http://slidepdf.com/reader/full/memory-system-design-with-8085pdf 10/27

Let’s assume a very simple microprocessor with 10 address lines (1K memory)

Let’s assume we wish to implement all its memory space and we use 128x8

memory chips SOLUTION

We will need 8 memory chips (8x128=1024)

We will need 3 address lines to select each one of the 8 chips

Each chip will need 7 address lines to address its internal memory cells

10

Page 11: Memory system design with 8085.pdf

7/27/2019 Memory system design with 8085.pdf

http://slidepdf.com/reader/full/memory-system-design-with-8085pdf 11/27

The previous example specified that all addressable memory space was to

be implemented

If only a portion of the addressable space is going to be implemented there

are two basic address decoding strategies

1. Full address decoding 

All the address lines are used to specify a memory location2. Partial address decoding 

Since not all the address space is implemented, only a subset of the

address lines are needed to point to the physical memory locations

11

Page 12: Memory system design with 8085.pdf

7/27/2019 Memory system design with 8085.pdf

http://slidepdf.com/reader/full/memory-system-design-with-8085pdf 12/27

Full address decoding

Let’ s assume a microprocessor with 10 address lines (1KB memory) 

However, this time we wish to implement only 512 bytes of memory

We still must use 128-byte memory chips

Physical memory must be placed on the upper half of the memory map

SOLUTION

12

Page 13: Memory system design with 8085.pdf

7/27/2019 Memory system design with 8085.pdf

http://slidepdf.com/reader/full/memory-system-design-with-8085pdf 13/27

Partial address decoding

Let’ s assume the same microprocessor with 10 address lines (1KB memory) 

However, this time we wish to implement only 512 bytes of memory

We still must use 128-byte memory chips

Physical memory must be placed on the upper half of the memory map

SOLUTION

13

Page 14: Memory system design with 8085.pdf

7/27/2019 Memory system design with 8085.pdf

http://slidepdf.com/reader/full/memory-system-design-with-8085pdf 14/27

 

14

Page 15: Memory system design with 8085.pdf

7/27/2019 Memory system design with 8085.pdf

http://slidepdf.com/reader/full/memory-system-design-with-8085pdf 15/27

15

Page 16: Memory system design with 8085.pdf

7/27/2019 Memory system design with 8085.pdf

http://slidepdf.com/reader/full/memory-system-design-with-8085pdf 16/27

Comparison of full and partial address decoding

FULL DECODING PARTIAL DECODING

All higher order address lines

are used to select memory or

i/o device

More hardware is required

System is complex and

expensive

Used for large systems

Few higher order address

lines are used to select

memory or i/o device

Less hardware is required

System is simple and

inexpensive

Used in small systems

16

Page 17: Memory system design with 8085.pdf

7/27/2019 Memory system design with 8085.pdf

http://slidepdf.com/reader/full/memory-system-design-with-8085pdf 17/27

MEMORY INTERFACING

Eg: To interface 2k x 8 RAM to 8085 microprocessor

For 2k locations, no. of address lines required are 11 i.e. A0 – A10

The rest address lines are used for chip selection

17

Page 18: Memory system design with 8085.pdf

7/27/2019 Memory system design with 8085.pdf

http://slidepdf.com/reader/full/memory-system-design-with-8085pdf 18/27

 

18

0

0

0

0

1

Page 19: Memory system design with 8085.pdf

7/27/2019 Memory system design with 8085.pdf

http://slidepdf.com/reader/full/memory-system-design-with-8085pdf 19/27

 

19

Page 20: Memory system design with 8085.pdf

7/27/2019 Memory system design with 8085.pdf

http://slidepdf.com/reader/full/memory-system-design-with-8085pdf 20/27

 

20

Page 21: Memory system design with 8085.pdf

7/27/2019 Memory system design with 8085.pdf

http://slidepdf.com/reader/full/memory-system-design-with-8085pdf 21/27

D

21

Page 22: Memory system design with 8085.pdf

7/27/2019 Memory system design with 8085.pdf

http://slidepdf.com/reader/full/memory-system-design-with-8085pdf 22/27

 

22

Page 23: Memory system design with 8085.pdf

7/27/2019 Memory system design with 8085.pdf

http://slidepdf.com/reader/full/memory-system-design-with-8085pdf 23/27

 

23

Page 24: Memory system design with 8085.pdf

7/27/2019 Memory system design with 8085.pdf

http://slidepdf.com/reader/full/memory-system-design-with-8085pdf 24/27

 

24

Page 25: Memory system design with 8085.pdf

7/27/2019 Memory system design with 8085.pdf

http://slidepdf.com/reader/full/memory-system-design-with-8085pdf 25/27

 

25

Page 26: Memory system design with 8085.pdf

7/27/2019 Memory system design with 8085.pdf

http://slidepdf.com/reader/full/memory-system-design-with-8085pdf 26/27

 

26

Page 27: Memory system design with 8085.pdf

7/27/2019 Memory system design with 8085.pdf

http://slidepdf.com/reader/full/memory-system-design-with-8085pdf 27/27

 

27