
Preliminary W79E217A Data Sheet
Publication Release Date: December 14, 2007
- 13 -
Revision A3.0
6.3 Auxiliary SRAM
W79E217 has a 2 KB of data space SRAM which is read/write accessible and is memory mapped.
This on-chip SRAM is accessed by the MOVX instruction. There is no conflict or overlap among the
256 bytes scratch-pad memory and the 2 KB auxiliary sram as they use different addressing modes
and instructions. Access to the on-chip Data Memory is optional under software control. Set DMEO bit
of PMR SFR to 1 will enable the on-chip 2 KB MOVX SRAM and at the same time EnNVM bit must be
cleared as NVM memory uses the same instruction of MOVX. Refer to
Table 6-3: W79E217 NVM page (n)
area definition table
.
6.4 2-KB NVM Data Flash Memory
W79E217
2
-KB NVM memory block shown in the diagram on Figure 6-1, shares the same address as
AUX-RAM address.
Due to overlapping of AUX-RAM, NVM data memory and external data memory physical address, the
following table is defined. EnNVM bit (NVMCON.5) will enable read access to NVM data memory
area. DME0 (PMR.0) will enable read access to AUX-RAM.
ENNVM
DME0
DATA MEMORY AREA
0
0
Enable External RAM read/write access by MOVX
0
1
Enable AUX-RAM read/write access by MOVX
1
X
Enable NVM data Memory read access by MOVX only. If EER or
EWR is set and NVM flash erase or write control is busy, to set
this bit read NVM data is invalid.
Table 6-1: Bits setting for MOVX access to Data Memory Area
ENNVM = 1
NVM SIZE = SRAM (2K)
INSTRUCTIONS
ADDR
≤
2K
ADDR > 2K
MOVX A, @DPTR (Read)
NVM
Ext memory
MOVX A, @R0 (Read)
NVM
NOP
Read
access
MOVX A, @R1 (Read)
NVM
NOP
MOVX @DPTR, A (Write)
NOP
Ext memory
MOVX @R0, A (Write)
NOP
NOP
Write
access
MOVX @R1, A (Write)
NOP
NOP
Table 6-2: MOVX read/write access destination