DS1961S
25 of 36
The master can read the MAC with the read authenticated page command in a register and bit sequence as
shown in Table 3. With the copy scratchpad command the bit transmission sequence is the same,
however, the master has to compute the MAC and send it to the DS1961S. With the compute next secret
command the MAC is not exposed. Instead, the contents of the D and E SHA computation registers are
directly copied to the secret, as shown in Table 1.
1-WIRE BUS SYSTEM
The 1-Wire bus is a system, which has a single bus master and one or more slaves. In all instances the
DS1961S is a slave device. The bus master is typically a microcontroller. For small configurations the 1-
Wire communication signals can be generated under software control using a single port pin. For larger
configurations, the DS2480B 1-Wire line driver chip or serial port adapters based on this chip (DS9097U
series) are recommended. This simplifies the hardware design and frees the microprocessor from
responding in real-time.
The discussion of this bus system is broken down into three topics: hardware configuration, transaction
sequence, and 1-Wire signaling (signal types and timing). The 1-Wire protocol defines bus transactions in
terms of the bus state during specific time slots that are initiated on the falling edge of sync pulses from
the bus master. For a more detailed protocol description, refer to Chapter 4 of The Book of DS19xx
iButton Standards.
HARDWARE CONFIGURATION
The 1-Wire bus has only a single line by definition; it is important that each device on the bus be able to
drive it at the appropriate time. To facilitate this, each device attached to the 1-Wire bus must have open-
drain or tri-state outputs. The 1-Wire port of the DS1961S is open drain with an internal circuit equivalent
to that shown in Figure 8.
A multidrop bus consists of a 1-Wire bus with multiple slaves attached. At standard speed the 1-Wire bus
has a maximum data rate of 16.3kbps. The speed can be boosted to 142kbps by activating the overdrive
mode. The DS1961S is not guaranteed to be fully compliant to the iButton standard. Its maximum data
rate in standard speed mode is 14.1kbps and 125kbps in overdrive. The DS1961S requires a 1-Wire
pullup resistor of maximum 2.2kW for executing any of its memory and SHA function commands at any
speed. When communicating with several DS1961S simultaneously, e.g., to install the same secret in
several devices, the resistor should be bypassed by a low-impedance pullup to V
PUP
while the device
transfers data from the scratchpad to the EEPROM.
The idle state for the 1-Wire bus is high. If for any reason a transaction needs to be suspended, the bus
must be left in the idle state if the transaction is to resume. If this does not occur and the bus is left low
for more than 16µs (overdrive speed) or more than 120µs (regular speed), one or more devices on the bus
can be reset. With the DS1961S the bus must be left low for no longer than 15.2µs at overdrive speed to
ensure that none of the slave devices on the 1-Wire bus performs a reset. Despite of its limited
compliance, the DS1961S communicates properly when used in conjunction with a DS2480B 1-Wire
driver and serial port adapters that are based on this driver chip.
DS1961S
26 of 36
Figure 8. HARDWARE CONFIGURATION
OPEN-DRAIN
PORT PIN
RX = RECEIVE
TX = TRANSMIT
100
W
MOSFET
V
PUP
RX
TX
TX
RXDATA
R
PU
5µA
(typ)
BUS MASTER DS1961S 1-WIRE PORT
TRANSACTION SEQUENCE
The protocol for accessing the DS1961S through the 1-Wire port is as follows:
§ Initialization
§ ROM Function Command
§ Memory or SHA Function Command
§ Transaction/Data
INITIALIZATION
All transactions on the 1-Wire bus begin with an initialization 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 DS1961S is on the bus and is ready to
operate. For more details, see the 1-Wire Signaling section.
ROM FUNCTION COMMANDS
Once the bus master has detected a presence, it can issue one of the seven ROM function commands that
the DS1961S supports. All ROM function commands are eight bits long. A list of these commands
follows (see the flow chart in Figure 9):
Read ROM [33h]
This command allows the bus master to read the DS1961S’s 8-bit family code, unique 48-bit serial
number, and 8-bit CRC. This command should 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 produces a wired-AND result). The resultant family code and 48-bit serial number read
by the master are invalid.
Match ROM [55h]
The match ROM command, followed by a 64-bit registration number, allows the bus master to address a
specific DS1961S on a multidrop bus. Only the DS1961S that exactly matches the 64-bit registration
number responds to the following memory function command. All other slaves wait for a reset pulse.
This command can be used with single or multiple devices on the bus.
DS1961S
27 of 36
Figure 9-1. ROM FUNCTIONS FLOW CHART
From Figure 9
2nd Part
To Memory Functions
Flow Chart
(
Fi
g
ure 7
)
Master TX Bit 0
Master TX Bit 63
Master TX Bit 1
Bit 63
Match ?
RC = 0
DS1961S TX Bit 0
DS1961S TX Bit 0
Master TX Bit 0
DS1961S TX Bit 1
DS1961S TX Bit 1
Master TX Bit 1
DS1961S TX Bit 63
DS1961S TX Bit 63
Master TX Bit 63
RC = 1
Bit 1
Match ?
Bit 0
Match ?
Y
N
Y
N
Y
N
Bit 63
Match ?
RC = 0
RC = 1
Bit 1
Match ?
Bit 0
Match ?
Y
N
Y
N
Y
N
RC = 0
DS1961S TX
CRC B
y
te
DS1961S TX
Serial Number
(6 Bytes)
DS1961S TX
Family Code
(1 Byte)
RC = 0
To Figure 9
2nd Part
N
F0h
Search ROM
Command ?
N
55h
Match ROM
Command ?
N
CCh
Skip ROM
Command ?
YY YY
N
33h
Read ROM
Command ?
To Figure 9
2nd Part
From Memory Functions
Flow Chart
(
Fi
g
ure 9
)
Bus Master TX ROM
Function Command
DS1961S TX
Presence Pulse
OD
Reset Pulse ?
N
Y
OD = 0
Bus Master TX
Reset Pulse
From Fi
g
ure 9, 2nd Part

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