Maxim Integrated Products 11
MAX31826
1-Wire Digital Temperature Sensor
with 1Kb Lockable EEPROM
Figure 6. Hardware Configuration
The 1-Wire bus requires an external pullup resistor of
approximately 5kI; thus, the idle state for the 1-Wire bus
is high. If for any reason a transaction needs to be sus-
pended, the bus must be left in the idle state if the transac-
tion is to resume. Infinite recovery time can occur between
bits so long as the 1-Wire bus is in the inactive (high) state
during the recovery period. If the bus is held low for more
than 480Fs, all components on the bus are reset.
Transaction Sequence
The transaction sequence for accessing the device is as
follows:
1) Step 1: Initialization
2) Step 2: ROM Command (followed by any required
data exchange)
3) Step 3: MAX31826 Function Command (followed by
any required data exchange)
It is very important to follow this sequence every time the
device is accessed, as the device does not respond if
any steps in the sequence are missing or out of order.
An exception to this rule is the Search ROM command.
After issuing this ROM command, the master must return
to step 1 in the sequence.
Initialization
All transactions on the 1-Wire bus begin with an initializa-
tion 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 pres-
ence pulse lets the bus master know that slave devices
(such as the MAX31826) are on the bus and are ready
to operate. Timing for the reset and presence pulses is
detailed in the 1-Wire Signaling section.
ROM Commands
After the bus master has detected a presence pulse, it
can issue a ROM command. These commands operate
on the unique 64-bit ROM codes of each slave device
and allow the master to single out a specific device if
many are present on the 1-Wire bus. These commands
also allow the master to determine how many and what
types of devices are present on the bus. There are four
ROM commands, and each command is 8 bits long. The
master device must issue an appropriate ROM command
before issuing a MAX31826 function command. Figure 7
shows a flowchart for operation of the ROM commands.
Search ROM [F0h]
When a system is initially powered up, the master must
identify the ROM codes of all slave devices on the
bus, which allows the master to determine the number
of slaves and their device types. The master learns
the ROM codes through a process of elimination that
requires the master to perform a Search ROM cycle (i.e.,
Search ROM command followed by data exchange) as
many times as necessary to identify all the slave devices.
If there is only one slave on the bus, the simpler Read
ROM command can be used in place of the Search ROM
process. For a detailed explanation of the Search ROM
command procedure, refer to Application Note 937: Book
of iButton
?/DIV>
Standards. After every Search ROM cycle,
the bus master must return to step 1 (initialization) in the
transaction sequence.
Rx
4.7k&
5礎(chǔ)
TYP
V
PU
BUS MASTER
OPEN-DRAIN
PORT PIN
100& MOSFET
Tx
Rx
Tx
DQ
MAX31826 1-Wire PORT
Rx = RECEIVE
Tx = TRANSMIT