The M41T94 is a serial real-time clock with 44 bytes of NVRAM and a RESET output. A
built-in 32,768 Hz oscillator (external crystal controlled) and 8 bytes of the SRAM (see
Table 4 on page 18) are used for the clock/calendar function and are configured in binary
coded decimal (BCD) format.
An additional 12 bytes of RAM provide status/control of alarm, watchdog and square wave
functions. Addresses and data are transferred serially via a serial SPI interface. The built-in
address register is incremented automatically after each WRITE or READ data byte. The
M41T94 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 SRAM and clock operations can be supplied by a small lithium button-cell supply when a
power failure occurs. Functions available to the user include a non-volatile, time-of-day
clock/calendar, alarm interrupts, watchdog timer and programmable square wave output.
Other features include a power-on reset as well as two additional debounced inputs
(RSTIN1
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 ninth clock
address location controls user access to the clock information and also stores the clock
software calibration setting.
and RSTIN2) which can also generate an output reset (RST). The eight clock
The M41T94 is supplied in either a 16-lead plastic SOIC (requiring user supplied crystal and
battery) or a 28-lead SOIC SNAPHAT
in a single SNAPHAT top). The 28-pin, 330 mil SOIC provides sockets with gold plated
contacts at both ends for direct connection to a separate SNAPHAT housing containing the
battery and crystal. The unique design allows the SNAPHAT battery/crystal package to be
mounted on top of the SOIC package after the completion of the surface mount process.
Insertion of the SNAPHAT housing after reflow prevents potential battery and crystal
damage due to the high temperatures required for device surface-mounting. The SNAPHAT
housing is also keyed to prevent reverse insertion.
The SOIC and battery/crystal packages are shipped separately in plastic anti-static tubes or
in tape & reel form. For the 28-lead SOIC, the battery/crystal package (e.g., SNAPHAT) part
number is “M4TXX-BR12SH” (see Table 21 on page 37).
Caution:Do not place the SNAPHAT battery/crystal top in conductive foam, as this will drain the
lithium button-cell battery.
®
package (which integrates both crystal and battery
SPI Interface with
(CPOL, CPHA)
('0','0') or ('1','1')
Master
(ST6, ST7, ST9,
ST10, Others)
CS3
CS2
1. CPOL (clock polarity) and CPHA (clock phase) are bits that may be set in the SPI control register of the MCU.
(1)
=
CS1
D
Q
C
CQD
M41T94
E
CQD
XXXXX
EE
CQD
XXXXX
AI03686
9/41
DescriptionM41T94
Table 2.Function table
ModeESCLSDISDO
Disable resetHInput disabledInput disabledHigh Z
WRITELData bit latchHigh Z
AI04630
READLXNext data bit shift
AI04631
1. SDO remains at High Z until eight bits of data are ready to be shifted out during a READ.
Figure 6.Data and clock timing
CPOL
CPHA
0
1
0
1
C
C
(1)
SDI
SDO
MSB
MSB
LSB
LSB
AI04632
10/41
M41T94Signal description
2 Signal description
2.1 Serial data output (SDO)
The output pin is used to transfer data serially out of the memory. Data is shifted out on the
falling edge of the serial clock.
2.2 Serial data input (SDI)
The input pin is used to transfer data serially into the device. Instructions, addresses, and
the data to be written, are each received this way. Input is latched on the rising edge of the
serial clock.
2.3 Serial clock (SCL)
The serial clock provides the timing for the serial interface (as shown in Figure 7 on page 13
and Figure 8 on page 14). The W/R bit, addresses, or data are latched, from the input pin,
on the rising edge of the clock input. The output data on the SDO pin changes state after the
falling edge of the clock input.
The M41T94 can be driven by a microcontroller with its SPI peripheral running in either of
the two following modes:
●(CPOL, CPHA) = ('0', '0') or
●(CPOL, CPHA) = ('1', '1').
For these two modes, input data (SDI) is latched in by the low-to-high transition of clock
SCL, and output data (SDO) is shifted out on the high-to-low transition of SCL (see Ta bl e 2
on page 10 and Figure 6 on page 10).
2.4 Chip enable (E)
When E is high, the memory device is deselected, and the SDO output pin is held in its high
impedance state. After power-on, a high-to-low transition on E
any operation.
is required prior to the start of
11/41
OperationM41T94
3 Operation
The M41T94 clock operates as a slave device on the SPI serial bus. Each memory device is
accessed by a simple serial interface that is SPI bus compatible. The bus signals are SCL,
SDI and SDO (see Table 1 on page 8 and Figure 5 on page 9). The device is selected when
the chip enable input (E
in and out of the chip. The most significant bit is presented first, with the data input (SDI)
sampled on the first rising edge of the clock (SCL) after the chip enable (E
bytes contained in the device can then be accessed sequentially in the following order:
st
●1
●2
●3
●4
●5
●6
●7
●8
●9
●10
●11
●17
●20
●21
byte: tenths/hundredths of a second register
nd
byte: seconds register
rd
byte: minutes register
th
byte: century/hours register
th
byte: day register
th
byte: date register
th
byte: month register
th
byte: year register
th
byte: control register
th
byte: watchdog register
th
- 16th bytes: Alarm registers
th
- 19th bytes: reserved
th
byte: square wave register
st
- 64th bytes: user RAM
) is held low. All instructions, addresses and data are shifted serially
) goes low. The 64
The M41T94 clock continually monitors V
fall below V
, the device terminates an access in progress and resets the device address
PFD
for an out-of tolerance condition. Should VCC
CC
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. When V
V
, the device automatically switches over to the battery and powers down into an ultra low
SO
current mode of operation to conserve battery life. As system power returns and V
above V
Write protection continues until V
, the battery is disconnected, and the power supply is switched to external VCC.
SO
reaches V
CC
(min) plus t
PFD
(min). For more
REC
falls below
CC
CC
rises
information on battery storage life refer to application note AN1012.
12/41
M41T94Operation
3.1 SPI bus characteristics
The serial peripheral interface (SPI) bus is intended for synchronous communication
between different ICs. It consists of four signal lines: serial data input (SDI), serial data
output (SDO), serial clock (SCL) and a chip enable (E
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.”
The E
input is used to initiate and terminate a data transfer. The SCL input is used to
synchronize data transfer between the master (micro) and the slave (M41T94) devices.
The SCL input, which is generated by the microcontroller, is active only during address and
data transfer to any device on the SPI bus (see Figure 5 on page 9).
The M41T94 can be driven by a microcontroller with its SPI peripheral running in either of
the two following modes:
●(CPOL, CPHA) = ('0', '0') or
●(CPOL, CPHA) = ('1', '1').
For these two modes, input data (SDI) is latched in by the low-to-high transition of clock
SCL, and output data (SDO) is shifted out on the high-to-low transition of SCL (see Ta bl e 2
on page 10 and Figure 6 on page 10).
).
There is one clock for each bit transferred. Address and data bits are transferred in groups
of eight bits. Due to memory size the second most significant address bit is a Don’t Care
(address bit 6).
Figure 7.Input timing requirements
E
tELCH
SCL
tDVCH
SDI
SDO
MSB IN
HIGH IMPEDANCE
tCHDX
tDLDH
tDHDL
tCHEH
tCLCH
tEHEL
tEHCH
tCHCL
LSB IN
AI04633
13/41
Loading...
+ 28 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.