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. Calculate the number of address lines required. Select the address lines from the available memory space. Identify the pins that are required for the interface. 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. RDWRCSCharacteristics110No-operation010Read data100Write data000Illegalxx1Tri-stateTruth 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: 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. 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. 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). 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 The complete interfacing circuit of a 4K x 8-bit memory to the 8085 microprocessor is shown in the figure below. 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