The M41T60 is a low power serial RTC with a built-in 32.768 kHz oscillator (external crystal
controlled). Eight registers are used for the clock/calendar function and are configured in
binary coded decimal (BCD) format. Addresses and data are transferred serially via a twoline bi-directional bus. The built-in address register is increased automatically after each
WRITE or READ data byte.
The eight clock address locations contain the century, year, month, date, day, hour, minute,
and second in 24-hour BCD format. Corrections for 28-, 29- (leap year), 30-, and 31-day
months are made automatically.
Figure 4.Hardware hookup for SuperCap™ backup operation
V
CC
M41T60
1. Open drain output.
V
XI
XO
V
CC
SS
OFIRQ/OUT
FT
(1)
(1)
SCL
SDA
V
CC
Por t
Por t
Serial Clock Line
Serial Data Line
AI08871
MCU
AI10476b
6/27Doc ID 10396 Rev 13
M41T60Operation
2 Operation
The M41T60 clock operates as a slave device on the serial bus. Access is obtained by
implementing a start condition followed by the correct slave address (D0h). The 8 bytes
contained in the device can then be accessed sequentially in the following order:
1. Seconds register
2. Minutes register
3. Hours register
4. Day register
5. Date register
6. Century/month register
7. Years register
8. Calibration register
2.1 2-wire bus characteristics
This bus is intended for communication between different ICs. It consists of two lines: one
bi-directional for data signals (SDA) and one for clock signals (SCL). Both the SDA and the
SCL lines must be connected to a positive supply voltage via a pull-up resistor.
The following protocol has been defined:
●Data transfer may be initiated only when the bus is not busy.
●During data transfer, the data line must remain stable whenever the clock line is high.
Changes in the data line while the clock line is high will be interpreted as control
signals.
Accordingly, the following bus conditions have been defined:
2.1.1 Bus not busy
Both data and clock lines remain high.
2.1.2 Start data transfer
A change in the state of the data line, from high to low, while the clock is high, defines the
START condition.
2.1.3 Stop data transfer
A change in the state of the data line, from low to high, while the clock is high, defines the
STOP condition.
2.1.4 Data valid
The state of the data line represents valid data when after a start condition, the data line is
stable for the duration of the high period of the clock signal. The data on the line may be
changed during the low period of the clock signal. There is one clock pulse per bit of data.
Doc ID 10396 Rev 137/27
OperationM41T60
Each data transfer is initiated with a start condition and terminated with a stop condition.
The number of data bytes transferred between the start and stop conditions is not limited.
The information is transmitted byte-wide and each receiver acknowledges with a ninth bit.
By definition, a device that gives out a message is called “transmitter”, the receiving device
that gets the message is called “receiver”. The device that controls the message is called
“master”. The devices that are controlled by the master are called “slaves”.
2.1.5 Acknowledge
Each byte of eight bits is followed by one acknowledge bit. This acknowledge bit is a low
level put on the bus by the receiver, whereas the master generates an extra acknowledge
related clock pulse.
A slave receiver which is addressed is obliged to generate an acknowledge after the
reception of each byte. Also, a master receiver must generate an acknowledge after the
reception of each byte that has been clocked out of the slave transmitter.
The device that acknowledges has to pull down the SDA line during the acknowledge clock
pulse in such a way that the SDA line is a stable low during the high period of the
acknowledge related clock pulse. Of course, setup and hold times must be taken into
account. A master receiver must signal an end-of-data to the slave transmitter by not
generating an acknowledge on the last byte that has been clocked out of the slave. In this
case, the transmitter must leave the data line high to enable the master to generate the
STOP condition.
Figure 5.Serial bus data transfer sequence
DATA LINE
STABLE
DATA VALID
CLOCK
DATA
STA RT
CONDITION
CHANGE OF
DATA ALLOWED
STOP
CONDITION
AI00587
8/27Doc ID 10396 Rev 13
M41T60Operation
Figure 6.Acknowledgement sequence
CLOCK PULSE FOR
ACKNOWLEDGEMENT
SCL FROM
MASTER
STA RT
1289
DATA OUTPUT
BY TRANSMITTER
DATA OUTPUT
BY RECEIVER
2.2 READ mode
In this mode, the master reads the M41T60 slave after setting the slave address
(see Figure 7). Following the WRITE mode control bit (R/W
the word address An is written to the on-chip address pointer. Next the START condition
and slave address are repeated, followed by the READ mode control bit (R/W
point, the master transmitter becomes the master receiver. The data byte which was
addressed will be transmitted and the master receiver will send an acknowledge bit to the
slave transmitter. The address pointer is only increased on reception of an acknowledge bit.
The M41T60 slave transmitter will now place the data byte at address A
master receiver reads and acknowledges the new byte and the address pointer is increased
to A
This cycle of reading consecutive addresses will continue until the master receiver sends a
STOP condition to the slave transmitter.
The system-to-user transfer of clock data will be halted whenever the address being read is
a clock address (0h to 6h). The update will resume due to a stop condition or when the
pointer increments to any non-clock address (7h).
n+2
.
MSBLSB
= 0) and the acknowledge bit,
= 1). At this
on the bus. The
n+1
AI00601
An alternate READ mode may also be implemented, whereby the master reads the M41T60
slave without first writing to the (volatile) address pointer. The first address that is read is the
last one stored in the pointer (see Figure 9 on page 10).
Figure 7.Slave address location
R/W
STA RTA
Doc ID 10396 Rev 139/27
SLAVE ADDRESS
MSB
0100 011
LSB
AI00602
Loading...
+ 18 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.