The M41ST85Y/W Serial TIMEKEEPER®/Controller SRAM is a low power 512-bit, static CMOS
SRAM organized as 64 words by 8 bi ts. A built-in
32.768 kHz oscilla tor (external crystal controlled)
and 8 bytes of the SRAM (see Table 2., page 14)
are used for the c lock/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 Wav e functions. Addresses and data are transferred serially
via a two line, bi-directional I
built-in address register is incremented automatically after each WRITE or READ data byte. The
M41ST85Y/W has a built-in power sense circuit
which detects power failures and automatically
switches to the battery supply when a power f ailure 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 addi tional d ebounc ed inputs
(RSTIN1
output Reset (RST
and RSTIN2) which can also generate an
). The eight clock address locations contain the century, year, month, date, day,
hour, minute, second and tenths/hundredt hs 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.
2
C interface. The
The M41ST85Y/W is supplied in a 28-lead SOIC
SNAPHAT
®
package (which integrates b oth crystal and battery in a single SNAP HA T top) o r a 28pin, 300mil SOIC package (MX) which includes an
embedded 32kHz crystal.
The 28-pin, 330mil SOIC provides sockets with
gold plated contacts at bot h 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 th e S OIC 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 2 8-lead SOIC, t he ba ttery/crystal package (e.g., SNAPHAT) part number is “M4TXX-BR12SH” (see Table
19., page 32).
Caution: Do not place the SNAPHAT battery/crystal top in conductive foam, as this will drain the lithium button-cell battery.
The 300mil, embedded crystal SOIC requires only
a user-supplied battery to provide non-volatile operation.
4/34
M41ST85Y, M41ST85W
Figure 3. Logic Diagram
V
CC
SCL
SDA
EX
M41ST85Y
RSTIN1
M41ST85W
RSTIN2
WDI
PFI
V
SS
Note: 1. For 28 -pin, 300mil em bedded cry st al SOIC only.
V
BAT
(1)
E
CON
RST
IRQ/FT/OUT
SQW
PFO
V
OUT
AI03658
Table 1. Signal Names
E
CON
EXExternal Chip Enable
/FT/OUT
IRQ
PFIPower Fail Input
PFO
RST
RSTIN1
RSTIN2
SCLSerial Clock Input
SDASerial Data Input/Output
SQWSquare Wave Output
WDIWatchdog Input
V
CC
V
OUT
V
SS
(1)
V
BA T
NCNo Connect
NFNo Function
Note: 1. For 28 -pin, 300mil em bedded cry st al SOIC only.
Note: No Funct ion ( NF) pin s shou ld be tie d t o VSS. Pins 1, 2, 3, and
4 are inter nally shorted together.
1
2
3
4
5
6
M41ST85Y
7
M41ST85W
8
9
10
11
12
13
14
28
27
26
25
24
23
22
21
20
19
18
17
16
15
EX
IRQ/FT/OUT
V
NC
PFI
SCL
NC
NC
RST
NC
SDA
E
V
CC
OUT
CON
BAT
AI06370d
5/34
M41ST85Y, M41ST85W
Figure 6. Block Diagram
SDA
SCL
(2)
Crystal
WDI
V
CC
V
BAT
I2C
INTERFACE
32KHz
OSCILLATOR
VBL= 2.5V
COMPARE
REAL TIME CLOCK
CALENDAR
44 BYTES
USER RAM
RTC w/ALARM
& CALIBRATION
WATCHDOG
SQUARE W AVE
BL
AFE
WDS
IRQ/FT/OUT
SQW
V
OUT
(1)
V
SO
V
PFD
RSTIN1
RSTIN2
EX
PFI
1.25V
(Internal)
Note: 1. Open drain outpu t
2. Integrated int o S O I C package for MX package option.
= 2.5V
= 4.4V
(2.65V for ST85W)
COMPARE
COMPARE
COMPARE
POR
RST
E
CON
PFO
(1)
AI03932
6/34
Figure 7. Hardware Hookup
M41ST85Y, M41ST85W
Unregulated
Voltage
R1
R2
Note: 1. Required for emb edded crystal (MX) pack age only.
Regulator
V
V
IN
Pushbutton
Reset
CC
From MCU
M41ST85Y/W
V
CC
EX
SCL
WDI
RSTIN1
RSTIN2
PFI
(1)
V
BAT
V
SS
V
OUT
E
CON
SDA
RST
SQW
PFO
IRQ/FT/OUT
V
CC
E
M68Z128Y/W
or
M68Z512Y/W
To RST
To LED Display
To NMI
To INT
AI03660
7/34
M41ST85Y, M41ST85W
OPERAT IN G MODES
The M41ST85Y/W 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 64 bytes contained in the device can then be accessed sequentially in the following order:
20. Square Wave Register
21 - 64. User RAM
The M41ST85Y/W clock continually monitors V
for an out-of-tolerance condition. Should VCC fall
below V
, the device terminates an access in
PFD
progress and resets t he device address counter.
Inputs to the device will not be recognized at this
time to prevent erroneous data f rom bei ng wri tten
to the device from a an out-of-tolerance system.
When V
falls below VSO, the device a utomati-
CC
cally switches over to the battery and powers
down into an ultra low current mode of operation to
conserve batte ry life. As system p ower returns and
rises above VSO, the battery is disconnected,
V
CC
and the power supply is switched to external V
Write protection continues until V
V
PFD
(min) plus t
rec
(min).
reaches
CC
For more information on Battery Storage Life refer
to Application Note AN1012.
2-Wire Bus Characteristics
The bus is intended for communication between
different ICs. It consists of two lines: a bi-directional 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.
The following protocol has been defined:
– Data transfer may be initiated only when the bus
is not busy.
CC
CC
– 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 li nes remain
High.
Start data transfer. A change in the s tate of the
data line, from High t o Low, while the c lock is High,
defines the START condition.
Stop data transfer. A c hange in the state of the
data line, from Low to High, while the clock is High,
defines the STOP condition.
Data Valid. T he state of the data line rep resents
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 o ut a m essag e 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 cal led
“slaves.”
Acknowledge. E ac h 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 transm itter 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.
In this mode the master reads the M 41ST85Y/W
slave after setting the slave address (see Figure
11., page 10). Following the WRITE Mode Control
Bit (R/W
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
mitter becomes the master receiver.
The data byte which was add re ssed will be transmitted and the master receiver will send an Acknowledge Bit to the slave transmitter. The
address pointer is only i ncremented on rec eption
of an Acknowledge Clock. The M41ST85Y/W
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.
Figure 11. Slave Address Location
=0) and the Acknowledge Bit, the word
=1). At this point the master trans-
This cycle of reading con secutive addresses will
continue until the master rec eiver sends a STOP
condition to the slave transmitter (see Figure
12., page 10).
The system-to-user transfer of clock data will be
halted whenever the address being read is a clock
address (00h to 07h). The update will resum e either due to a Stop Condition or when the pointer
increments to a non-clock or RAM address.
Note: This is true both in READ Mode and WRITE
Mode.
An alternate READ Mode may also be implemented whereby the master reads the M41ST85Y/W
slave without first writing to the (volatile) addres s
pointer. The first address that is read is the l ast
one stored in the pointer (see Figure
13., page 11).
R/W
STARTA
Figure 12. RE A D Mo de S equence
BUS ACTIVITY:
MASTER
SDA LINE
BUS ACTIVITY:
START
S
ADDRESS
R/W
ADDRESS (An)
ACK
SLAVE
DATA n+X
WORD
MSB
STOP
P
SLAVE ADDRESS
0100011
START
S
ACK
SLAVE
ADDRESS
LSB
AI00602
R/W
DATA nDATA n+1
ACK
ACK
ACK
10/34
AI00899
NO ACK
Figure 13. Al te rnat e RE A D Mode Seque nce
M41ST85Y, M41ST85W
BUS ACTIVITY:
MASTER
BUS ACTIVITY:
START
S
SLAVE
ADDRESS
R/W
DATA nDATA n+1DATA n+X
ACK
WRITE Mode
In this mode the master transmitter transmits to
the M41ST85Y/W slave receiver. Bus protocol is
shown in Figure 14., page 11. Following the
START condition and slave address, a logic '0' (R/
=0) is placed on the bus and indicates to the ad-
W
dressed 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 memory is
Figure 14. WR I TE Mode Seque nce
BUS ACTIVITY:
MASTER
START
R/W
STOP
PSDA LINE
ACK
ACK
ACK
NO ACK
AI00895
strobed in next and the internal address pointer is
incremented to the next memory location within
the RAM on the reception of an acknowledge
clock. The M41ST85Y/W sla ve receiver will send
an acknowledge clock to the master transmitter after it has received the slave address (see Figure
11., page 10) and again after it has received the
word address and each data byte.
STOP
BUS ACTIVITY:
S
ADDRESS
SLAVE
WORD
ADDRESS (An)
ACK
DATA nDATA n+1DATA n+X
ACK
ACK
ACK
PSDA LINE
ACK
AI00591
11/34
Loading...
+ 23 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.