ST M41T00AUD User manual

December 2007 Rev 2 1/44
1
M41T00AUD
Serial real-time clock with audio
Features
■Combination real-time clock with audio
– Serial RTC based on M41T00
– Audio section provides:
– 300mW differential audio amplifier
– 256 and 512Hz tone generation
– -33 to +12dB gain, 3dB steps (16 steps
plus MUTE)
■Real-time clock details:
– Superset of M41T00
– 3.0 to 3.6V operation
– Timekeeping down to 1.7V
– Automatic backup switchover circuit
– Ultra low 400nA backup current at 3.0V
(typ)
– Suitable for battery or capacitor backup
– On-chip trickle charge circuit for backup
capacitor
– 400kHz I2C bus
– M41T00 compatible register set with
counters for seconds, minutes, hours, day,
date, month, years, and century
– Automatic leap year compensation
– HT bit set when clock goes into backup
mode
– RTC operates using 32,768Hz quartz
crystal
– Calibration register provides for
adjustments of -63 to +126ppm
– Oscillator supports crystals with up to
40kΩseries resistance, 12.5pF load
capacitance
– Oscillator fail detect circuit OF bit indicates
when oscillator has stopped for four or
more cycles
■Audio section
– Power amplifier
– Differential output amplifier
– Provides 300mW into 8Ω(THD+N = 2%
(max), fin = 1kHz)
– Summing node at audio input
– Inverting configuration with summing
resistors into the minus (-) terminal
– 0dB gain with 10kΩfeedback resistor
and 20kΩinput summing resistors
– Signal input centered at VDD/2
–1.6V
P-P analog input range (max)
– 256 or 512 Hz signal multiplexing with
analog input to provide audio with beep
tones
– Volume control, 4-bit register
– Allows gain adjustment from -33dB to
+12dB
– 3dB steps
–MUTEbit
– Audio automatically shuts off in backup
mode
■0°C to 70°C operation
■Small DFN16 package (5mm x 4mm)
DFN16 (5mm x 4mm)
“D” Suffix
www.st.com

Contents M41T00AUD
2/44
Contents
1 Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2 Pin settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.1 Pin connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.2 Pin description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
3 Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
4 Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
4.1 2-wire bus characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
4.2 Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
4.3 READ mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
4.4 WRITE mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
4.5 Data retention mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
5 M41T00AUD clock operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
5.1 Clock registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
5.1.1 Halt bit operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
5.1.2 Oscillator fail detect operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
5.1.3 Trickle charger . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
5.2 Reading and writing the clock registers . . . . . . . . . . . . . . . . . . . . . . . . . . 18
5.3 Priority for IRQ/FT/OUT pin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
5.4 Switchover thresholds . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
5.5 Trickle charge circuit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
6 Clock calibration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
6.1 Digital calibration (periodic counter correction) . . . . . . . . . . . . . . . . . . . . 24
7 Audio section operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
7.1 Gain . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
7.1.1 Gain tolerance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
7.2 Wake-up time: TWU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32

M41T00AUD Contents
3/44
8 Initial conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
9 Maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
10 DC and AC parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
11 Package mechanical data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
12 Part numbering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
13 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43

List of tables M41T00AUD
4/44
List of tables
Table 1. Pin description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Table 2. List of registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Table 3. AC characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Table 4. M41T00AUD register map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Table 5. Priority for IRQ/FT/OUT pin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Table 6. Digital calibration values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Table 7. MUTE and GAIN values (VCC = 3.3V and ambient temperature = 25°C). . . . . . . . . . . . . . 30
Table 8. Initial values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Table 9. Absolute maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Table 10. Operating and AC measurement conditions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Table 11. Input/output characteristics (25°C, f = 1MHz) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Table 12. DC characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Table 13. Crystal electrical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Table 14. RTC power down/up AC characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Table 15. RTC power down/up trip points DC characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Table 16. Audio section electrical characteristics, valid for VCC = 3.3V and
TAMB = 25°C (except where otherwise noted)38
Table 17. DFN16 (5mm x 4mm) package mechanical data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Table 18. Ordering information scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Table 19. Document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43

M41T00AUD List of figures
5/44
List of figures
Figure 1. Logic diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Figure 2. Pin connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Figure 3. Application diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Figure 4. Typical hookup example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Figure 5. Serial bus data transfer sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Figure 6. Acknowledgement sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Figure 7. Bus timing requirements sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Figure 8. Slave address location . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Figure 9. READ mode sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Figure 10. Alternate READ mode sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Figure 11. WRITE mode sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Figure 12. Counter update diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Figure 13. Switchover thresholds. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Figure 14. Trickle charge circuit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Figure 15. Crystal accuracy across temperature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Figure 16. Audio section diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Figure 17. AC testing Input/Output waveform . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Figure 18. Power down/up mode AC waveforms. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Figure 19. DFN16 (5mm x 4mm) package outline . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40

Description M41T00AUD
6/44
1 Description
The M41T00AUD is a low power serial real-time clock (RTC) with an integral audio section
with tone generator and 300mW output amplifier. The RTC is a superset of the M41T00 with
enhancements such as a precision reference for switchover, an oscillator fail detect circuit
and storing of the time at power down. The audio section includes a summing amplifier
(inverting) at the input. An 8kHz low pass filter follows that with a 16 step programmable gain
stage next. A 256 or 512Hz audio tone can be switched into the filter in place of the input
signal. From the gain stage, the 300mW amplifier drives the output pins.
The M41T00AUD has a built-in power sense circuit which detects power failures and
automatically switches to the backup input when VCC is removed. Backup power can be
supplied by a capacitor or by a battery such as a Lithium coin cell. The device includes a
trickle charge circuit for charging the capacitor.
The RTC includes a built-in 32.768kHz oscillator controlled by an external crystal. Eight
register bytes are used for the clock/calendar functions and are superset compatible with
the M41T00. Two additional registers control the audio section and the trickle charger. The
10 registers (see Ta b l e 2 ) are accessed over a 400kHz I2C bus. The address register
increments automatically after each byte READ or WRITE operation thus streamlining
transfers by eliminating the need to send a new address for each by to be transferred.
Typical data retention times will be in excess of 5 years with a 50mAh 3V lithium cell (see
RTC DC characteristics, Ta bl e 1 2 for more information).
Figure 1. Logic diagram
OSCI
VCC
M41T00AUD
VSS
SCL
OSCO IRQ/FT/OUT
SDA
VBIAS
AIN
VBACK
AOUT+
AOUT–
NC
FBK
ai13322

M41T00AUD Pin settings
7/44
2 Pin settings
2.1 Pin connection
Figure 2. Pin connection
2.2 Pin description
OSCI 1
OSCO 2
VSS 3
4
VCC
IRQ/FT/OUT
VBACK
SCL
SDA
5
6
7
8
16
15
14
13
12
11
10
9
VCC
AOUT+
FBK
VBIAS
NC
AOUT–
AIN
VSS
ai13323
Table 1. Pin description
Symbol Name and function
VCC Supply voltage
OSCI Oscillator input
OSCO Oscillator output
SCL I2C serial clock
SDA I2C serial data
AIN Audio input
VBIAS Input for decoupling capacitor
VSS Ground
AOUT– Analog out, 180 phase
AOUT+ Analog out, 0 phase
IRQ/FT/OUT Interrupt output for oscillator fail detect, frequency
test output for calibration, or discrete logic output
VBACK Backup supply voltage
FBK Feedback; connect feedback resistor between this
pin and AIN
NC No connection
No name; exposed pad on back of IC
package Must be connected to ground

Application M41T00AUD
8/44
3 Application
Figure 3. Application diagram
AU TOMATIC
BATTERY
SWITCHOVER
& DESELEC T
VCC
2
I2C
VCC
32KHz
OSCILL ATOR
400kHz I2C
INTER FACE
OSCI
OSCO
uC
REFERENCE
VPFD=2.80V
IRQ/FT/OUT
TRICKLE
CHARGE
VINT
VBACK
VCC
256/512Hz
AUDIO
BPF ADJ
GAIN
AIN
AOUT+
AOUT–
VSS VBIAS
WRITE
FBK
Audio-in
M41T00AUD
ai13324
SECS
MINS
HOURS
DATE
DAY
MONTH
YEAR
CENTURY BIT
CALIBRATION
OUT
OSCILLATOR
FAIL DETECT
I2C
(SDA,
SCL)
PROTECT

