DS1557P-70 ,4MEG NV Y2KC Timekeeping RAMPRELIMINARYDS15574MEG NV Y2KC Timekeeping RAMwww.dalsemi.com
DS1557P-70 ,4MEG NV Y2KC Timekeeping RAMFEATURES PIN ASSIGNMENT Integrated NV SRAM, real time clock, crystal,power-fail control circuit an ..
DS1557P-70 ,4MEG NV Y2KC Timekeeping RAMFEATURES PIN ASSIGNMENT Integrated NV SRAM, real time clock, crystal,power-fail control circuit an ..
DS1557P-70+ ,4Meg, Nonvolatile, Y2K-Compliant Timekeeping RAM19-5501; Rev 9/10 DS1557 4Meg, Nonvolatile, Y2K-Compliant Timekeeping RAM
DS1557P-70+ ,4Meg, Nonvolatile, Y2K-Compliant Timekeeping RAMPIN DESCRIPTION 2100 A0–A18 - Address Input Battery Voltage-Level Indicator Flag DQ0–DQ7 - ..
DS1557P-70+ ,4Meg, Nonvolatile, Y2K-Compliant Timekeeping RAMPIN DESCRIPTION 2100 A0–A18 - Address Input Battery Voltage-Level Indicator Flag DQ0–DQ7 - ..
DTC314TS , Digital transistors (built-in resistor)
DTC314TU , Digital transistors (built-in resistor)
DTC323TS , Digital transistors (built-in resistor)
DTC323-TS , Digital transistors (built-in resistor)
DTC343TS , Digital transistors (built-in resistor)
DTC363EU , Digital transistors (built-in resistors)
DS1557P-70-DS1557WP-120
4MEG NV Y2KC Timekeeping RAM
FEATURESIntegrated NV SRAM, real time clock, crystal,
power-fail control circuit and lithium energy
sourceClock registers are accessed identically to the
static RAM; these registers are resident in the
16 top RAM locationsCentury byte register; i.e., Y2K complaintTotally nonvolatile with over 10 years of
operation in the absence of powerPrecision power-on resetProgrammable watchdog timer and RTC alarmBCD coded year, month, date, day, hours,
minutes, and seconds with automatic leap year
compensation valid up to the year 2100Battery voltage level indicator flagPower-fail write protection allows for ±10%
VCC power supply toleranceLithium energy source is electrically
disconnected to retain freshness until power is
applied for the first time
ORDERING INFORMATIONDS1557P-XXX(5-Volt)
-70 70 ns access
-100 100 ns access
*DS1557WP-XXX(3.3 Volt)
-120 120 ns access-150150 ns access
*DS9034PCX (PowerCap) Required:
must be ordered seperately
PIN ASSIGNMENT
PIN DESCRIPTIONA0-A14 - Address InputDQ0-DQ7 - Data Input/Outputs
IRQ\FT - Interrupt, Frequency Test
Output (Open Drain)
RST - Power-On Reset Output
(Open Drain) - Chip Enable - Output Enable - Write Enable
VCC- Power Supply Input
GND - GroundNC - No Connection
X1, X2- Crystal Connection
VBAT - Battery Connection
DESCRIPTIONThe DS1557 is a full function, year 2000-compliant (Y2KC), real-time clock/calendar (RTC) with a RTC
alarm, watchdog timer, power-on reset, battery monitor, and 512k x 8 non-volatile static RAM. User
access to all registers within the DS1557 is accomplished with a bytewide interface as shown in Figure 1.The RTC Registers contain century, year, month, date, day, hours, minutes, and seconds data in 24-hour
BCD format. Corrections for day of month and leap year are made automatically.
DS1557
4MEG NV Y2KC Timekeeping RAMIRQ/FTA15A16RSTVCC
WEOECEDQ7DQ6DQ5DQ4DQ3DQ2DQ1DQ0GND
34-Pin POWERCAP MODULE BOARD
(USES DS9034PCX POWERCAP)
DS1557
The RTC Registers are double-buffered into an internal and external set. The user has direct access to the
external set. Clock/calendar updates to the external set of registers can be disabled and enabled to allow
the user to access static data. Assuming the internal oscillator is turned on, the internal set of registers are
continuously updated; this occurs regardless of external registers settings to guarantee that accurate RTCinformation is always maintained.
The DS1557 has interrupt (IRQ/FT) and reset (RST) outputs which can be used to control CPU activity.
The IRQ/FT interrupt output can be used to generate an external interrupt when the RTC Register values
match user programmed alarm values. The interrupt is always available while the device is powered from
the system supply and can be programmed to occur when in the battery backed state to serve as a system
wake-up. Either the IRQ/FT or RST outputs can also be used as a CPU watchdog timer, CPU activity is
monitored and an interrupt or reset output will be activated if the correct activity is not detected withinprogrammed limits. The DS1557 power-on reset can be used to detect a system power down or failure
and hold the CPU in a safe reset state until normal power returns and stabilizes; the RST output is used
for this function.
The DS1557 also contains its own power-fail circuitry which automatically deselects the device when the
VCC supply enters an out of tolerance condition. This feature provides a high degree of data securityduring unpredictable system operation brought on by low VCC levels.
DS1557 BLOCK DIAGRAM Figure 1
DS1557
DS1557 OPERATING MODES Table 1
DATA READ MODEThe DS1557 is in the read mode whenever CE (chip enable) is low and WE (write enable) is high. The
device architecture allows ripple-through access to any valid address location. Valid data will be available
at the DQ pins within tAA after the last address input is stable, providing that CE and OE access times are
satisfied. If CE or OE access times are not met, valid data will be available at the latter of chip enableaccess (tCEA) or at output enable access time (tOEA). The state of the data input/output pins (DQ) is
controlled by CE and OE. If the outputs are activated before tAA, the data lines are driven to an
intermediate state until tAA. If the address inputs are changed while CE and OE remain valid, output data
will remain valid for output data hold time (tOH ) but will then go indeterminate until the next address
access.
DATA WRITE MODEThe DS1557 is in the write mode whenever WE and CE are in their active state. The start of a write is
referenced to the latter occurring transition of WE or CE. The addresses must be held valid throughout
the cycle. CE and WE must return inactive for a minimum of tWR prior to the initiation of a subsequent
read or write cycle. Data in must be valid tDS prior to the end of the write and remain valid for tDH
afterward. In a typical application, the OE signal will be high during a write cycle. However, OE can be
active provided that care is taken with the data bus to avoid bus contention. If OE is low prior to WE
transitioning low, the data bus can become active with read data defined by the address inputs. A low
transition on WE will then disable the outputs tWEZ after WE goes active.
DATA RETENTION MODEThe 5-volt device is fully accessible and data can be written and read only when VCC is greater than VPF.
However, when VCC is below the power-fail point VPF (point at which write protection occurs) the
internal clock registers and SRAM are blocked from any access. When VCC falls below the battery switch
point VSO (battery supply level), device power is switched from the VCC pin to the internal backup lithiumbattery. RTC operation and SRAM data are maintained from the battery until VCC is returned to nominal
levels.
The 3.3-volt device is fully accessible and data can be written and read only when VCC is greater than
VPF. When VCC falls below VPF, access to the device is inhibited. If VPF is less than VBAT, the devicepower is switched from VCC to the internal backup lithium battery when VCC drops below VPF. If VPF is
greater than VBAT, the device power is switched from VCC to the internal backup lithium battery when
VCC drops below VBAT. RTC operation and SRAM data are maintained from the battery until VCC is
returned to nominal levels.
DS1557
BATTERY LONGEVITYThe DS1557 has a lithium power source that is designed to provide energy for the clock activity, and
clock and RAM data retention when the VCC supply is not present. The capability of this internal power
supply is sufficient to power the DS1557 continuously for the life of the equipment in which it is
installed. For specification purposes, the life expectancy is 10 years at 25°C with the internal clockoscillator running in the absence of VCC.
INTERNAL BATTERY MONITORThe DS15573 constantly monitors the battery voltage of the internal batter. The Battery Low Flag (BLF)
bit of the Flags Register (B4 of 7FFF0h) is not writable and should always be a 0 when read. If a 1 is ever
present, an exhausted lithium energy source is indicated and both the contents of the RTC and RAM are
questionable.
POWER-ON RESETA temperature compensated comparator circuit monitors the level of VCC. When VCC falls to the power
fail trip point, the RST signal (open drain) is pulled low. When VCC returns to nominal levels, the
RSTsignal continues to be pulled low for a period of 40 ms to 200 ms. The power-on reset function isindependent of the RTC oscillator and thus is operational whether or not the oscillator is enabled.
CLOCK OPERATIONSTable 2 and the following paragraphs describe the operation of RTC, alarm, and watchdog functions.
DS1557
DS1557 REGISTER MAP Table 210 Year
X = Unused, read/writable under Write and ReadAE = Alarm Flag Enable
bit controlY = Unused, read/writable without Write and Read
FT = Frequency Test bitbit control
OSC = Oscillator start/stop bitABE = Alarm in battery Back-up mode enable
W = Write bitAM1-AM4 = Alarm Mask bits
R = Read bitWF = Watchdog Flag
WDS = Watchdog Steering bitAF = Alarm Flag
BMB0-BMB4 = Watchdog Multiplier bits0 = 0 and are read only
RB0-RB1 = Watchdog Resolution bitsBLF = Battery Low Flag
CLOCK OSCILLATOR CONTROLThe Clock oscillator may be stopped at any time. To increase the shelf life of the backup lithium battery
source, the oscillator can be turned off to minimize current drain from the battery. The OSC bit is the
MSB of the Seconds Register (B7 of 7FF9h). Setting it to a 1 stops the oscillator, setting to a 0 starts the
oscillator. The DS1557 is shipped from Dallas Semiconductor with the clock oscillator turned off, OSC
bit set to a 1.
READING THE CLOCKWhen reading the RTC data, it is recommended to halt updates to the external set of double-bufferedRTC Registers. This puts the external registers into a static state allowing data to be read without register
values changing during the read process. Normal updates to the internal registers continue while in this
state. External updates are halted when a 1 is written into the read bit, B6 of the Control Register
(7FF8h). As long as a 1 remains in the Control Register read bit, updating is halted. After a halt is issued,
the registers reflect the RTC count (day, date, and time) that was current at the moment the halt commandwas issued. Normal updates to the external set of registers will resume within 1 second after the read bit
is set to a 0.
DS1557
SETTING THE CLOCKThe 8th bit, B7 of the Control Register is the write bit. Setting the write bit to a 1, like the read bit, halts
updates to the DS1557 (7FF8h-7FFFh) registers. After setting the write bit to a 1, RTC Registers can be
loaded with the desired RTC count (day, date, and time) in 24-hour BCD format. Setting the write bit to a
0 then transfers the values written to the internal RTC Registers and allows normal operation to resume.
CLOCK ACCURACYThe DS1557 and DS9034PCX are each individually tested for accuracy. Once mounted together, the
module is guaranteed to keep time accuracy to within ±1.53 minutes per month (35 ppm) at 25°C. The
DS1557 does not require additional calibration and, in most applications, temperature deviations will
have a negligible effect on accuracy. For this reason, methods of field clock calibration are not available
and not necessary. Attempts to calibrate the RTC that may be used with similar device types (M48T5xfamily) will not have any effect even though the DS1557 appears to accept calibration data.
FREQUENCY TEST MODEThe DS1557 frequency test mode uses the open drain IRQ/FT output. With the oscillator running, the
IRQ/FT output will toggle at 512 Hz when the FT bit is a 1, the Alarm Flag Enable bit (AE) is a 0, and
the Watchdog Steering bit (WDS) is a 1 or the Watchdog Register is reset (Register 7FF7h = 00h). The
IRQ/FT output and the frequency test mode can be used as a measure of the actual frequency of the
32.768 kHz RTC oscillator. The IRQ/FT pin is an open drain output which requires a pullup resistor for
proper operation. The FT bit is cleared to a 0 on power-up.
USING THE CLOCK ALARMThe alarm settings and control for the DS1557 reside within Registers 7FF2h-7FF5h. Register 7FF6h
contains two alarm enable bits: Alarm Enable (AE) and Alarm in Backup Enable (ABE). The AE and
ABE bits must be set as described below for the IRQ/FT output to be activated for a matched alarm
condition.
The alarm can be programmed to activate on a specific day of the month or repeat every day, hour,minute, or second. It can also be programmed to go off while the DS1557 is in the battery backed state of
operation to serve as a system wake-up. Alarm mask bits AM1-AM4 control the alarm mode. Table 3
shows the possible settings. Configurations not listed in the table default to the once per second mode to
notify the user of an incorrect alarm setting.
DS1557
ALARM MASK BITS Table 3When the RTC Register values match Alarm Register settings, the Alarm Flag bit (AF) is set to a 1. If
Alarm Flag Enable (AE) is also set to a 1, the alarm condition activates the IRQ/FT pin. The IRQ/FT
signal is cleared by a read or write to the Flags Register (Address 7FF0h) as shown in Figure 2 and 3. The
IRQ/FT signal may be cleared by having the address stable for as short as 15 ns and either CE or WE
active, but is not guaranteed to be cleared unless tRC is fulfilled. The alarm flag is also cleared by a read or
write to the Flags Register but the flag will not change states until the end of the read/write cycle and the
IRQ/FT signal has been cleared.
CLEARING IRQ WAVEFORMS Figure 2
CLEARING IRQ WAVEFORMS Figure 3The IRQ/FT pin can also be activated in the battery backed mode. The IRQ/FT will go low if an alarm
occurs and both ABE and AE are set. The ABE and AE bits are cleared during the power-up transition,
however an alarm generated during power-up will set AF. Therefore the AF bit can be read after system
power-up to determine if an alarm was generated during the power-up sequence. Figure 4 illustrates
DS1557
BACK-UP MODE ALARM WAVEFORMS Figure 4
USING THE WATCHDOG TIMERThe watchdog timer can be used to detect an out-of-control processor. The user programs the watchdog
timer by setting the desired amount of time-out into the 8-bit Watchdog Register (Address 7FF7h). The
five Watchdog Register bits BMB4-BMB0 store a binary multiplier and the two lower order bits RB1-
RB0 select the resolution, where 00=1/16 second, 01=1/4 second, 10=1 second, and 11=4 seconds. Thewatchdog time-out value is then determined by the multiplication of the 5-bit multiplier value with the 2-
bit resolution value. (For example: writing 00001110 in the Watchdog Register = 3 X 1 second or 3
seconds.) If the processor does not reset the timer within the specified period, the Watchdog Flag (WF) is
set and a processor interrupt is generated and stays active until either the Watchdog Flag (WF) is read or
the Watchdog Register (7FF7) is read or written.
The most significant bit of the Watchdog Register is the Watchdog Steering Bit (WDS). When set to a 0,
the watchdog will activate the IRQ/FT output when the watchdog times out.
When WDS is set to a 1, the watchdog will output a negative pulse on the RSToutput for a duration of
40 ms to 200 ms. The Watchdog Register (7FF7) and the FT bit will reset to a 0 at the end of a watchdog
time-out when the WDS bit is set to a 1.
The watchdog timer resets when the processor performs a read or write of the Watchdog Register. The
time-out period then starts over. The watchdog timer is disabled by writing a value of 00h to the
Watchdog Register. The watchdog function is automatically disabled upon power-up and the Watchdog
Register is cleared. If the watchdog function is set to output to the IRQ/FT output and the frequency test
function is activated, the watchdog function prevails and the frequency test function is denied.
DS1557
POWER-ON DEFAULT STATESUpon application of power to the device, the following register bits are set to a 0:
WDS=0, BMB0-BMB4=0, RB0-RB1=0, AE=0, ABE=0.
ABSOLUTE MAXIMUM RATINGS*Voltage on Any Pin Relative to Ground -5.0V to +6.0V
Operating Temperature 0°C to 70°C
Storage Temperature -55°C to +125°C
Soldering Temperature 260°C for 10 seconds (See Note 8)
* This is a stress rating only and functional operation of the device at these or any other conditions above
those indicated in the operation sections of this specification is not implied. Exposure to absolutemaximum rating conditions for extended periods of time may affect reliability.
RECOMMENDED DC OPERATING CONDITIONS (0°C to 70°C)
DC ELECTRICAL CHARACTERISTICS (0°C to 70°C; VCC = 5.0V ±=10%)
DS1557
DC ELECTRICAL CHARACTERISTICS(0°C to 70°C; VCC = 3.3V ± 10%)
READ CYCLE TIMING DIAGRAM Figure 5