The M41ST87Y/W secure serial RTC and NVRAM supervisor is a low power 1280-bit, static
CMOS SRAM organized as 160 bytes by 8 bits. A built-in 32.768 kHz oscillator (internal
crystal-controlled) and 8 bytes of the SRAM are used for the clock/calendar function and are
configured in binary coded decimal (BCD) format.
An additional 11 bytes of RAM provide calibration, status/control of alarm, watchdog,
tamper, and square wave functions. 8 bytes of ROM and finally 128 bytes of user RAM are
also provided. 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 M41ST87Y/W 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, tamper detection, watchdog timer, and programmable square wave output. Other
features include a power-on reset as well as two additional debounced inputs (RSTIN1
RSTIN2
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), 30 and 31 day months are
made automatically.
) which can also generate an output reset (RST). The eight clock address locations
2
C
and
1.1 Security features
Two fully independent tamper detection Inputs allow monitoring of multiple locations within
the system. User programmable bits provide both normally open and normally closed switch
monitoring. Time stamping of the tamper event is automatically provided. There is also an
option allowing data stored in either internal memory (128 bytes), and/or external memory to
be cleared, protecting sensitive information in the event tampering occurs. By embedding
the 32 kHz crystal in the SOX28 package, the clock is completely isolated from external
tampering. An oscillator fail bit (OF) is also provided to ensure correct operation of the
oscillator.
The M41ST87Y/W is supplied in a 28-pin, 300 mil SOIC package which includes an
embedded 32 kHz crystal and a 20-pin SSOP package for use with an external crystal.
The SOIC and SSOP packages are shipped in plastic anti-static tubes or in tape & reel form.
The 300 mil, embedded crystal SOIC requires only a user-supplied battery to provide non-
volatile operation.
6/54Doc ID 9497 Rev 10
M41ST87Y, M41ST87WDescription
Figure 1.Logic diagram
XI
XO
SCL
SDA
EX
RSTIN1
RSTIN2
WDI
PFI
PFI
TP1
TP2
(4)
(4)
(3)
IN
IN
(3)
(3)
1
2
CC
V
BAT
V
M41ST87Y
M41ST87W
V
OUT
IRQ/OUT
SQW/FT
(3)
E
CON
(1)
RST
(1)
F
32k
(2)
PFO
1
(2)
PFO
2
(3)
TP
CLR
(1)
(2)
V
SS
1. Open drain output.
2. Programmable output (open drain or full-CMOS). Defaults to open drain on first power-up.
3. Available in SOX28 package only.
4. Available in SSOP package only.
AI07023
Doc ID 9497 Rev 107/54
DescriptionM41ST87Y, M41ST87W
Figure 2.28-pin, 300 mil SOIC connections
V
NF
NF
NF
NF
NC
NC
PFO
SQW/FT
WDI
RSTIN1
RSTIN2
PFO
PFI
V
SS
1
2
3
4
5
6
7
2
M41ST87Y
8
M41ST87W
9
10
11
12
1
13
2
14
28
27
26
25
24
23
22
21
20
19
18
17
16
15
CC
EX
IRQ/OUT
V
OUT
TP2
IN
PFI
1
SCL
F
32k
TP1
IN
RST
TP
CLR
SDA
E
CON
V
BAT
AI07025b
Note:No function (NF) and no connect (NC) pins should be tied to V
internally shorted together.
Figure 3.20-pin, SSOP connections
V
CC
X1
X2
NC
PFO
SQW/FT
RSTIN1
PFO
PFI
V
SS
Note:No connect (NC) pin should be tied to V
1
2
3
4
5
2
M41ST87Y
M41ST87W
6
7
8
1
9
2
10
.
SS
20
19
18
17
16
15
14
13
12
11
IRQ/OUT
V
OUT
TP2
PFI
SCL
F
32k
TP1
RST
SDA
V
BAT
AI07025c
. Pins 1, 2, 3, and 4 are
SS
IN
1
IN
8/54Doc ID 9497 Rev 10
M41ST87Y, M41ST87WDescription
Table 1.Signal names
(1)
XI
(1)
XO
(2)
E
CON
(2)
EX
IRQ/OUT
(3)
Oscillator input
Oscillator output
Conditioned chip enable output
External chip enable
Interrupt/out output (open drain)
PFI
PFI
PFO
PFO
RST
1
2
(4)
1
(4)
2
(3)
Power fail input 1
Power fail input 2
Power fail output 1
Power fail output 2
Reset output (open drain)
RSTIN1Reset 1 input
RSTIN2
(2)
Reset 2 input
SCLSerial clock input
SDASerial data input/output
CC
OUT
SS
32k
CLR
BAT
(5)
(5)
(4)
(2)
Square wave output/frequency test
Watchdog input
Supply voltage
Voltage output
Ground
(3)
IN
IN
(2)
32 kHz square wave output (open drain)
Tamper pin 1 input
Tamper pin 2 input
Tamper pin RAM clear
Positive battery pin input
No function
No connect
SQW/FT
WDI
V
V
V
F
TP1
TP2
TP
V
NF
NC
1. Available in SSOP package only.
2. Available in SOX28 package only.
3. Open drain output.
4. Programmable output (open drain or full-CMOS).
5. Should be connected to VSS.
Doc ID 9497 Rev 109/54
DescriptionM41ST87Y, M41ST87W
Figure 4.Block diagram
REAL TIME CLOCK
CALENDAR
128 BYTES
SDA
I2C
INTERFACE
SCL
(4)
Crystal
V
OUT
WDI
2
TPX
V
IN
CC
V
BAT
V
SS
XI
32KHz
OSCILLATOR
XO
(3)
V
BL
CLR
COMPARE
USER RAM
8 BYTES ROM
RTC w/ALARM
& CALIBRATION
WATCHDOG
SQUARE WAVE
X
TAMPER
BL
OFIE
AFE
WDS
CLRX
EXT
TIE
OUT
32k
CLR
(1)
(2)
(3)
(1)
IRQ/OUT
X
SQW/FT
TP
V
F
SO
PFD
COMPARE
COMPARE
COMPARE
POR
RST
E
CON
PFO
RSTIN1
RSTIN2
EX
PFI
V
V
(3)
(3)
1
1.25V
(Internal)
PFI
2
COMPARE
PFO
1.25V
(Internal)
AI07026
1. Open drain output.
2. Programmable output (open drain or full-CMOS); if open drain option is selected and if pulled-up to supply other than V
this supply must be equal to, or less than V
when VCC = 0 V (during battery backup mode).
BAT
3. Available in SOX28 package only.
4. Crystal is external on SSOP package and internal for the SOX28 package.
(1)
(3)
(2)
1
(2)
2
,
CC
10/54Doc ID 9497 Rev 10
M41ST87Y, M41ST87WDescription
Figure 5.Hardware hookup
Unregulated
Voltage
V
IN
Regulator
V
IN
3.3V
Regulator
For monitoring
of additional
voltage sources
Pushbutton
R1
R3
R2
R4
1. Available in SOX28 package only.
5V
Reset
M41ST87Y/W
V
CC
V
CC
V
CC
TP1
TP2
EX
SCL
WDI
IN
IN
(1)
(1)
RSTIN1
(1)
RSTIN2
PFI
1
PFI
2
V
SS
V
BAT
TP
CLR
V
OUT
E
CON
SDA
RST
SQW/FT
PFO
PFO
IRQ/OUT
F
32k
(1)
V
(1)
CC
E
Low-Power
SRAM
To Microprocessor
To LED Display
1
2
To NMI
To INT
To 32kHz
AI07027
Doc ID 9497 Rev 1011/54
Operating modesM41ST87Y, M41ST87W
2 Operating modes
The M41ST87Y/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 160 bytes
contained in the device can then be accessed sequentially in the following order:
00h.Tenths/hundredths of a second register
01h.Seconds register
02h. Minutes register
03h. Century/hours register
04h. Day register
05h. Date register
06h. Month register
07h. Year register
08h. Control register
09h. Watchdog register
0Ah-0Eh. Alarm registers
0Fh. Flag register
10h-12h.Reserved
13h.Square wave
14h. Tamper register 1
15h. Tamper register 2
16h-1Dh.Serial number (8 bytes)
1Eh-1Fh.Reserved (2 bytes)
20h-9Fh.User RAM (128 bytes)
The M41ST87Y/W clock continually monitors V
V
fall below V
CC
, the device terminates an access in progress and resets the device
PFD
for an out-of-tolerance condition. Should
CC
address 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
below V
, the device automatically switches over to the battery and powers down into an
SO
CC
falls
ultra low current mode of operation to conserve battery life. As system power returns and
V
rises above VSO, the battery is disconnected, and the device is switched to external
CC
V
.
CC
Write protection continues until t
(min) elapses after VCC reaches V
rec
PFD
(min).
For more information on battery storage life refer to application note AN1012.
12/54Doc ID 9497 Rev 10
M41ST87Y, M41ST87WOperating modes
2.1 2-wire bus characteristics
The bus is intended for communication between different ICs. It consists of two lines: a clock
signal (SCL) and a bidirectional data signal (SDA). The SDA line 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.
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 that has been clocked out of the 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
Doc ID 9497 Rev 1013/54
Operating modesM41ST87Y, M41ST87W
case the transmitter must leave the data line high to enable the master to generate the
STOP condition.
Figure 6.Serial bus data transfer sequence
DATA LINE
STABLE
DATA VALID
CLOCK
DATA
START
CONDITION
DATA ALLOWED
Figure 7.Acknowledgement sequence
START
SCL FROM
MASTER
DATA OUTPUT
BY TRANSMITTER
DATA OUTPUT
BY RECEIVER
1289
MSBLSB
Figure 8.Bus timing requirements sequence
SDA
CHANGE OF
STOP
CONDITION
AI00587
CLOCK PULSE FOR
ACKNOWLEDGEMENT
AI00601
t
HD:STA
t
t
LOW
t
F
HIGH
t
t
HD:DAT
t
R
SP
SCL
t
BUF
14/54Doc ID 9497 Rev 10
SU:DAT
SR
t
t
SU:STA
HD:STA
P
AI00589
t
SU:STO
M41ST87Y, M41ST87WOperating modes
Table 2.AC characteristics
SymbolParameter
f
SCL
t
BUF
t
EXPD
t
F
t
HD:DAT
t
HD:STA
t
HIGH
t
LOW
t
R
t
SU:DAT
t
SU:STA
t
SU:STO
1. Valid for ambient operating temperature: TA = –40 to 85 °C; VCC = 4.5 to 5.5 V or 2.7 to 3.6 V (except where noted).
2. Available in SOX28 package only.
3. Transmitter must internally provide a hold time to bridge the undefined region (300 ns max) of the falling edge of SCL.
SCL clock frequency0400kHz
Time the bus must be free before a new transmission can start1.3µs
(2)
EX to E
propagation delay
CON
SDA and SCL fall time300ns
(3)
Data hold time0µs
START condition hold time
(after this period the first clock pulse is generated)
Clock high period600ns
Clock low period1.3µs
SDA and SCL rise time300ns
Data setup time100ns
START condition setup time
(only relevant for a repeated start condition)
STOP condition setup time600ns
(1)
MinMaxUnit
M41ST87Y10ns
M41ST87W15ns
600ns
600ns
2.2 READ mode
In this mode the master reads the M41ST87Y/W slave after setting the slave address (see
Figure 9 on page 16). Following the WRITE mode control bit (R/W
bit, 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 incremented on
reception of an acknowledge clock. The M41ST87Y/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.
This cycle of reading consecutive addresses will continue until the master receiver sends a
STOP condition to the slave transmitter (see Figure 10 on page 16).
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 resume 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
M41ST87Y/W 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 11 on page 16).
=0) and the acknowledge
=1). At this
Doc ID 9497 Rev 1015/54
Operating modesM41ST87Y, M41ST87W
Figure 9.Slave address location
R/W
STARTA
Figure 10. READ mode sequence
BUS ACTIVITY:
MASTER
SDA LINE
BUS ACTIVITY:
START
S
SLAVE
ADDRESS
R/W
ADDRESS (An)
ACK
WORD
SLAVE ADDRESS
MSB
0100 011
START
S
ACK
ADDRESS
STOP
SLAVE
LSB
AI00602
R/W
DATA nDATA n+1
ACK
ACK
ACK
DATA n+X
P
NO ACK
Figure 11. Alternate READ mode sequence
BUS ACTIVITY:
MASTER
BUS ACTIVITY:
16/54Doc ID 9497 Rev 10
START
S
SLAVE
ADDRESS
R/W
DATA nDATA n+1DATA n+X
ACK
ACK
AI00899
STOP
PSDA LINE
ACK
ACK
NO ACK
AI00895
M41ST87Y, M41ST87WOperating modes
2.3 WRITE mode
In this mode the master transmitter transmits to the M41ST87Y/W slave receiver. Bus
protocol is shown in Figure 12. 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 memory is 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
M41ST87Y/W slave receiver will send an acknowledge clock to the master transmitter after
it has received the slave address (see Figure 9 on page 16) and again after it has received
the word address and each data byte.
With valid VCC applied, the M41ST87Y/W can be accessed as described above with READ
or WRITE cycles. Should the supply voltage decay, the M41ST87Y/W will automatically
deselect, write protecting itself (and any external SRAM) when V
(max) and V
accomplished by internally inhibiting access to the clock registers. At this time, the reset pin
(RST
) is driven active and will remain active until VCC returns to nominal levels. External
RAM access is inhibited in a similar manner by forcing E
within 0.2 volts of the V
of-tolerance condition. When V
(min) (see Figure 28 on page 46, Table 19 on page 46). This is
PFD
. E
BAT
falls between V
CC
to a high level. This level is
will remain at this level as long as VCC remains at an out-
CON
falls below the battery backup switchover voltage (VSO),
CC
CON
PFD
Doc ID 9497 Rev 1017/54
Loading...
+ 37 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.