DS1972
1024-Bit EEPROM i
Button
______________________________________________________________________________________ 19
Improved Network Behavior
(Switchpoint Hysteresis)
In a 1-Wire environment, line termination is possible
only during transients controlled by the bus master
(1-Wire driver). 1-Wire networks, therefore, are suscep-
tible to noise of various origins. Depending on the
physical size and topology of the network, reflections
from end points and branch points can add up or can-
cel each other to some extent. Such reflections are visi-
ble as glitches or ringing on the 1-Wire communication
line. Noise coupled onto the 1-Wire line from external
sources can also result in signal glitching. A glitch dur-
ing the rising edge of a time slot can cause a slave
device to lose synchronization with the master and,
consequently, result in a Search ROM command com-
ing to a dead end or cause a device-specific function
command to abort. For better performance in network
applications, the DS1972 uses a new 1-Wire front-end,
which makes it less sensitive to noise.
The DS1972’s 1-Wire front-end differs from traditional
slave devices in three characteristics.
1) There is additional lowpass filtering in the circuit that
detects the falling edge at the beginning of a time
slot. This reduces the sensitivity to high-frequency
noise. This additional filtering does not apply at
overdrive speed.
2) There is a hysteresis at the low-to-high switching
threshold V
TH
. If a negative glitch crosses V
TH
but
does not go below V
TH
- V
HY
, it is not recognized
(Figure 12, Case A). The hysteresis is effective at
any 1-Wire speed.
3) There is a time window specified by the rising edge
hold-off time t
REH
during which glitches are ignored,
even if they extend below the V
TH
- V
HY
threshold
(Figure 12, Case B, t
GL
< t
REH
). Deep voltage drops
or glitches that appear late after crossing the V
TH
threshold and extend beyond the t
REH
window can-
not be filtered out and are taken as the beginning of a
new time slot (Figure 12, Case C, t
GL
t
REH
).
Devices that have the parameters V
HY
and t
REH
speci-
fied in their electrical characteristics use the improved
1-Wire front-end.
CRC Generation
The DS1972 uses two different types of CRCs. One
CRC is an 8-bit type and is stored in the most signifi-
cant byte of the 64-bit ROM. The bus master can com-
pute a CRC value from the first 56 bits of the 64-bit
ROM and compare it to the value stored within the
DS1972 to determine if the ROM data has been
received error-free. The equivalent polynomial function
of this CRC is X
8
+ X
5
+ X
4
+ 1. This 8-bit CRC is
received in the true (noninverted) form. It is computed
at the factory and lasered into the ROM.
The other CRC is a 16-bit type, generated according to
the standardized CRC-16 polynomial function X
16
+ X
15
+ X
2
+ 1. This CRC is used for fast verification of a data
transfer when writing to or reading from the scratchpad.
In contrast to the 8-bit CRC, the 16-bit CRC is always
communicated in the inverted form. A CRC generator
inside the DS1972 i
Button (Figure 13) calculates a new
16-bit CRC, as shown in the command flowchart
(Figure 7). The bus master compares the CRC value
read from the device to the one it calculates from the
data and decides whether to continue with an operation
or to reread the portion of the data with the CRC error.
With the Write Scratchpad command, the CRC is gen-
erated by first clearing the CRC generator and then
shifting in the command code, the target addresses
TA1 and TA2, and all the data bytes as they were sent
V
PUP
V
TH
V
HY
0V
t
REH
t
GL
t
REH
t
GL
CASE A CASE CCASE B
Figure 12. Noise Suppression Scheme
DS1972
1024-Bit EEPROM i
Button
20 ______________________________________________________________________________________
by the bus master. The DS1972 transmits this CRC only
if E[2:0] = 111b.
With the Read Scratchpad command, the CRC is gen-
erated by first clearing the CRC generator and then
shifting in the command code, the target addresses
TA1 and TA2, the E/S byte, and the scratchpad data as
they were sent by the DS1972. The DS1972 transmits
this CRC only if the reading continues through the end
of the scratchpad. For more information on generating
CRC values, refer to Application Note 27.
1ST
STAGE
2ND
STAGE
3RD
STAGE
4TH
STAGE
7TH
STAGE
8TH
STAGE
6TH
STAGE
5TH
STAGE
X
0
X
1
X
2
X
3
X
4
POLYNOMIAL = X
16
+ X
15
+ X
2
+ 1
INPUT DATA
CRC OUTPUT
X
5
X
6
11TH
STAGE
12TH
STAGE
15TH
STAGE
14TH
STAGE
13TH
STAGE
X
11
X
12
9TH
STAGE
10TH
STAGE
X
9
X
10
X
13
X
14
X
7
16TH
STAGE
X
16
X
15
X
8
Figure 13. CRC-16 Hardware Description and Polynomial
Command-Specific 1-Wire Communication Protocol—Legend
SYMBOL DESCRIPTION
RST 1-Wire reset pulse generated by master.
PD 1-Wire presence pulse generated by slave.
Select Command and data to satisfy the ROM function protocol.
WS Command “Write Scratchpad.”
RS Command “Read Scratchpad.”
CPS Command “Copy Scratchpad.”
RM Command “Read Memory.”
TA Target address TA1, TA2.
TA-E/S Target address TA1, TA2 with E/S byte.
<8T[2:0] bytes> Transfer of as many bytes as needed to reach the end of the scratchpad for a given target address.
<Data to EOM> Transfer of as many data bytes as are needed to reach the end of the memory.
CRC-16 Transfer of an inverted CRC-16.
FF Loop Indefinite loop where the master reads FF bytes.
AA Loop Indefinite loop where the master reads AA bytes.
Programming Data transfer to EEPROM; no activity on the 1-Wire bus permitted during this time.
DS1972
1024-Bit EEPROM i
Button
______________________________________________________________________________________ 21
Command-Specific 1-Wire Communication Protocol—Color Codes
1-Wire Communication Examples
Master to Slave Slave to Master Programming
Write Scratchpad (Cannot Fail)
RST PD Select WS TA <8–T[2:0] bytes> CRC-16 FF Loop
Read Scratchpad (Cannot Fail)
RST PD Select RS TA-E/S <8–T[2:0] bytes> CRC-16 FF Loop
Copy Scratchpad (Success)
RST PD Select CPS TA-E/S Programming AA Loop
Copy Scratchpad (Invalid Address or PF = 1 or Copy Protected)
RST PD Select CPS TA-E/S FF Loop
Read Memory (Success)
RST PD Select RM TA <Data to EOM> FF Loop
Read Memory (Invalid Address)
RST PD Select RM TA FF Loop

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