The M41T81S is a low-power serial real-time clock (RTC) with a built-in 32.768 kHz
oscillator (external crystal controlled). Eight bytes of the SRAM are used for the
clock/calendar function and are configured in binary-coded decimal (BCD) format. An
additional 12 bytes of SRAM provide status/control of alarm, watchdog and square wave
functions. Addresses and data are transferred serially via a two line, bidirectional I
interface. The built-in address register is incremented automatically after each WRITE or
READ data byte.
The M41T81S has a built-in power sense circuit which detects power failures and
automatically switches to the battery supply when a power failure occurs. The energy
needed to sustain the clock operations can be supplied by a small lithium button supply
when a power failure occurs. Functions available to the user include a non-volatile, time-ofday clock/calendar, alarm interrupts, watchdog timer and programmable square wave
output. The eight clock address locations contain the century, year, month, date, day, hour,
minute, second and tenths/hundredths of a second in 24-hour BCD format. Corrections for
28, 29 (leap year - valid until year 2100), 30 and 31 day months are made automatically.
The M41T81S is supplied in either an 8-pin SOIC or an 18-pin 300 mil SOIC package which
includes an embedded 32 KHz crystal.
2
C
The 18-pin, embedded crystal SOIC requires only a user-supplied battery to provide nonvolatile operation.
Figure 1.Logic diagram
V
V
BAT
CC
(1)
XI
(1)
XO
SCL
SDA
1. For SO8 package only
M41T81S
V
SS
IRQ/FT/OUT/SQW
AI09160
6/32Doc ID 10773 Rev 7
M41T81SDescription
Table 1.Signal names
(1)
XI
(1)
XO
IRQ/OUT/FT/SQWInterrupt / output driver / frequency test / square wave (open drain)
SDASerial data input/output
SCLSerial clock input
Oscillator input
Oscillator output
V
V
V
NC
NF
BAT
CC
SS
(2)
(2)
Battery supply voltage
Supply voltage
Ground
No connect
No function
1. For SO8 package only.
2. NC and NF pins should be tied to VSS.
Figure 2.8-pin SOIC (M) connections
8
7
6
1. Open drain output
1
XI
2
XO
V
BAT
V
SS
M41T81S
3
45
Figure 3.18-pin, 300 mil SOIC (MY) connections
NF
NF
1
NC
(1)
2
(1)
3
4
NC
5
NC
NC
NC
V
BAT
V
SS
M41T81S
6
7
8
9
18
17
16
15
14
13
12
11
10
V
CC
IRQ/FT/OUT/SQW
SCL
SDA
NC
(1)
NF
(1)
NF
V
CC
NC
IRQ/FT/OUT/SQW
NC
SCL
SDA
(1)
AI09161
(2)
AI09162
1. NC and NF pins should be tied to VSS. Pins 2 and 3 are internally shorted together. Pins 17 and 16 are
internally shorted together.
2. Open drain output
Doc ID 10773 Rev 77/32
DescriptionM41T81S
Figure 4.Block diagram
REAL TIME CLOCK
CALENDAR
CRYSTAL
SDA
32KHz
OSCILLATOR
2
I
C
INTERFACE
SCL
WRITE
PROTECT
V
CC
V
BAT
V
SO
V
COMPARE
PFD
1. Open drain output
2. Square wave function has the highest priority on IRQ
OSCILLATOR FAIL
CIRCUIT
RTC W/ALARM
& CALIBRATION
WATCHDOG
SQUARE WAVE
FREQUENCY TEST
OUTPUT DRIVER
/FT/OUT/SQW output.
OFIE
AFE
SQWE
FT
OUT
INTERNAL
POWER
IRQ/FT/OUT/SQW
(2)
(1)
AI09163
8/32Doc ID 10773 Rev 7
M41T81SOperation
2 Operation
The M41T81S 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 20 bytes
contained in the device can then be accessed sequentially in the following order:
1. Tenths/hundredths of a second register
2. Seconds register
3. Minutes register
4. Century/hours register
5. Day register
6. Date register
7. Month register
8. Year register
9. Calibration register
10. Watchdog register
11 - 15. Alarm registers
16. Flags register
17 - 19. Reserved
20. Square wave register
The M41T81S clock continually monitors V
fall below V
, the device terminates an access in progress and resets the device address
PFD
counter. Inputs to the device will not be recognized at this time to prevent erroneous data
from being written to the device from a an out-of-tolerance system. Once V
switchover voltage (V
), the device automatically switches over to the battery and powers
SO
down into an ultra-low current mode of operation to preserve battery life. If V
V
, the device power is switched from VCC to V
PFD
greater than V
V
. Upon power-up, the device switches from battery to VCC at VSO. When VCC rises
PFD
above V
PFD
, the device power is switched from VCC to V
PFD
, it will recognize the inputs.
For more information on battery storage life refer to application note AN1012, "Predicting the
battery life and data retention period of NVRAMs and serial RTCs" .
2-wire bus characteristics
The bus is intended for communication between different ICs. It consists of two lines: a bidirectional data signal (SDA) and a clock signal (SCL). Both the SDA and SCL lines must be
connected to a positive supply voltage via a pull-up resistor.
for an out-of-tolerance condition. Should VCC
CC
falls below the
CC
is less than
when VCC drops below V
BAT
when VCC drops below
BAT
BAT
BAT
. If V
BAT
is
Doc ID 10773 Rev 79/32
OperationM41T81S
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:
Bus not busy
Both data and clock lines remain high.
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.
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.
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.
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.”
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 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
10/32Doc ID 10773 Rev 7
Loading...
+ 22 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.