M41T00AUD Application
9/44
Figure 4. Typical hookup example
BATTERY
SWITCHOVER
32KHz
OSC
I2C
OSCI
OSCO
IRQ/FT/OUT
TRICKLE
CHARGE
VINT
VBACK
256/512Hz
AUDIO
SECTION
AIN AOUT+
AOUT–
VBIAS
R1 20kΩ
0.1μF
Audio
In
0.22μF
1μF
3.3V
0.1μF
VCC
1.0μF
VCC
4
15
SCL 7
SDA 8
3.3V
SCL
SDA
4.7kΩ
3.3V
1
2
32.768kHz
6
+
(typical)
Lithium
Cell
Battery
(alternative)
Either/or, but
not both
5
Optional connection
to micro
13
16
8Ω
or higher
11
R1x
20kΩ
R1x
20kΩ
Optional: can
sum additional
audio inputs
Set R1’s to 2x
R2 for unity gain
10
PMH
Package Metal Heatsink:
exposed pad on back of
IC package
RTC
4.7kΩ
*optional
VSS 3
VSS 14
Place near
pin 15
Place near
pin 4
VDD
2
VDD
2
FBK 12
R2 10kΩ
4.7kΩ
3.3V
R2 should
be a minimum
of 10kΩ
ONE GEN
M41T00AUD
ai13325

Operation M41T00AUD
10/44
4 Operation
The M41T00AUD 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 10 bytes
contained in the device can then be accessed sequentially in the following order:
The M41T00AUD continually monitors VCC for an out of tolerance condition. Should VCC fall
below VPFD, the device terminates an access in progress and resets the device address
counter. Inputs to the device will not be recognized at this time to prevent erroneous data
from being written to the device from an out of tolerance system. When VCC falls below VSO,
the device automatically switches over to the backup battery or capacitor and powers down
into an ultra low current mode of operation to conserve battery life. Upon power-up, the
device switches from battery to VCC at VSO and recognizes inputs.
Table 2. List of registers
Byte address Contents
00h Seconds register
01h Minutes register
02h Century/hours register
03h Day register
04h Date register
05h Month register
06h Years register
07h Calibration/control register
08h Audio register
09h Control2 register

M41T00AUD Operation
11/44
4.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:
●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. 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.

Operation M41T00AUD
12/44
Figure 5. Serial bus data transfer sequence
Figure 6. Acknowledgement sequence
Figure 7. Bus timing requirements sequence
1. P = STOP and S = START
AI00587
DATA
CLOCK
DATA LINE
STABLE
DATA VALID
START
CONDITION
CHANGE OF
DATA ALLOWED
STOP
CONDITION
AI00601
DATA OUTPUT
BY RECEIVER
DATA OUTPUT
BY TRANSMITTER
SCLK FROM
MASTER
START
CLOCK PULSE FOR
ACKNOWLEDGEMENT
12 89
MSB LSB
AI00589
SDA
P
tSU:S
T
tSU:STA
tHD:STA
SR
SCL
tSU:DAT
tF
tHD:DAT
tR
tHIGH
tLOW
tHD:STAtBUF
SP

M41T00AUD Operation
13/44
4.2 Characteristics
4.3 READ mode
In this mode, the master reads the M41T00AUD slave after setting the slave address (see
Figure 8). Following the WRITE mode control bit (R/W = 0) and the acknowledge bit, the
word (register) 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 =
1). At this 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 incremented on reception of an
acknowledge bit. The device slave transmitter will now place the data byte at address An+1
on the bus. The master receiver reads and acknowledges the new byte and the address
pointer is incremented to An+2.
This cycle of reading consecutive addresses will continue until the master receiver sends a
STOP condition to the slave transmitter.
An alternate READ mode may also be implemented, whereby the master reads the
M41T00AUD 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 10).
Table 3. AC characteristics
Symbol Parameter(1)
1. Valid for ambient operating temperature: TA= 0 to 70°C; VCC = 3.0 to 3.6V (except where noted).
Min Typ Max Units
fSCL SCL clock frequency 0 400 kHz
tLOW Clock Low period 1.3 µs
tHIGH Clock High period 600 ns
tRSDA and SCL Rise time 300 ns
tFSDA and SCL Fall time 300 ns
tHD:STA
START condition Hold time
(after this period the first clock pulse is generated) 600 ns
tSU:STA
START condition Setup time
(only relevant for a repeated start condition) 600 ns
tSU:DAT(2)
2. Transmitter must internally provide a hold time to bridge the undefined region (300ns max) of the falling
edge of SCL.
Data Setup time 100 ns
tHD:DAT Data Hold time 0 µs
tSU:STO STOP condition Setup time 600 ns
tBUF
Time the bus must be free before a new
transmission can start 1.3 µs

