M41T93_11 STMICROELECTRONICS [STMicroelectronics], M41T93_11 Datasheet - Page 17

no-image

M41T93_11

Manufacturer Part Number
M41T93_11
Description
Serial SPI bus real-time clock with battery switchover
Manufacturer
STMICROELECTRONICS [STMicroelectronics]
Datasheet
M41T93
3.1
Figure 9.
3.1.1
SDO
SCL
SDI
E
Clock data coherency
In order to synchronize the data during reads and writes of the real-time clock device, a set
of buffer transfer registers resides between the SPI serial interface on the user side, and the
clock/calendar counters in the part. While the read/write data is transferred in and out of the
device one bit at a time to the user, the transfers between the buffer registers and counters
occur such that all the bits are copied simultaneously. This keeps the data coherent and
ensures that none of the counters are incremented while the data is being transferred.
Clock data coherency
Example of incoherency
Without having the intervening buffer/transfer registers, if the user began directly reading the
counters at 23:59:59, a read of the seconds register would return 59 seconds. After the
address pointer incremented, the next read would return 59 minutes. Then the next read
should return 23 hours, but if the clock happened to increment between the reads, the user
would see 00 hours. When the time was re-assembled, it would appear as 00:59:59, and
thus be incorrect by one hour.
By using the buffer/transfer registers to hold a copy of the time, the user is able to read the
entire set of registers without any values changing during the read.
Similarly, when the application needs to change the time in the counters, it is necessary that
all the counters be loaded simultaneously. Thus, the user writes sequentially to the various
buffer/transfer registers, then they are copied to the counters in a single transfer thereby
coherently loading the counters.
BUFFER-TRANSFER
AT START OF READ OR WRITE,
DATA IN COUNTERS IS COPIED TO
BUFFER/TRANSFER REGISTERS.
INTERFACE
READ / WRITE
REGISTERS
SPI
ALARM / HALT
NON-CLOCK
SQUAREWAVE
DAY-OF-WEEK
REGISTERS
CALIBRATION
CENTURIES
WATCHDOG
SECONDS
MINUTES
MONTHS
HOURS
YEARS
DATE
Doc ID 12615 Rev 6
HALT BIT SET AT POWER-DOWN
AFTER A WRITE, DATA IS TRANSFERRED
FROM BUFFERS TO COUNTERS
DIVIDE BY 32768
COUNTER
COUNTER
COUNTER
COUNTER
COUNTER
COUNTER
COUNTER
32KHz
OSC
1 Hz
COUNTER
RTC
COUNTERS
Clock operation
17/51

Related parts for M41T93_11