DS1961S
31 of 36
Read-/Write-Time Slots
Data communication with the DS1961S takes place in time slots that carry a single bit each. Write-time
slots transport data from bus master to slave. Read-time slots transfer data from slave to master. The
definitions of the write- and read-time slots are illustrated in Figure 11.
All communication begins with the master pulling the data line low. As the voltage on the 1-Wire line
falls below the threshold V
TL
, the DS1961S starts its internal time base. The tolerance of the slave time
base creates a slave-sampling window that stretches from t
SLSMIN
to t
SLSMAX
. The voltage on the data line
at the sampling point determines whether the DS1961S decodes the time slot as 1 or 0. For reliable
communication the voltage has to be either below the V
ILMAX
or above the maximum V
TH
value during
the entire sampling window.
Master-to-Slave
For a write-one time slot, the master pulldown time (t
MPD1
= t
W1L
-e + t
F
) must be short enough to allow
the voltage on the 1-Wire line to reach V
TH
at t
SLSMIN
, the earliest sampling point of a DS1961S. After the
latest sampling point (t
SLSMAX
) there needs to be a recovery time (t
REC
) before the next time slot can start.
For a write-zero time slot, the master pulldown time (t
MPD0
= t
W0L
+ t
F
) must be long enough to keep the
voltage on the data line below V
ILMAX
at the sampling point of a slow DS1961S, which is t
SLSMAX
. Before
the next time slot can start, the voltage on the data line first needs to rise above V
TH
and remain there
until the recovery time t
REC
is expired.
Slave-to-Master
A read-data time slot is very similar to a write-one time slot. The master begins a read-data time slot with
pulling the data line low. As the voltage on the 1-Wire line falls below the threshold V
TL
, the DS1961S
starts its internal time base. The master pulldown time (t
MPDR
= t
RL
+ t
F
) must be long enough to cover the
setup time t
SU
, after which the DS1961S delivers a bit to its 1-Wire port. When transmitting a 0, the
DS1961S holds the data line low for t
SPD
. If the data bit is a 1, the DS1961S does not hold the data line
low at all.
The master samples the data line at t
MSR
, inside a window that is determined by the sum of t
RL
and the rise
time (d) on one side and t
SPDMIN
on the other side. The optimum sample point for a read-zero case is no
later than t
SPDMIN
. In case of a read-one, the voltage on the 1-Wire line must be able to reach V
IHMASTER
at
t
MSR
. This condition determines the maximum duration of the master pulldown time. For reliable
communication, the master pulldown time should be as short as possible, maximizing the time for the
data line to reach V
IHMIN
. Before the next time slot can start, t
SPDMAX
needs to be over and the voltage on
the data line must have risen above V
TH
and remained there until the recovery time t
REC
is expired.
DS1961S
32 of 36
Figure 11. READ/WRITE TIMING DIAGRAMS
Write-One Time Slot
RESISTOR MASTER DS1961S
V
PUP
V
IHMASTER
V
TH
V
TL
V
ILMAX
0V
DS1961S
Sampling
Window
t
SLSMIN
t
REC
t
F
t
SLOT
t
W1L
t
SLSMAX
e
Write-Zero Time Slot
RESISTOR MASTER DS1961S
t
REC
V
PUP
V
IHMASTER
V
TH
V
TL
V
ILMAX
0V
DS1961S
Sampling
Window
t
SLSMIN
t
F
t
SLOT
t
SLSMAX
t
W0L
Read-Data Time Slot
RESISTOR MASTER DS1961S
t
REC
V
PUP
V
IHMASTER
V
TH
V
TL
V
ILMAX
0V
Master
Sampling
Window
t
SPDMIN
d
t
F
t
SLOT
t
RL
t
MSR
t
SPDMAX
CRC GENERATION
With the DS1961S there are two different types of CRCs. One CRC is an 8-bit type. It is computed at the
factory and lasered into the most significant byte of the 64-bit ROM. The equivalent polynomial function
of this CRC is X
8
+ X
5
+ X
4
+ 1. To determine whether the ROM data has been read without error the bus
master can compute the CRC value from the first 56 bits of the 64-bit ROM and compare it to the value
DS1961S
33 of 36
read from the DS1961S. This 8-bit CRC is received in the true form (noninverted) when reading the
ROM.
The other CRC is a 16-bit type, generated according to the standardized CRC16-polynomial function
X
16
+ X
15
+ X
2
+ 1. This CRC is used for error detection with the read authenticated page command,
when reading the scratchpad and for fast verification of a data transfer when writing to the scratchpad or
with refresh scratchpad. It is the same type of CRC as is used for error detection within the iButton
extended file structure. In contrast to the 8-bit CRC, the 16-bit CRC is always returned or sent in the
complemented (inverted) form. A CRC-generator inside the DS1961S chip (Figure 12) calculates a new
16-bit CRC as shown in the command flow chart of Figure 7. The bus master can compare the CRC value
read from the device to the one it calculates from the data and decide whether to continue with an
operation or to re-read the portion of the data with the CRC error.
With write scratchpad, as well as refresh scratchpad, the CRC is generated by first clearing the CRC
generator and then shifting in the command code, the target addresses TA1 (with T2 to T0 set to 0) and
TA2, and all data bytes as sent by the master. The DS1961S transmits this CRC only if the master has
sent exactly eight bytes.
With the read scratchpad command the CRC is generated 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,
which may have been modified by the DS1961S (see write scratchpad command). The DS1961S
transmits this CRC only if the reading continues through the end of the scratchpad.
With the read authenticated page command the 16-bit CRC value is the result of shifting the command
byte into the cleared CRC generator, followed by the two address bytes, the data bytes, and the FFh byte.
The CRC that follows the MAC results from clearing the CRC generator and then shifting in the 160-bit
MAC in the same bit sequence as the master receives it.
For more details on generating CRC values including example implementations in both hardware and
software, refer to The Book of DS19xx iButton Standards.
Figure 12. CRC-16 HARDWARE DESCRIPTION AND POLYNOMIAL
Polynomial = X
16
+ X
15
+ X
2
+ 1
X
0
X
1
X
2
X
3
X
4
X
5
X
6
X
7
X
8
X
9
X
10
X
11
X
12
X
13
X
14
X
15
X
16
1
st
STAGE
2
nd
STAGE
3
rd
STAGE
4
th
STAGE
6
th
STAGE
5
th
STAGE
7
th
STAGE
8
th
STAGE
9
th
STAGE
10
th
STAGE
11
th
STAGE
12
th
STAGE
13
th
STAGE
14
th
STAGE
15
th
STAGE
16
th
STAGE
INPUT DATA
CRC
OUTPUT

DS1961S-F5+

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

Products related to this Datasheet