Operation M41T00AUD
14/44
Figure 8. Slave address location
Figure 9. READ mode sequence
Figure 10. Alternate READ mode sequence
AI00602
R/W
SLAVE ADDRESS
START A
0100011
MSB
LSB
AI00899
BUS ACTIVITY:
ACK
S
ACK
ACK
ACK
NO ACK STOP
START
P
SDA LINE
BUS ACTIVITY:
MASTER
R/W
DATA n DATA n+1
DATA n+X
WORD
ADDRESS (An)
SLAVE
ADDRESS
S
START
R/W
SLAVE
ADDRESS
ACK
AI00895
BUS ACTIVITY:
ACK
S
ACK
ACK
ACK
ACK STOP
START
PSDA LINE
BUS ACTIVITY:
MASTER
R/W
DATA n DATA n+1 DATA n+X
SLAVE
ADDRESS

M41T00AUD Operation
15/44
4.4 WRITE mode
In this mode the master transmitter transmits to the M41T00AUD slave receiver. Bus
protocol is shown in Figure 11. Following the START condition and slave address, a logic '0'
(R/W = 0) is placed on the bus and indicates to the addressed device that word address An
will follow and is to be written to the on-chip address pointer. The data word to be written to
the device is strobed in next and the internal address pointer is incremented to the next
location within the device on the reception of an acknowledge clock. The M41T00AUD slave
receiver will send an acknowledge clock to the master transmitter after it has received the
slave address and again after it has received the word address and each data byte (see
Figure 8).
Figure 11. WRITE mode sequence
4.5 Data retention mode
With valid VCC applied, the M41T00AUD can be accessed as described above with READ or WRITE
cycles. Should the supply voltage decay, the M41T00AUD will automatically deselect, write protecting
itself when VCC falls (see Figure 13).
AI00591
BUS ACTIVITY:
ACK
S
ACK
ACK
ACK
ACK STOP
START
PSDA LINE
BUS ACTIVITY:
MASTER
R/W
DATA n DATA n+1 DATA n+X
WORD
ADDRESS (An)
SLAVE
ADDRESS

