Maxim DS87C530 Clock User Manual


 
DS87C530/DS83C530 EPROM/ROM Microcontrollers with Real-Time Clock
15 of 47
The on-chip data area is software selectable using 2 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).
They have the following operation:
Table 2. Data Memory Access Control
DME1 DME0 DATA MEMORY ADDRESS MEMORY FUNCTION
0 0 0000h–FFFFh External Data Memory (default condition)
0000h–03FFh Internal SRAM Data Memory
0 1
0400h–FFFFh External Data Memory
1 0 Reserved Reserved
0000h–03FFh Internal SRAM Data Memory
0400h–FFFBh Reserved—no external access
FFFCh Read access to the status of lock bits
1 1
FFFDh–FFFh 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 LB2–LB0. 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.
Note: After internal MOVX SRAM has been initialized, changing bits DEM0/1 has no effect on the
contents of the SRAM.
STRETCH MEMORY CYCLE
The DS87C530/DS83C530 allow software to adjust the speed of off-chip data memory access. The
microcontrollers can perform the MOVX in as few as two instruction cycles. The on-chip SRAM uses
this speed and any MOVX instruction 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
peripherals such as LCDs or UARTs that are slow.
The Stretch MOVX is controlled by the Clock Control Register at SFR location 8Eh as described below.
It allows the user to select a Stretch value between 0 and 7. A Stretch of 0 will result in a two-machine
cycle MOVX. A Stretch of 7 will result in a MOVX of nine machine cycles. Software can dynamically
change this value depending on the particular memory or peripheral.
On reset, the Stretch value will default to a 1, resulting in a three-cycle MOVX for any external access.
Therefore, off-chip RAM access is not at full speed. This is a convenience to existing designs that may
not have fast RAM in place. Internal SRAM access is always at full speed regardless of the Stretch
setting. When desiring maximum speed, software should select a Stretch value of 0. When using very
slow RAM or peripherals, select a larger Stretch value. Note that this affects data memory only and the
only way to slow program memory (ROM) access is to use a slower crystal.
WWW.100Y.COM.TW WWW.100Y.COM.TW WWW.100Y.COM.TW
WWW.100Y.COM.TW WWW.100Y.COM.TW WWW.100Y.COM.TW
WWW.100Y.COM.TW WWW.100Y.COM.TW WWW.100Y.COM.TW
WWW.100Y.COM.TW WWW.100Y.COM.TW WWW.100Y.COM.TW
WWW.100Y.COM.TW WWW.100Y.COM.TW WWW.100Y.COM.TW
WWW.100Y.COM.TW WWW.100Y.COM.TW WWW.100Y.COM.TW
WWW.100Y.COM.TW WWW.100Y.COM.TW WWW.100Y.COM.TW
WWW.100Y.COM.TW WWW.100Y.COM.TW WWW.100Y.COM.TW
WWW.100Y.COM.TW WWW.100Y.COM.TW WWW.100Y.COM.TW
WWW.100Y.COM.TW WWW.100Y.COM.TW WWW.100Y.COM.TW
WWW.100Y.COM.TW WWW.100Y.COM.TW WWW.100Y.COM.TW
WWW.100Y.COM.TW WWW.100Y.COM.TW WWW.100Y.COM.TW
WWW.100Y.COM.TW WWW.100Y.COM.TW WWW.100Y.COM.TW
WWW.100Y.COM.TW WWW.100Y.COM.TW WWW.100Y.COM.TW
WWW.100Y.COM.TW WWW.100Y.COM.TW WWW.100Y.COM.TW
WWW.100Y.COM.TW WWW.100Y.COM.TW WWW.100Y.COM.TW
WWW.100Y.COM.TW WWW.100Y.COM.TW WWW.100Y.COM.TW
WWW.100Y.COM.TW WWW.100Y.COM.TW WWW.100Y.COM.TW
WWW.100Y.COM.TW WWW.100Y.COM.TW WWW.100Y.COM.TW
WWW.100Y.COM.TW WWW.100Y.COM.TW WWW.100Y.COM.TW
WWW.100Y.COM.TW WWW.100Y.COM.TW WWW.100Y.COM.TW
WWW.100Y.COM.TW WWW.100Y.COM.TW WWW.100Y.COM.TW
WWW.100Y.COM.TW WWW.100Y.COM.TW WWW.100Y.COM.TW
WWW.100Y.COM.TW WWW.100Y.COM.TW WWW.100Y.COM.TW
WWW.100Y.COM.TW WWW.100Y.COM.TW WWW.100Y.COM.TW
WWW.100Y.COM.TW WWW.100Y.COM.TW WWW.100Y.COM.TW
WWW.100Y.COM.TW WWW.100Y.COM.TW WWW.100Y.COM.TW
WWW.100Y.COM.TW WWW.100Y.COM.TW WWW.100Y.COM.TW
WWW.100Y.COM.TW WWW.100Y.COM.TW WWW.100Y.COM.TW
WWW.100Y.COM.TW WWW.100Y.COM.TW WWW.100Y.COM.TW
WWW.100Y.COM.TW WWW.100Y.COM.TW WWW.100Y.COM.TW
WWW.100Y.COM.TW WWW.100Y.COM.TW WWW.100Y.COM.TW
WWW.100Y.COM.TW WWW.100Y.COM.TW WWW.100Y.COM.TW
WWW.100Y.COM.TW WWW.100Y.COM.TW WWW.100Y.COM.TW
WWW.100Y.COM.TW WWW.100Y.COM.TW WWW.100Y.COM.TW
WWW.100Y.COM.TW WWW.100Y.COM.TW WWW.100Y.COM.TW
WWW.100Y.COM.TW WWW.100Y.COM.TW WWW.100Y.COM.TW
WWW.100Y.COM.TW WWW.100Y.COM.TW WWW.100Y.COM.TW