Datasheet

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 or if any device
has experienced an alarm condition. There are five ROM
commands, and each command is 8 bits long. The master
device must issue an appropriate ROM command before
issuingaMAX31820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procedure,refer
to ApplicationNote937:Book of iButton Standards. After
everySearchROMcycle,thebusmastermustreturnto
Step1(initialization)inthetransactionsequence.
Read ROM [33h]
This command can only be used when there is one slave
on the bus. It allows the bus master to read the slave’s
64-bitROMcodewithoutusingtheSearchROMproce-
dure. 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 [44h] command.
Note that the Read Scratchpad [BEh] 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 send-
ingthedevice’s64-bitROMcode.ASkipROMcommand
followedbyaReadScratchpadcommandcausesadata
collision on the bus if there is more than one slave since
multiple devices attempt to transmit data simultaneously.
Alarm Search [ECh]
The operation of this command is identical to the opera-
tion of the Search ROM command except that only
slaves with a set alarm flag respond. This command
allows the master device to determine if any MAX31820s
experienced an alarm condition during the most recent
temperatureconversion.AftereveryAlarmSearchcycle
(i.e.,AlarmSearchcommandfollowedbydataexchange),
thebusmastermustreturntoStep1(initialization)inthe
transaction sequence. See the Alarm Signaling section
for an explanation of alarm flag operation.
MAX31820 1-Wire Ambient Temperature Sensor
www.maximintegrated.com
Maxim Integrated
12