DS1972
1024-Bit EEPROM i
Button
______________________________________________________________________________________ 13
Initialization
All transactions on the 1-Wire bus begin with an initial-
ization sequence. The initialization sequence consists
of a reset pulse transmitted by the bus master followed
by presence pulse(s) transmitted by the slave(s). The
presence pulse lets the bus master know that the
DS1972 is on the bus and is ready to operate. For more
details, see the
1-Wire Signaling
section.
1-Wire ROM Function
Commands
Once the bus master has detected a presence, it can
issue one of the seven ROM function commands the
DS1972 supports. All ROM function commands are 8
bits long. A list of these commands follows (see the
flowchart in Figure 9).
Read ROM [33h]
The Read ROM command allows the bus master to read
the DS1972’s 8-bit family code, unique 48-bit serial num-
ber, and 8-bit CRC. This command can only be used if
there is a single slave on the bus. If more than one slave
is present on the bus, a data collision occurs when all
slaves try to transmit at the same time (open drain pro-
duces a wired-AND result). The resultant family code and
48-bit serial number result in a mismatch of the CRC.
Match ROM [55h]
The Match ROM command, followed by a 64-bit ROM
sequence, allows the bus master to address a specific
DS1972 on a multidrop bus. Only the DS1972 that exact-
ly matches the 64-bit ROM sequence responds to the
subsequent memory function command. All other slaves
wait for a reset pulse. This command can be used with a
single device or multiple devices on the bus.
Search ROM [F0h]
When a system is initially brought up, the bus master
might not know the number of devices on the 1-Wire
bus or their registration numbers. By taking advantage
of the wired-AND property of the bus, the master can
use a process of elimination to identify the registration
numbers of all slave devices. For each bit of the regis-
tration number, starting with the least significant bit, the
bus master issues a triplet of time slots. On the first slot,
each slave device participating in the search outputs
the true value of its registration number bit. On the sec-
ond slot, each slave device participating in the search
outputs the complemented value of its registration num-
ber bit. On the third slot, the master writes the true
value of the bit to be selected. All slave devices that do
not match the bit written by the master stop participat-
ing in the search. If both of the read bits are zero, the
master knows that slave devices exist with both states
of the bit. By choosing which state to write, the bus
master branches in the ROM code tree. After one com-
plete pass, the bus master knows the registration num-
ber of a single device. Additional passes identify the
registration numbers of the remaining devices. Refer to
Application Note 187:
1-Wire Search Algorithm
for a
detailed discussion, including an example.
Skip ROM [CCh]
This command can save time in a single-drop bus sys-
tem by allowing the bus master to access the memory
functions without providing the 64-bit ROM code. If
more than one slave is present on the bus and, for
example, a read command is issued following the Skip
ROM command, data collision occurs on the bus as
multiple slaves transmit simultaneously (open-drain
pulldowns produce a wired-AND result).
Rx
R
PUP
I
L
V
PUP
BUS MASTER
OPEN-DRAIN
PORT PIN
100Ω MOSFET
Tx
Rx
Tx
DATA
DS1972 1-Wire PORT
Rx = RECEIVE
Tx = TRANSMIT
Figure 8. Hardware Configuration
DS1972
1024-Bit EEPROM i
Button
14 ______________________________________________________________________________________
DS1972 Tx
PRESENCE PULSE
BUS MASTER Tx
RESET PULSE
BUS MASTER Tx ROM
FUNCTION COMMAND
DS1972 Tx
CRC BYTE
DS1972 Tx
FAMILY CODE
(1 BYTE)
DS1972 Tx
SERIAL NUMBER
(6 BYTES)
RC = 0
MASTER Tx BIT 0
RC = 0 RC = 0 RC = 0
OD = 0
YY
Y
Y
Y
Y
Y
Y
33h
READ ROM
COMMAND?
N
55h
MATCH ROM
COMMAND?
BIT 0 MATCH? BIT 0 MATCH?
N
N N
N N
N N
F0h
SEARCH ROM
COMMAND?
OD
RESET PULSE?
N
N
CCh
SKIP ROM
COMMAND?
N
RC = 1
MASTER Tx BIT 1
MASTER Tx BIT 63
BIT 1 MATCH?
BIT 63 MATCH?
Y
Y
RC = 1
FROM MEMORY FUNCTIONS
FLOWCHART (FIGURE 7)
TO MEMORY FUNCTIONS
FLOWCHART (FIGURE 7)
DS1972 Tx BIT 0
DS1972 Tx BIT 0
MASTER Tx BIT 0
BIT 1 MATCH?
BIT 63 MATCH?
DS1972 Tx BIT 1
DS1972 Tx BIT 1
MASTER Tx BIT 1
DS1972 Tx BIT 63
DS1972 Tx BIT 63
MASTER Tx BIT 63
Y
TO FIGURE 9b
TO FIGURE 9b
FROM FIGURE 9b
FROM FIGURE 9b
Figure 9a. ROM Functions Flowchart
DS1972
1024-Bit EEPROM i
Button
______________________________________________________________________________________ 15
RC = 0; OD = 1 RC = 0; OD = 1
N
BIT 0 MATCH?
YN
RC = 1?
Y
A5h
RESUME
COMMAND?
N
Y
3Ch
OVERDRIVE-
SKIP ROM?
N
Y
69h
OVERDRIVE-
MATCH ROM?
FROM FIGURE 9a
FROM FIGURE 9a
TO FIGURE 9a
NOTE: THE OD FLAG REMAINS AT 1 IF THE DEVICE WAS ALREADY AT OVERDRIVE SPEED BEFORE THE OVERDRIVE-MATCH ROM COMMAND WAS ISSUED.
TO FIGURE 9a
N
Y
Y
N
MASTER Tx
RESET?
Y
MASTER Tx
RESET?
N
BIT 1 MATCH?
MASTER Tx BIT 0
MASTER Tx BIT 1
OD = 0
(SEE NOTE)
(SEE NOTE)
(SEE NOTE)
N
OD = 0
N
OD = 0
Y
RC = 1
BIT 63 MATCH?
MASTER Tx BIT 63
Y
Figure 9b. ROM Functions Flowchart (continued)

DS1972-F3+

Mfr. #:
Manufacturer:
Maxim Integrated
Description:
iButtons & Accessories 1024-Bit EEPROM iButton
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet