Figure 2-6 Typical
Communication Flow on a 1-Wire Bus
Start with the Reset
Sequence
If the host must determine which
target devices are present on the bus, it should perform a search to detect the
64-bit device address of the devices.
Before performing an operation on
a device, the device must be configured and/or selected using the ROM commands.
Some of the available functional ROM commands are:
Read Address [0x33]: Only
used when there is a single device on the bus. This command reads the
64-bit device address of the only device present on the bus.
Match Address [0x55]:
This command followed by a 64-bit device address selects the device with
the matching address. All other devices wait until the next reset
pulse.
Search Address [0xF0]:
This command is required to obtain the 64-bit device address of multiple
devices, and it informs devices that a search is going to be conducted
by the host. The Search is then conducted by reading a bit and its
complement of the ROM numbers from the devices and sending an
appropriate bit back. For more details, see the Section 4. Target devices that have the same bit as the one sent by the host
remain active while others wait for the next reset
Skip Address [0xCC]:
Devices can be addressed without the host knowing the 64-bit device
address. This command is helpful when giving a common command to all the
devices.
Overdrive Skip Address
[0x3C]: This command is used only in single drop. This command is the
same as the Skip Address command except that only devices that can run
in overdrive mode remain active and go into overdrive mode. Devices that
cannot run in overdrive mode wait for the next reset.
Overdrive Match Address
[0x69]: This command is the same as the Match Address command except
that the device is only matched if it can run in overdrive mode. All
other devices wait for the next reset.
After selecting the required
devices, a device-specific command can be issued to perform the required
operation.
Typically after each operation, a
reset pulse is issued.