Skip to content
The Computer Science
TheCScience
  • Engineering Subjects
    • Human Values
    • Computer System Architecture
    • Microprocessor
    • Digital Communication
    • Internet of Things
  • NCERT Solutions
    • Class 12
    • Class 11
  • Solutions
    • HackerRank
      • C Solutions
      • C++ Solutions
      • Java Solutions
      • Python Solutions
      • Algorithms Solutions
      • Data Structures Solutions
    • HackerEarth Solutions
    • Leetcode Solutions
  • JEE 2027
The Computer Science
TheCScience

Memory Structure in Microprocessor

YASH PAL, March 11, 2026April 25, 2026

Memory Structure in Microprocessor – A microprocessor-based system, like a microcomputer, is a small-sized and inexpensive computer. Figure 1 shows a simplified but formal structure of a microprocessor-based system.

A microprocessor-based system must be capable of:

  1. Receiving inputs (data and instructions)
  2. Storing data and instructions
  3. Performing computations (arithmetic and logic)
  4. Displaying the results
  5. Controlling all the devices that perform the above-mentioned four tasks (directly or indirectly).

An input device is a device that enables a microprocessor-based system to receive data and instructions. Typical input devices used are keyboard, mouse, and toggle switches.

Simplified structure of Microprocessor based system
Figure 1: Structure of Microprocessor-based System

Storage of data and instructions is accomplished using memories. Several types of memories are in use. Relatively fast semiconductor memories are the most commonly used ones. Floppy disks, compact disks (CDs), and cassettes are used together with semiconductor memories in relatively large systems.

The Arithmetic and Logic Unit (ALU) is responsible for performing the computational operations. The ALU performs arithmetic (addition and subtraction) and logic (AND, OR, Exclusive-OR, and NOT) operations. Results are stored either in registers or in memory. An output device performs the Task of displaying the results computed by the microprocessor. Some commonly used output devices are cathode ray tube (CRT) displays, light-emitting diode (LED) displays, and printers. The last task of controlling the devices is made possible by the microprocessor’s control unit. The control unit provides the appropriate control signal for this purpose.

Memory Structure of Microprocessor

Memory is an essential part of a microprocessor-based system. It stores data and instructions in the form of voltage levels or capacitive charges, representing logic ‘0’ and ‘1’. A latch is a basic element of memory. A block diagram of a latch is shown in the figure below. The latch is enabled by providing an appropriate signal at the enable input (EN) of the latch IC. If the latch is enabled, it behaves like a transparent latch, meaning that the output will be similar to the input. When the latch is disabled, it retains the last available data at the input. The stored data is always available at the output. To avoid unintended changes to the input and to control the availability of the output, two tristate buffers can be used on the latch. This is shown in figure 2.

Block diagram of memory structure in Microprocessor
Figure 2: Block diagram of memory structure in a microprocessor

Now the data can be stored in a latch by enabling the input buffer and retrieved from the latch by enabling the output buffer. The latch shown in the figure below can store only one bit. To store more bits, the number of latches may be grouped. This is known as a register. The figure 3 shows a simplified block diagram of an 8-bit register with input and output buffers.

Eight latches as 8 bit register
Figure 3: Eight latches as an 8-bit register

If there is more than one register, all the registers are connected in parallel. This configuration is shown in the figure 4.

4 x 8 bit register block diagram
Figure 4: 4×8-bit register block diagram

To write to or read from any register, a specific register should be identified or selected. This can easily be obtained by using a decoder. The figure below shows an example of four registers with a 2-to-4 decoder. Two more input lines are required for decoding. These are named as address lines. If we have eight registers on one chip, we need three address lines; if we have 16 registers, we need four address lines.

Now consider an example of an M × N-bit memory. It means the memory contains M registers, each of size N bits. The data can be accessed from memory using K address lines (A0 to Ak-1), where M=2k.

K = log2 M

The data lines are equal to N.

Note: In practical cases, a memory chip also has an enable pin. If this is active high, it is generally written as EN; else it is represented by CS.

Let’s take an Example to determine the number of address and data lines for a 1024 × 8-bit memory.

Solution:

For 1024 x 8-bit memory
Number of data lines = 8
Number of address lines  = log2 (1024)
                         = log2 (210)
                         = 10

