0% found this document useful (0 votes)
753 views18 pages

8085 Memory Interfacing Overview

The document discusses the requirements and structure of memory, including RAM and ROM chips. It describes the key components and interface of memory chips, such as address lines, data lines, chip select lines, and read/write control lines. It also explains techniques for decoding address lines using NAND gates or a 3-to-8 decoder to generate chip selects and access specific memory locations.

Uploaded by

Saurabh Bhise
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
753 views18 pages

8085 Memory Interfacing Overview

The document discusses the requirements and structure of memory, including RAM and ROM chips. It describes the key components and interface of memory chips, such as address lines, data lines, chip select lines, and read/write control lines. It also explains techniques for decoding address lines using NAND gates or a 3-to-8 decoder to generate chip selects and access specific memory locations.

Uploaded by

Saurabh Bhise
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd

TK2633

8085 Memory Interface

DR MASRI AYOB
Requirement and memory
structure
• There are two types of memory:
– RAM: read and write
– ROM: read only
• Figure 1a shows the R/W memory chip:
– 2048 (2k) size.
– 8 bit data input line and 8 bit data output line.
– 11 address lines, A0-A10,
– one chip select, CS.
– RD: enable output buffer (penimbal keluaran).
– WR: enable input buffer (penimbal masukan).
– The internal decoder is used to decode the internal
memory address.

2
Requirement and memory structure

Figure 1 3
Requirement and memory
structure
• Figure 1b shows the typical diagram of EPROM (Erasable
Programmable ROM):
– 4096 (4k) size.
– A quartz window on it, that use to receive direct UV light to erase
programme.
– 8 bit data output line.
– 12 address lines, A0-A11,
– one chip select, CS.
– RD: enable output buffer (penimbal keluaran).
– The internal decoder is used to decode the internal memory
address.
• The technique to interface R/W and EPROM is the same except
the EPROM does not require WR control signals.

When the chip is programmed, the quartz window has to be


covered to avoid accidental program erase.
4
Basic concept of interfacing
memory chip.
• The basic function of memory interfacing
is that the μp should be able to read from
and/or write into memory chip.
• Therefore the μp has to:
– Be able to select certain memory chip.
– Identify memory location through memory
address.
– Enable input or output buffer as to read or
write to the memory.
5
Basic concept of interfacing
memory chip.
• A few basic steps to undertake in chip
interface design are:
– Connect certain address lines from address
bus of μp to address lines at memory chip.
– Decode the rest of the address lines to
generate Chip Select signal.
– Generate control signals MEMR and MEMW.

6
Decoding the address lines
• Figure 2 shows two techniques to decode
address lines:
– Using the NAND gates.
– Using the 3-to-8 decoder.
• The output of NAND gate can be activated
when all the input A12-A15 is at logic 1.

7
NAND or Decoder

Figure 2 8
Decoding the address lines
• Using the 3-to-8 (74LS138) decoder:
– combining the input A12-A14 to obtain output at
O7 when A12= A13= A14=1.
– The enable pins E1 and E2 are enabled by
grounding them and the A15 digital signal
should be at logic 1 to enable the E3.

9
74LS138 3-to-8 Line Decoder
Inputs Outputs

E1 E2 E3 C B A 0 1 2 3 4 5 6 7
1 x x x x x 1 1 1 1 1 1 1 1
x 1 x x x x 1 1 1 1 1 1 1 1
x x 0 x x x 1 1 1 1 1 1 1 1
0 0 1 0 0 0 0 1 1 1 1 1 1 1
0 0 1 0 0 1 1 0 1 1 1 1 1 1
0 0 1 0 1 0 1 1 0 1 1 1 1 1
0 0 1 0 1 1 1 1 1 0 1 1 1 1
0 0 1 1 0 0 1 1 1 1 0 1 1 1
0 0 1 1 0 1 1 1 1 1 1 0 1 1
0 0 1 1 1 0 1 1 1 1 1 1 0 1
0 0 1 1 1 1 1 1 1 1 1 1 1 0

10
Memory interface

