English
Language : 

RF60 Datasheet, PDF (73/157 Pages) –
RF60 CRYSTAL-LESS SOC TRANSMITTER v1.0
22.1. Program Memory
Program memory consists of 4.5KB for RAM and 12KB of ROM. The device employs a unified
CODE/XDATA RAM memory. On 8051 architecture the external data memory (XDATA) space is physically
different then the program memory (CODE), accessible with different instructions. On this device the RAM
can store both CODE and XDATA at any location. The program memory is commonly called CODE mem-
ory, residing in CODE address space.
Both MOVC and MOVX instructions can be used to read data from the CODE/XDATA address space.
The ROM holds the proprietary code and cannot be read by a user. Only code can be exe- cuted from
ROM. If the read is attempted by MOVC or MOVX instructions from ROM area the read value is
undetermined. The NVM and MTP memories are not mapped to the CPU address space.
22.2. Internal Data Memory
The device implements 256 bytes of internal RAM mapped into the data memory space from 0x00 through
0xFF. The lower 128 bytes of data memory are used for general purpose registers and memory. Either
direct or indirect addressing may be used to access the lower 128 bytes of data memory. Locations 0x00
through 0x1F are addressable as four banks of general purpose registers, each bank consisting of eight
byte-wide registers. The next 16 bytes, locations 0x20 through 0x2F, may either be addressed as bytes or
as 128 bit locations accessible with the direct addressing mode.
The upper 128 bytes of data memory are accessible only by indirect addressing. This region occupies the
same address space as the Special Function Registers (SFR) but is physically separate from the SFR
space. The addressing mode used by an instruction when accessing locations above 0x7F determines
whether the CPU accesses the upper 128 bytes of data memory space or the SFR’s. Instructions that use
direct addressing will access the SFR space. Instructions using indirect addressing above 0x7F access the
upper 128 bytes of data memory. Figure 22.1 illustrates the data memory organization.
22.3. External Data Memory
Even though it is called external memory, it resides on the chip. This is the data memory, up to 64KB in
size, which is accessible by MOVX instructions. For the original MCS-51™ architecture this memory
resided physically external to the chip. This memory is commonly referred as XDATA memory.
The device implements shared CODE/XDATA memory. The 4.5KB of RAM is shared between the CODE
and XDATA. The CPU can run code from any location of that RAM, can read any location using MOVC and
MOVX instructions, and can write any location by using MOVX instruction.
Important note: Linker of the user application has to be given proper regions of CODE and XDATA mem-
ory, which are mutually exclusive. Therefore, for example, the user cannot set the CODE region to be
0x0000 .. 0x1000 and XDATA region to be the very same at the same time. One has to specify two non-
overlapping regions in the RAM area instead.
22.4. General Purpose Registers
The lower 32 bytes of data memory, locations 0x00 through 0x1F, may be addressed as four banks of gen-
eral-purpose registers. Each bank consists of eight byte-wide registers designated R0 through R7. Only
one of these banks may be enabled at a time. Two bits in the program status word, RS0 (PSW.3) and RS1
(PSW.4), select the active register bank. This allows fast context switching when entering subroutines and
interrupt service routines. Indirect addressing modes use registers R0 and R1 as index registers.
Tel: +86-755-82973805
Fax: +86-755-82973550
73
E-mail: sales@hoperf.com http://www.hoperf.com