T89C51RD2-3CBC-L ATMEL [ATMEL Corporation], T89C51RD2-3CBC-L Datasheet - Page 15

no-image

T89C51RD2-3CBC-L

Manufacturer Part Number
T89C51RD2-3CBC-L
Description
0 to 40MHz Flash Programmable 8-bit Microcontroller
Manufacturer
ATMEL [ATMEL Corporation]
Datasheet
6.3. Expanded RAM (XRAM)
The T89C51RD2 provide additional Bytes of random access memory (RAM) space for increased data parameter
handling and high level language usage.
T89C51RD2 devices have expanded RAM in external data space; Maximum size and location are described in Table 4.
The T89C51RD2 has internal data memory that is mapped into four separate segments.
The four segments are:
The Lower 128 bytes can be accessed by either direct or indirect addressing. The Upper 128 bytes can be accessed
by indirect addressing only. The Upper 128 bytes occupy the same address space as the SFR. That means they
have the same address, but are physically separate from SFR space.
When an instruction accesses an internal location above address 7FH, the CPU knows whether the access is to the
upper 128 bytes of data RAM or to SFR space by the addressing mode used in the instruction.
Rev. F - 15 February, 2001
T89C51RD2
Instructions that use direct addressing access SFR space. For example: MOV 0A0H, # data ,accesses the SFR
at location 0A0H (which is P2).
Instructions that use indirect addressing access the Upper 128 bytes of data RAM. For example: MOV @R0,
# data where R0 contains 0A0H, accesses the data byte at address 0A0H, rather than P2 (whose address is 0A0H).
1. The Lower 128 bytes of RAM (addresses 00H to 7FH) are directly and indirectly addressable.
2. The Upper 128 bytes of RAM (addresses 80H to FFH) are indirectly addressable only.
3. The Special Function Registers, SFRs, (addresses 80H to FFH) are directly addressable only.
4. The expanded RAM bytes are indirectly accessed by MOVX instructions, and with the EXTRAM bit
cleared in the AUXR register. (See )
Port
FF or 3FF
00
1024
XRAM
Figure 4. Internal and External Data Memory Address
XRAM size
Table 4. Description of expanded RAM
FF
80
00
indirect accesses
direct or indirect
128 bytes
128 bytes
accesses
Internal
Internal
Lower
Upper
Ram
Ram
Start
FF
80
00h
direct accesses
Function
Register
Special
Address
T89C51RD2
0100 or 0400
FFFF
0000
3FFh
End
Memory
External
Data
15

Related parts for T89C51RD2-3CBC-L