Figure 3
11
Reading and decoding address lines

12
Address Decoding
• Referring to figure 3:
– the logic combination at address A15-A12 must have
logic 0000 to activate the Chip Enable,
– and the address A11-A0 can have all logic
combinations either 0 or 1.
– Therefore the range of address for this chip is
0000H until 0FFFH;

A15 A14 A13 A12 A11 A10 A9 A8 A7 A6 A5 A4 A3 A2 A1 A0

0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1

Chip Enable Register Select

13
Address Decoding 2K RAM

Address Range?
14
Address Decoding
Note: A11 is not used for RAM.

ROM RAM

Address Range ?
15
Address Decoding

16
Address Decoding

ROM1
A12 A ROM2
0 CE

A13 B 3-to-8 1 CE
decoder 2
A14 C 74LS138 OE
RAM1
3
4 CE RAM2
IO/M E1 5 OE WE

E2 6 CE
7 OE WE
E3
1K RD

+5V WR
Address Range?
17
Thank you
Q&A

18

Common questions

Powered by AI

Enable pins in a 3-to-8 line decoder determine whether the decoder is active and can decode input lines to an output. For instance, grounding E1 and E2 and setting E3 to logic 1 activates the decoder. This configuration is crucial as it ensures the decoder operates only when the memory interface requires it, supporting precise control over memory chip selection .

Address lines in a memory chip help in selecting specific locations within the memory, allowing the microprocessor (μp) to either read from or write to the memory chip. To interface with memory, the μp must connect certain address lines from its address bus to the address lines of the memory chip, use other lines to generate the Chip Select signal, and generate control signals for reading (MEMR) and writing (MEMW).

The internal decoder within memory chips translates the address lines into specific memory locations, allowing the microprocessor to access the desired memory cell efficiently. This hardware component minimizes external decoding circuitry by handling part of the address decoding internally, improving the speed and efficiency of the memory interfacing process .

UV exposure can compromise the integrity of an EPROM's stored data by erasing the existing programming. This occurs because UV light resets the memory cells, which is why the quartz window must be covered to prevent ambient light from inadvertently erasing the data. This characteristic makes EPROM inherently different in how data retention is managed compared to other memory types .

Control signals in a microprocessor's memory interface, such as MEMR (memory read) and MEMW (memory write), are crucial for directing data flow. These signals enable the input buffer during a write operation and the output buffer during a read operation. They ensure that memory read/write processes are synchronized with the microprocessor's needs, allowing accurate data handling between the microprocessor and the memory module .

The NAND gate technique aids in address line decoding by producing an active low output when all its input address lines (A12-A15) are at logic 1. This logic state can be used to generate a Chip Select signal when the targeted memory address range is selected, allowing the microprocessor to access the correct memory module efficiently .

Address decoding impacts the memory address range by determining which set of address lines activates the Chip Select signal. For example, a certain logic combination for address lines A15-A12 is required to activate the Chip Enable for RAM, restricting the addressable range to specific values like 0000H to 0FFFH. Proper decoding is critical to ensuring that RAM and ROM modules can be accessed within their intended address space without overlap .

A quartz window in an EPROM is used to expose the chip to ultraviolet (UV) light, which erases the previous programming. This makes the EPROM reprogrammable, allowing it to be reused after erasure. However, the window must be covered during normal operations to prevent accidental data erasure from ambient UV exposure .

The key difference in memory interfacing between R/W memory and EPROM lies in the control signals. R/W memory requires both RD and WR control signals to manage data input and output, whereas EPROM only requires RD, as data can only be read. This distinction simplifies EPROM interfacing since it is essentially read-only under normal operation conditions, while R/W memory requires additional controls for writing .

The 74LS138 3-to-8 line decoder helps in selecting one out of eight outputs based on the inputs A, B, and C. In memory interfacing, it simplifies address decoding by activating an output when the corresponding address inputs are at a specific logic level. It ensures efficient chip selection by enabling one of its outputs based on the state of the input lines and the enable pins (E1, E2, E3) state .

You might also like