M41T00AUD clock operation M41T00AUD
16/44
5 M41T00AUD clock operation
5.1 Clock registers
The 10-byte Register Map (see Ta bl e 2 ) is used to both set the clock and to read the date
and time from the clock, in a binary coded decimal format.
Seconds, Minutes, and Hours are contained within the first three registers. Bits D6 to D0 or
register 00h (seconds register) contain the seconds count in BCD format with values in the
range 0 to 59. Bit D7 is the ST or stop bit, described below, and is not affected by the
timekeeping operation, but users must avoid inadvertently altering it when writing the
seconds register.
Setting the ST bit to a 1 will cause the oscillator to stop. If the device is expected to spend a
significant amount of time on the shelf, the oscillator may be stopped to reduce current drain
on the backup battery. When reset to a 0 the oscillator restarts within one second.
In order to ensure oscillator start-up after the initial power-up, set the ST bit to a 1 then write
it to 0. This sequence enables the "kick start" circuit which aids the oscillator start-up by
temporarily increasing the oscillator current. This will guarantee oscillator start-up under
worst case conditions of voltage and temperature. This feature can be employed anytime
the oscillator is being started but should not occur on subsequent power-ups when the
oscillator is already running.
Bits D6 to D0 of register 01h (Minutes Register) contain the minutes count in BCD format
with values in the range 0 to 59. Bit D7 always reads 0. Writing it has no effect.
Bits D5 to D0 of register 02h (Century/ Hours Register) contain the hours in BCD format with
values in the range 0 to 23. Bits D7 and D6 contain the century enable bit (CEB) and the
century bit (CB). CB provides a one-bit indicator for the century. The user can apply his
preferred convention for defining the meaning of this bit. For example, 0 can mean the
current century, and 1 the next, or the opposite meanings may be used.
When enabled, CB will toggle every 100 years. Setting CEB to a 1 enables CB to toggle at
the turn of the century, either from 0 to 1 or from 1 to 0, depending on its initial state, as
programmed by the user. When CEB is a 0, CB will not toggle.
Bits D2 through D0 of Register 03h (day register) contain the day of the week in BCD format
with values in the range 0 to 7. Bits D3 and D7 will always read 0. Writes to them have no
effect. Bits D6, D5 and D4 will power up in an indeterminate state.
Register 04h contains the date (day of month) in BCD format with values in the range 01 to
31. Bits D7 and D6 always read 0. Writes to them have no effect.
Register 05 h is the Month in BCD format with values in the range 1 to 12. Bits D7, D6 and
D5 always read 0. Writes to them have no effect.
Register 06h is the years in BCD format with values in the range 0 to 99. Writing to any of
the registers 00h to 06h, including the control bits therein, will result in updates to the
counters and resetting of the internal clock divider chain including the 256/512Hz tone
generator. The updates do not occur immediately after the write(s), but occur upon
completion of the current write access. This is described in greater detail in the next section.
Registers 07h and 09h also contain clock control and status information. These registers
can be written at any time without affecting the timekeeping function.

M41T00AUD M41T00AUD clock operation
17/44
Register 08 is the calibration register. Calibration is described in detail in the Clock
calibration section. Bit D7 is the OUT bit and controls the discrete output pin IRQ/FT/OUT as
described in Ta b l e 5 .
5.1.1 Halt bit operation
Bit D7 of register 09 h is the HT or halt bit. Whenever the device switches to backup power,
it sets the HT bit to 1 and stores the time of power down in the transfer buffer registers. This
is known as power-down time stamp. During normal timekeeping, once per second, the
transfer buffer registers are updated with the current time. When HT is 1, that updating is
halted. The clock continues to keep time but the periodic updates do not occur.
Upon power up, reads of the clock registers will return the time of power down (assuming
adequate backup power was maintained while VCC was off). After the user clears the HT bit
by writing it to 0, subsequent reads of the clock registers will return the current time.
At power up, the user can read the time of power down, and then clear the HT bit to allow
updates. The next read will return the current time. Knowing both the power up time and the
power down time allows the user to calculate the duration of power off.
In addition to the HT bit getting set to 1 automatically at power down, the user can also write
it to 1 to halt updating of the registers.
5.1.2 Oscillator fail detect operation
Bits D5 and D4 of register 09 h contain the oscillator fail flag (OF) and the oscillator fail
interrupt enable bit (OFIE). If the 32 KHz oscillator drops four or more pulses in a row, as
might occur during an extended outage while backed up on a capacitor, the OF bit will be
set to 1. This provides an indication to the user of the integrity of the timekeeping operation.
Whenever the OF bit is a 1, the system should consider the time to be possibly corrupted
due to operating at too low a voltage. The OF bit will always be 1 at the initial power up of
the device. The OF bit is cleared by writing it to 0. At the initial power up, users should wait
three seconds for the oscillator to stabilize before clearing the OF bit.
OFIE can be used to enable the device to assert its interrupt output whenever an oscillator
failure is detected. The oscillator fail interrupt will drive the IRQ/FT/OUT pin as described in
Table 5. The interrupt is cleared by writing the OF bit to 0. Setting OFIE enables the
oscillator fail interrupt. Clearing it to 0 disables it, but the OF will continue to function
regardless of OFIE.
5.1.3 Trickle charger
Bits D6 and D3 to D0, of register 09h, control the trickle charge function. It is described in
detail in the Trickle Charge Circuit section.

