Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
OF
8051
INTERNAL MEMORY
A functioning computer must have memory for
program code bytes, commonly in ROM, and
RAM memory for variable data that can be
altered as the program runs
8051 has internal RAM (128 bytes) and ROM
(4Kbytes)
8051 uses the same address but in different
memories for code and data
Internal circuitry access the correct memory
based on the nature of the operation in progress
Can add memory externally if needed
8051 Internal RAM Organisation
1F R7
1E R6 7F
1D R5
1C R4
1B R3
1A R2
3 kna B
19 R1
18 R0
17 R7
16 R6
15 R5
14 R4
13 R3
12 R2
2 kna B
11 R1
10 R0
0F R7 2F 7F 78
0E R6 2E 77 70
0D R5 2D 6F 68
0C R4 2C 67 60
0B R3 2B 5F 58
1 kna B
0A R2 2A 57 50
09 R1 29 4F 48
08 R0 28 47 40
07 R7 27 3F 38
06 R6 26 37 30
05 R5 25 2F 28
04 R4 24 27 20
03 R3 23 1F 18
22 17 10
0 kna B
02 R2
01 R1 21 0F 08
00 R0 20 07 00 30