Maxim Integrated Products 12
MAX31826
1-Wire Digital Temperature Sensor
with 1Kb Lockable EEPROM
Read ROM [33h]
This command can be used only when there is one slave
on the bus. It allows the bus master to read the slaves
64-bit ROM code without using the Search ROM com-
mand procedure. If this command is used when there is
more than one slave present on the bus, a data collision
occurs when all the slaves attempt to respond at the
same time.
Match ROM [55h]
The Match ROM command followed by a 64-bit ROM
code sequence allows the bus master to address a
specific slave device on a multidrop or single-drop bus.
Only the slave that exactly matches the 64-bit ROM code
sequence responds to the function command issued by
the master; all other slaves on the bus wait for a reset
pulse.
Skip ROM [CCh]
The master can use this command to address all devices
on the bus simultaneously without sending out any ROM
code information. For example, the master can make all
devices on the bus perform simultaneous temperature
conversions by issuing a Skip ROM command followed
by a Convert T function command.
Note that the Read Scratchpad 1 command can follow the
Skip ROM command only if there is a single slave device
on the bus. In this case, time is saved by allowing the
master to read from the slave without sending the devices
64-bit ROM code. A Skip ROM command followed by a
Read Scratchpad 1 command causes a data collision on
the bus if there is more than one slave because multiple
devices attempt to transmit data simultaneously.
MAX31826 Function Commands
After the bus master has used a ROM command to
address the MAX31826 with which it wishes to communi-
cate, the master can issue one of the MAX31826 function
commands. These commands allow the master to read
from the devices scratchpad memories, initiate tempera-
ture conversions, and determine the power-supply mode.
The MAX31826 function commands are summarized in
Table 2 and illustrated by the flowchart in Figure 8.
Convert T [44h]
This command initiates a single temperature conver-
sion. Following the conversion, the resulting thermal
data is stored in the 2-byte temperature register in the
Scratchpad 1 memory and the device returns to its low-
power idle state. If the device is being used in parasite-
power mode, within 10Fs (max) after this command is
issued, the master must enable a strong pullup on the
1-Wire bus for the duration of the conversion (t
CONV
) as
described in the Powering the MAX31826 section. If the
device is powered by an external supply, the master can
issue read time slots after the Convert T command, and
the device responds by transmitting 0 while the tempera-
ture conversion is in progress and 1 when the conversion
is done. In parasite-power mode, this notification tech-
nique cannot be used because the bus is pulled high by
the strong pullup during the conversion.
Read Scratchpad 1 [BEh]
This command allows the master to read the contents of
Scratchpad 1. The data transfer starts with the least sig-
nificant bit of byte 0 and continues through the scratch-
pad until the 9th byte (byte 8, CRC) is read. The master
can issue a reset to terminate reading at any time if only
part of the scratchpad data is needed. The CRC is com-
puted while data is read from bytes 07, and is shifted
out as byte 8.
Read Scratchpad 2 [AAh]
This command allows the master to read the contents of
Scratchpad 2. The command must be issued followed
by the start address to initiate a data transfer. The data
transfer always starts with the least significant bit of the
byte pointed to by the address bits [2:0], and the data
transfer continues through the scratchpad until 8 bytes
have been read. The [2:0] address bits wrap when
address [2:0] = 0x7 to [2:0] = 0x0. The master can issue
a reset to terminate reading at any time if only part of
the scratchpad data is needed. The CRC is computed
dynamically and includes the command, address, and all
the data bytes 07 for a total of 10 bytes. The computed
CRC is shifted out at the end of data byte 7. Because
the CRC contains the start address, the CRC value com-
puted can vary with different start addresses.
Note: After the Read Scratchpad 2 command, an address
of 00h returns the scratchpad contents correctly. This is
true regardless of the address sent during a preceding
Write Scratchpad 2 command transaction. However, the
address used during a preceding Write Scratchpad 2
command is necessary here to ensure that future Copy
Scratchpad 2 commands are copied to the correct row.
If 00h is used instead, a future Copy Scratchpad 2 com-
mand copies the contents to address 00h as opposed to
the row addressed by the Write Scratchpad 2 command.