English
Language : 

C8051F336_08 Datasheet, PDF (75/227 Pages) Silicon Laboratories – Mixed-Signal Byte-Programmable EPROM MCU
C8051F336/7/8/9
13.1. Program Memory
The CIP-51 core has a 64 kB program memory space. The C8051F336/7/8/9 implements 16 kB of this pro-
gram memory space as in-system, re-programmable Flash memory, organized in a contiguous block from
addresses 0x0000 to 0x3DFF. The address 0x3DFF serves as the security lock byte for the device, and
addresses above 0x3DFF are reserved.
Reserved Area
Lock Byte
Lock Byte Page
0x3FFF
0x3E00
0x3DFF
0x3DFE
0x3C00
Flash Memory Space
0x0000
Figure 13.2. Flash Program Memory Map
13.1.1. MOVX Instruction and Program Memory
The MOVX instruction in an 8051 device is typically used to access external data memory. On the
C8051F336/7/8/9 devices, the MOVX instruction is normally used to read and write on-chip XRAM, but can
be re-configured to write and erase on-chip Flash memory space. MOVC instructions are always used to
read Flash memory, while MOVX write instructions are used to erase and write Flash. This Flash access
feature provides a mechanism for the C8051F336/7/8/9 to update program code and use the program
memory space for non-volatile data storage. Refer to Section “16. Flash Memory” on page 91 for further
details.
13.2. Data Memory
The C8051F336/7/8/9 device family includes 768 bytes of RAM data memory. 256 bytes of this memory is
mapped into the internal RAM space of the 8051. 512 bytes of this memory is on-chip “external” memory.
The data memory map is shown in Figure 13.1 for reference.
13.2.1. Internal RAM
There are 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 scratch pad 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
Rev.1.0
75