M41T00AUD clock operation M41T00AUD
18/44
5.2 Reading and writing the clock registers
The counters used to implement the timing chain in the real-time clock are not directly
accessed by the serial interface. Instead, as depicted in Figure 12, reads and writes are
buffered through a set of transfer registers. This ensures coherency of the timekeeping
function.
During writes of the timekeeping registers (00h to 06h), the write data is stored in the buffer
transfer registers until all the data is written, then the register contents are simultaneously
transferred to the counters thus updating them. The update is triggered either by a STOP
condition or by a write to one of the non RTC registers, 07h to 09h. If any of the buffer
transfer registers are not written, then the corresponding counters are not updated. Instead,
those counters will retain their previous contents when the update occurs.
Similar to the writes, reads access the buffer transfer registers. The device periodically
updates the registers with the counter contents. But during reads, the updates are
suspended. Timekeeping continues, but the registers are frozen until after a STOP
condition or a non RTC register (07h to 09h) is read. Suspending the updates ensures that
a clock roll-over does not occur during a user read cycle.
The seven clock registers may be read one byte at a time, or in a sequential block. The
calibration, audio and Control2 registers, location 07 h to 09 h, may be accessed
independently.
Provision has been made to ensure that a clock update does not occur while any of the
seven clock addresses are being read. During a clock register read (addresses 00h to 06h),
updates of the clock transfer buffer registers are halted. The clock counters continue to keep
time, but the contents of the transfer buffer registers is frozen at the time that the read
access began.
This prevents a transition of data during the READ. For example, without the halt function, if
the time incremented past midnight in the middle of an access sequence, the user might
begin reading at 11:59:59pm and finish at 12:00:00am. The data read might appear as
12:59:59 because the seconds and minutes were read before midnight while the hours were
read after. The device prevents this by halting the updates of the registers until after the
read access has occurred.

M41T00AUD M41T00AUD clock operation
19/44
Table 4. M41T00AUD register map(1)
Bit
Register name Range
Addr D7 D6 D5 D4 D3 D2 D1 D0
00h ST 10 seconds Seconds Seconds 00-59
01h 0(2) 10 minutes Minutes Minutes 00-59
02h CEB CB 10 hours Hours (24 hour format) Century/hours 0-1/00-23
03h 0 Y(3) YY 0 Dayofweek Day 1-7
04h 0 0 10 date Date: day of month Date 01-31
05h 0 0 0 10M Month Month 01-12
06h 10 years Year Year 00-99
07h OUT FT S <------------- Calibration ------------> Cal/control
08h 256/512 TONE TCH2 MUTE <--------------GAIN ------------> Audio
09h HT TCFE OF OFIE TCHE3 TCHE2 TCHE1 TCHE0 Control2
1. Key:
S = SIGN bit
FT = Frequency Test bit'
ST = STOP bit
OF = Oscillator Fail Detect Flag
OFIE = Oscillator Fail Interrupt Enable
OUT = Logic Output
TCHE3:TCHEO = Trickle Charge Enable bits
TCFE = Trickle Charge FET bypass Enable
HT = Halt bit
TCH2 = Trickle Charge Enable #2
TONE = Tone on/off select
CB = Century bit
CEB = Century Enable bit
256/512 = Tone frequency select bit
2. 0 bits always read as 0. Writing them has no effect.
3. Y bits are indeterminate at power-up. These are the factory test mode bits, and must be written to 0.

M41T00AUD clock operation M41T00AUD
20/44
Figure 12. Counter update diagram
32KHz
COUNTER
DIVIDE BY
1 Hz
SECONDS
MINUTES
HOURS
MONTHS
YEARS
CENTURIES
COUNTER
COUNTER
COUNTER
COUNTER
COUNTER
COUNTER
REGISTER
REGISTER
REGISTER
REGISTER
DAY
DATE
REGISTER
REGISTER
REGISTER
READ/WRITE
BUFFER
TRANSFER
REGISTERS
SERIAL
TRANSFER
REGISTER
ai13329
12C SERIAL BUS
32768
OSC
Table of contents
Popular Clock manuals by other brands

Dallas
Dallas Maxim DS12885 manual

Pyramid
Pyramid TimeTrax Clock datasheet

teching
teching Craftsman Galileo Pendulum Clock DM35 Assembly instructions

Nixie Clock
Nixie Clock IN-17 Assembly instructions and user's manual

Masterclock
Masterclock RC1000 Quick setup instructions

Oregon Scientific
Oregon Scientific RMR391P user manual