Skip to content
The Computer Science
TheCScience
  • Engineering Subjects
    • Human Values
    • Computer System Architecture
    • Digital Communication
    • Internet of Things
  • NCERT Solutions
    • Class 12
    • Class 11
  • HackerRank solutions
    • HackerRank Algorithms Problems Solutions
    • HackerRank C solutions
    • HackerRank C++ problems solutions
    • HackerRank Java problems solutions
    • HackerRank Python problems solutions
The Computer Science
TheCScience

Memory Interfacing with 8085 Microprocessor

YASH PAL, March 12, 2026March 12, 2026

Memory Interfacing with 8085 Microprocessor – One of the most important parts of the design of a microprocessor-based system is the design of the interface. The first part of the microprocessor interface is interfacing with the memory.

Here is the following steps need to be followed for interfacing the memory with the 8085 microprocessor.

  1. Calculate the number of address lines required.
  2. Select the address lines from the available memory space.
  3. Identify the pins that are required for the interface.
  4. Design the logic circuit to fulfill the interfacing circuit requirement to select the memory chip.

To control the reading and writing operations with memory, appropriate control signals are needed. A truth table for memory is shown in the table below.

RDWRCSCharacteristics
110No-operation
010Read data
100Write data
000Illegal
xx1Tri-state
Truth table for memory operations

Note: When CS = 1, the memory chip remains in tri-state and can not be used. If CS = 0 and RD = 0, WR = 0, then this is an illegal operation because both reading and writing operations can not be performed simultaneously.

Let’s take an example problem to understand the Memory Interfacing with the 8085 microprocessor.

We need to interface a 4K x 8-bit memory to the 8085 microprocessor. Also, we need to find the address of the last register if the first register address is F000H.

Solution: The interfacing circuit can be designed as follows:

  1. Given memory size is 4K x 8 bits. Hence, the number of address lines
= log2 (4K)
= log2 (22 x 210)
= log2 (212)
= 12

There are 12 address lines on the memory chip to identify all the registers.

  1. In the 8085 microprocessor, there are 16 address lines (A0 – A15). Out of 16 address lines, 12 address lines (A0 – A11) are connected to the memory chip.
  2. The pins available on the memory chip for interface are RD, WR, CS, and (A0 – A11). Whereas the pins available as the microprocessor for interface are IO/M, RD, WR, CS, and (A0 – A15).
  3. Leaving (A0 – A11) for direct connection from microprocessor to memory chip (12 lines), the remaining address lines (A12 – A15) and IO/M are used for the decoding circuit to generate the CS signal. To select the memory chip, CS must be equal to 0. IO/M will be 0, since the operation is related to memory. Let us design the logic circuit as shown in the image below.
Decoding logic circuit
Decoding logic circuit

The complete interfacing circuit of a 4K x 8-bit memory to the 8085 microprocessor is shown in the figure below.

Interfacing 4K x 8 bit memory to 8085 microprocessor
Interfacing a 4K x 8-bit memory to the 8085 microprocessor

The last register of the memory chip will be identified if all the address lines of memory (A0 – A11) are at high logic (1). From the decoding logic, it is clear that CS will be low only if (A12 – A15) lines are at high logic (1) with IO/M = 0.

Therefore, the address of the last register will be FFFFH.

engineering subjects Microprocessor microprocessor

Post navigation

Previous post

TheCScience

We at TheCScience.com are working towards the goal to give free education to every person by publishing in dept article about Secondary, Senior-Secondary, and Graduation level subjects.

Pages

About US

Contact US

Privacy Policy

DMCA

Our Tools

Hosting - get 20% off

Engineering Subjects

Internet of Things

Human Values

Digital Communication

Computer System Architecture

Programming Tutorials

Data Structure and Algorithm

C

Java

NCERT

Class 12th

©2026 TheCScience | WordPress Theme by SuperbThemes