Example problem to calculate the number of address and data lines for a 64K 4-bit memory.

Solution:

For 64K x 4 bit memory
Number of data lines = 4
Number of address = log2(64K)
                  = log2(26x210)
                  = log2(216)
                  = 16

Example problem to find how many address lines are required to access 100 registers.

Solution:

Number of address lines = log2100
                        = 6.643
                        = 7

Note – It is not possible to have fractional address lines. Hence, consider the next higher value.


Microprocessor Subject Tutorials & Notes | Beginners Guide
engineering subjects Microprocessor microprocessor

Post navigation

Previous post
Next post

Introduction to Microprocessor
Generations of Computer
Microprocessor Types
Types of Computer Systems
Types of Programming Languages
Basic Computer Structure
Interfacing Logic Devices
Number System in Computer
Number System Arithmetic – Addition & Subtraction

Microprocessor as CPU
8085 Microprocessor Architecture
Pin Configuration of 8085 Microprocessor
Demultiplexing of Address and Data Bus in 8085 Microprocessor
Basic Operations of the 8085 Microprocessor
Memory Organization in 8085 Microprocessor

Microprocessor memory structure
Memory Interfacing with 8085 Microprocessor
Memory address decoding in a microprocessor
Input/Output Interfacing in Microprocessor

8085 Microprocessor Programming Model
8085 Assembly Language Programming
8085 Microprocessor Instructions
Microprocessor Programming Steps
Flowchart Design of a Program
8085 Microprocessor Data Transfer Instructions
8085 Microprocessor Arithmetic Instructions
8085 Microprocessor Logical Instructions
8085 Microprocessor Branch Instructions
8085 Microprocessor Machine-Processor Control Instructions
Basic Structure of an Assembly Language Program
Programming Techniques for Repeated Tasks
Debugging of a Microprocessor Program

8085 Microprocessor Timing Operations
Timing Diagram of 8085 Microprocessor
Time Delay in Microprocessor
Stack in 8085 Microprocessor
Subroutine in 8085 Microprocessor
MACRO in Microprocessor

Interrupts in 8085 Microprocessor
Digital to Analog Converter (DAC) in Microprocessor
Analog to Digital Converter (ADC) in Microprocessor

Programmable Peripheral Interface
8255 (PPI) Programmable Peripheral Interface
Programmable Interval Timer (PIT) 8253/8254
Programmable Interrupt Controller (PIC) 8259
Direct Memory Access (DMA) Controller 8257

8086 Microprocessor Architecture, Instructions, and Pin Diagram
Addressing Modes of the 8086 Microprocessor
Instruction Set of 8086 Microprocessor
8088 Microprocessor Architecture with Pin Diagram
Difference between 8085, 8086, and 8088 Microprocessors
80186 Microprocessor Architecture
80286 Microprocessor Architecture & Features
80386 Microprocessor Architecture & Features
80486 Microprocessor Architecture & Features
80586 (Pentium) Microprocessor Architecture & Features

8051 Microcontroller Architecture
8051 Microcontroller Memory Organization
8051 Microcontroller Pin Configuration & Programming Model
8051 Microcontroller Timers and Counters
Serial Communication in 8051 Microcontroller
Interrupts of the 8051 Microcontroller
Addressing Modes of the 8051 Microcontroller
Intel MMX Architecture
Dual Core Processor

LED & Multiplexed Display Interfacing with Microprocessor
Liquid Crystal Display (LCD) Pin Configuration & Interfacing
Matrix Keyboard Interfacing with Microprocessor
8279 Keyboard/Display Controller
Programmable Communication Interface (USART) 8251
Serial Communication Standards in Microprocessor
Computer System Standard Buses

TheCScience

At TheCScience.com, our mission is to make quality education accessible to everyone. We provide in-depth, easy-to-understand articles covering Secondary, Senior Secondary, and Graduation-level subjects.

Our content is designed to simplify complex concepts through clear explanations, diagrams, and structured learning—helping students build strong fundamentals and succeed academically without financial barriers.

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

Microprocessor

Programming Tutorials

Data Structure and Algorithm

C

Java

NCERT

Class 12th

©2026 TheCScience | WordPress Theme by SuperbThemes