IntermediateTopic 47 of 104Electronics & Embedded

Memory types

SRAM, DRAM, ROM and flash differ in speed, density and volatility.

In depth

SRAM (6T cell, fast, expensive) for caches; DRAM (1T1C, needs refresh) for main memory; ROM/flash (non-volatile) for firmware and storage (NOR for code, NAND for data). Endurance, speed, density and cost differ. EEPROM and FRAM for small non-volatile parameters.

Key points

  • Volatile vs non-volatile
  • Access time and bandwidth
  • Wear levelling
Example

A microcontroller has flash for code and SRAM for variables.

Why it matters

Memory technology decides how much data a system can hold and how fast it can be accessed, so selecting memory is a core design decision.

Where this is used

  • Choosing SRAM for a fast microcontroller cache.
  • Using flash to store firmware that must survive power loss.
  • Selecting DRAM for a computer with large data needs.

Frequently asked questions

What is Memory types?

SRAM, DRAM, ROM and flash differ in speed, density and volatility.

Why is it important to understand memory types?

Memory technology decides how much data a system can hold and how fast it can be accessed, so selecting memory is a core design decision.

What is the difference between SRAM and DRAM?

SRAM uses flip-flop cells and is fast and static, while DRAM stores charge in a capacitor, is denser and must be refreshed.

Why is flash memory slow to write?

Flash erases in large blocks and writes need high voltages, so writes are slower than reads and wear the cells over time.

How is Memory types used in practice?

Typical applications include choosing SRAM for a fast microcontroller cache, using flash to store firmware that must survive power loss and selecting DRAM for a computer with large data needs.

What should I learn before Memory types?

Study "Timing: setup and hold" first (topic 46 of 104 in Electronics & Embedded). It covers the groundwork this topic builds on.

What are the key points of Memory types?

Volatile vs non-volatile. Access time and bandwidth. Wear levelling.

Can you give an example of Memory types?

A microcontroller has flash for code and SRAM for variables.

What comes after Memory types?

The next topic is "Logic families", which builds directly on this one.

How difficult is Memory types?

It is classed as Intermediate in Electronics & Embedded (topic 47 of 104). It is an intermediate topic. Work through the beginner topics in Electronics & Embedded first.

Learning path

Want to practise? Open the interactive course for quick checks, quizzes, simulations and progress tracking.

Related topics