8051 Memory Organisattion
8051 Memory Organisattion
OF 8051
PRESENTED BY :
Name ID
Internal RAM
Internal ROM
8051
Importance of Memory Organization
Efficient memory usage improves performance.
I/O
INTERNAL ROM
Features:
4 KB on-chip memory
Directly accessible
Stack:
Grows upward in memory
Stack Pointer (SP) initialized at 07h
Stores return addresses and temporary data
Typically placed in general purpose area
INTERNAL RAM
Four Addressing Modes:
Direct addressing: MOV A, 30h
Indirect addressing: MOV A, @R0
Register addressing: MOV A, R7
Bit addressing: SETB 24h
They act as the interface between software and hardware – every time
you want to control a hardware feature (like timers, ports, serial comm,
etc.), you interact with these registers.
SPECIAL FUNCTION REGISTERS
SFRs are located in the upper 128 bytes of
internal RAM:
➤ Address range: 0x80 to 0xFF
This upper region is not accessible for
general-purpose RAM usage.
Every SFR has a fixed address (you cannot
change them).