5/18
M48T513Y, M 48T513V
TIMEKEEPER REGISTERS
The M48T513Y/V offers 16 internal registers
which contain TIMEKEEPER, Alarm, Watchdog,
Interrupt, Flag, and Control data. These registers
are memory locations which contain external (user
accessible) and internal copies of the data (us ually
referred to as BiPORT™ TIMEKEEPER cells).
The external copies are independent of internal
functions except t hat they are updated periodically
by the simultaneous transfer of the incremented
in te r n a l copy. TI MEKEEPER a nd Alar m Register s
store data in BCD.
CLOCK OPERATIONS
Reading the Clock
Updates to the TIMEKEEPER registers should be
halted bef ore clock data is read to prevent reading
data in transition. Because the BiPORT TIME-
KEEPER cells i n the R AM a r ra y are onl y d a ta r e g -
isters, and not the actual clock counters, updat ing
the registers can b e halted without disturbing the
clock i tse l f.
Updating is halted when a '1' is written to the
READ bit, D6 i n the Control Register (7FFF8h). As
long as a '1' remains in that position, updating is
halted. After a halt is issued, the registers reflect
the count; that is, the day, dat e, and time that were
current at the moment the halt command was is-
s ued. Al l o f th e TI MEKEEPER r egi ster s are updat-
ed simultaneously. A halt will not interrupt an
update in progress. Updating occ urs 1 second a f-
ter the READ bit is reset to a '0'.
Setting the Clock
Bit D7 of the Control Register (7FFF8h) is the
WRITE bit. Setting the WR ITE bit to a '1', like t he
RE AD b i t, halts u p dates to the TIMEKEEPER re g -
isters. The user can then load them with the cor-
rect day, date, and time data in 24 hour BCD
format (see Table 11).
Resetting the WRITE bit to a '0' then transfers the
values of all time registers (7FFFFh-7FFF9h,
7FFF1h) to th e actual TIMEKEEPER counters and
allows normal operation to resume. After the
WRITE bit is reset, the next clock update will occur
approximately one second later.
Note: Upon power-up following a power failure,
both the WRITE bit and the READ bit will be reset
to '0'.
Stopping and Starting the Oscillator
The oscillator may be stopped at any time. If the
device is going to spend a significant amount of
time on the shelf, the oscillat or can be turned off to
minimize current drain on the battery. The STOP
bit is located at Bit D7 within 7FFF9h. Setting it to
a '1' stops the oscillator. When reset to a '0', the
M48T513 Y/V oscillator starts within one second.
Note: It is not necessary to set the WRITE bit
when setting or resetting the FREQUE NCY TES T
bit (FT) or the STOP bit (ST ).
SETTING ALARM CLOCK
Registers 7F FF6h-7FFF2 h contain t he alarm set-
tings. The alarm can be configured to go off at a
prescribed time on a specific month, date, hour,
minute, or second or repeat every month, day,
hour, minute, or second. It can also be pro-
grammed to go off while the M48T513Y/V is in the
batt ery back-up to serve as a system wake-up call.
Bits RPT5-RPT1 put the alarm in the repeat mode
of operation. Tabl e 12 shows the po ssible config-
urations. Codes not listed in the table default to the
once per secon d m ode t o qu ick ly alert the us er of
an incorrect alarm setting.
Note: User must transition address (or toggle Chip
Enable) to see Flag Bit change.
When the clock information matches the alarm
clock settings based on the match cr iteria d efined
by RPT5-RPT1, the AF (Alarm Flag) is set. If AFE
(Alarm Flag Enable) is also set, the alarm condi-
tion activates the IRQ/FT pin. To disable alarm,
write ’0’ to the Alarm Date register and RPT1-4.
The IRQ/FT output is cleared by a read to the
Flags register as shown in Figure 11. A subse-
quent read of the Flags register will reset the
Alarm Flag (D6; Register 7FFF 0h).
The IRQ/FT pin can also be activated in the bat-
tery back-up mode. The IRQ/FT will go low if an
alarm occurs and both ABE (Alarm in Battery
Back-up Mode Enable) and AFE are set. The ABE
and AFE bits are reset during power-up, therefore
an alarm generated during power-up will only set
AF. The user can read t he Flag Register at syst em
boot-up to determine if an alarm was generated
while the M48T51 3Y/V was in t he desel ect m ode
during power-up. Figure 12 il l ustrates the back-up
mode alarm timing.