0
0
Embedded Cprogramming~5 mins

Memory layout on a microcontroller (Flash, SRAM, EEPROM) in Embedded C - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is Flash memory used for in a microcontroller?
Flash memory stores the program code and constants. It is non-volatile, so it keeps data even when power is off.
Click to reveal answer
beginner
What is SRAM and what is it used for?
SRAM is fast, volatile memory used for temporary data storage while the program runs. It loses data when power is off.
Click to reveal answer
beginner
What is EEPROM used for in microcontrollers?
EEPROM stores small amounts of data that must be saved even when power is off, like settings or calibration data.
Click to reveal answer
intermediate
How does Flash memory differ from EEPROM?
Flash memory stores program code and is usually larger. EEPROM stores small data and allows byte-level writing, but is slower.
Click to reveal answer
beginner
Why is SRAM considered volatile memory?
SRAM is volatile because it loses all stored data when the microcontroller loses power.
Click to reveal answer
Which memory type in a microcontroller is used to store the program code?
AFlash memory
BSRAM
CEEPROM
DCache memory
What happens to data stored in SRAM when the microcontroller is powered off?
AData is lost
BData is saved permanently
CData is copied to Flash
DData is backed up to EEPROM
Which memory type is best for storing user settings that must persist after power off?
ASRAM
BFlash
CEEPROM
DCache
Which memory type allows byte-level writing but is slower than Flash?
ASRAM
BFlash
CROM
DEEPROM
Why is Flash memory considered non-volatile?
AIt loses data when power is off
BIt keeps data without power
CIt is very fast
DIt is volatile
Explain the roles of Flash, SRAM, and EEPROM in a microcontroller's memory layout.
Think about what data needs to stay after power off and what is temporary.
You got /3 concepts.
    Describe why SRAM is called volatile memory and how it differs from Flash and EEPROM.
    Focus on data retention and speed differences.
    You got /3 concepts.