MC96F6432
60
June 22, 2018 Ver. 2.9
8.2 Data Memory
Figure 8-2 shows the internal data memory space available.
FFH
80H
Upper 128 Bytes
Internal RAM
(Indirect Addressing)
Lower 128 Bytes
Internal RAM
(Direct or Indirect
Addressing)
7FH
00H
FFH
80H
Special Function Registers
128 Bytes
(Direct Addressing)
Figure 8.2 Data Memory Map
The internal data memory space is divided into three blocks, which are generally referred to as the lower 128
bytes, upper 128 bytes, and SFR space.
Internal data memory addresses are always one byte wide, which implies an address space of only 256 bytes.
However, in fact the addressing modes for internal RAM can accommodate up to 384 bytes by using a simple
trick. Direct addresses higher than 7FH access one memory space and indirect addresses higher than 7FH
access a different memory space. Thus Figure 8-2 shows the upper 128 bytes and SFR space occupying the
same block of addresses, 80H through FFH, although they are physically separate entities.
The lower 128 bytes of RAM are present in all 8051 devices as mapped in Figure 8-3. The lowest 32 bytes are
grouped into 4 banks of 8 registers. Program instructions call out these registers as R0 through R7. Two bits in
the Program Status Word select which register bank is in use. This allows more efficient use of code space, since
register instructions are shorter than instructions that use direct addressing.
The next 16 bytes above the register banks form a block of bit-addressable memory space. The 8051 instruction
set includes a wide selection of single-bit instructions, and the 128 bits in this area can be directly addressed by
these instructions. The bit addresses in this area are 00H through 7FH.
All of the bytes in the lower 128 bytes can be accessed by either direct or indirect addressing. The upper 128
bytes RAM can only be accessed by indirect addressing. These spaces are used for data RAM and stack.
Summary of Contents for MC96F6332D
Page 24: ...MC96F6432 24 June 22 2018 Ver 2 9 4 Package Diagram Figure 4 1 48 Pin LQFP 0707 Package...
Page 25: ...MC96F6432 June 22 2018 Ver 2 9 25 Figure 4 2 44 Pin MQFP Package...
Page 26: ...MC96F6432 26 June 22 2018 Ver 2 9 Figure 4 3 32 Pin LQFP Package...
Page 27: ...MC96F6432 June 22 2018 Ver 2 9 27 Figure 4 4 32 Pin SOP Package...
Page 28: ...MC96F6432 28 June 22 2018 Ver 2 9 Figure 4 5 28 Pin SOP Package...