|
DS80CH11 Datasheet, PDF (24/88 Pages) Dallas Semiconductor – System Energy Manager | |||
|
◁ |
DS80CH11
4.0 MEMORY RESOURCES
4.1 OVERVIEW
The SEM contains the following memory resources and
features:
SRAM is between 0000h and 00FFh. Any MOVX
instruction that uses this area will go to the onâchip RAM
while enabled. MOVX addresses greater than 256
automatically go to external memory through Ports
0 & 2.
⢠256 bytes of onâchip direct (scratchpad) RAM
⢠256 bytes of onâchip MOVX data RAM
⢠Offâchip program and data memory expansion
⢠Software enable/disable of onâchip data memory
4.2 DATA MEMORY ACCESS
Unlike many 8051 derivatives, the SEM contains onâ
chip data memory. Although physically onâchip, soft-
ware accesses this area in the same way offâchip data
memory is accessed: via the MOVX instruction. The
256 bytes of SRAM is located between address 0000h
and 00FFh.
Access to the onâchip data RAM is optional under soft-
ware control. When enabled by software, the data
DATA MEMORY ACCESS CONTROL Table 4â1
DME1 DME0
DATA MEMORY ADDRESS
0
0
0
1
1
0
1
1
0000h â FFFFh
0000h â 00FFh
0100h â FFFFh
Reserved
0000h â 00FFh
0100h â FFFBh
FFFCh
FFFDh â FFFFh
When disabled, the 256 bytes of memory area is trans-
parent to the system memory map. Any MOVX directed
to the space between 0000h and FFFFh goes to the
expanded bus on Ports 0 & 2. This also is the default
condition. This default allows the SEM to drop into an
existing system that uses these addresses for other
hardware and still have full compatibility.
The onâchip data area is selected by software using two
bits in the Power Management Register at location C4h.
This selection is dynamically programmable. Thus
access to the onâchip area becomes transparent to
reach offâchip devices at the same addresses. The
control bits are DME1 (PMR.1) and DME0 (PMR.0).
Their operation is described in Table 4â1.
MEMORY FUNCTION
External Data Memory (Default condition)
Internal SRAM Data Memory
External Data Memory
Reserved
Internal SRAM Data Memory
Reserved â no external access
Read access to the status of lock bits
Reserved â no external access
Notes on the status byte read at FFFCh with DME1, 0 = 1, 1: Bits 2â0 reflect the programmed status of the security
lock bits LB3âLB1. They are individually set to a logic 1 to correspond to a security lock bit that has been programmed.
These status bits allow software to verify that the part has been locked before running if desired. The bits are read
only.
4.2.1 Stretch Memory Cycle
The SEM allows software to adjust the speed of offâchip
data memory access. The micro is capable of perform-
ing the MOVX in as little as two instruction cycles. The
onâchip SRAM uses this speed and any MOVX instruc-
tion directed internally uses two cycles. However, the
time can be stretched for interface to external devices.
This allows access to both fast memory and slow
memory or peripherals with no glue logic. Even in highâ
speed systems, it may not be necessary or desirable to
perform offâchip data memory access at full speed. In
addition, there are a variety of memory mapped periph-
erals such as LCDs or UARTs that are slow.
Operation of the Stretch MOVX function is fully docu-
mented in the Dallas High Speed Micro Userâs Guide.
011200 24/88
|
▷ |