DS2490
24 of 50
033199
command code followed by the release sequence. A four-byte preamble with embedded command bit R
= 1 consists of a 1-Wire command code followed by length byte and the release sequence. A 4-byte
preamble with embedded command bit R = 0 consists of a 1-Wire command code followed by a status
byte and the release sequence. The long preamble (minimum 5 bytes, embedded command bit R = 0)
consists of a 1-Wire command, a length byte, data bytes and the release sequence. In this case the length
byte indicates the total number of bytes between the length byte and release sequence. The least
significant byte of the release sequence is transmitted first. Embedded command bit SPU must be 1 when
trying to run (start, continue) the CPU of the crypto iButton. In all other cases, SPU should be 0.
Additionally, embedded command bit F can be used to clear the communication command buffer and
EP2, 3 FIFOs if an error occurs during execution of the command. The EP2 FIFO must be pre-filled with
preamble data before command execution. Additionally, for preamble sizes greater then the FIFO size,
the FIFO content status must be monitored by host SW so that additional data can be sent to the FIFO
when necessary.
A similar EP3 FIFO content monitoring requirement exists for the block read. During a block read the
number of bytes loaded into the EP3 FIFO must be monitored so that the data can be read before the
FIFO overflows. See the HW/SW APPLICATION RECOMMENDATION section for additional details.
Command parameters:
1 byte specifying preamble size.
EP2 data:
Length
Description
Same as
preamble size
EP3 data:
Length
Description
If R=1 and preamble
size
≥
4:
the second
byte of the
preamble
If R=0: None
No data is returned (this is a write application).
Result Register:
Code
Condition
CRC, CMP
ICP=0: bad CRC or the release sequence was not
accepted.
Preamble data to be written to the 1-Wire device.
As specified in
Data read from the 1-Wire device.
SET PATH -
This command is used to activate a series of couplers that finally provide the access to the
target 1-Wire device. Embedded command bit RST enables a 1-Wire reset before the command executes.
Additionally, embedded command bit F can be used to clear the communication command buffer and
EP2,3 FIFOs if an error occurs during execution of the command. The EP2 FIFO must be pre-filled with
coupler data before command execution. Additionally, for coupler data sizes greater then the EP2 FIFO
size, the FIFO content status must be monitored by host SW so that additional data can be sent to the
FIFO when necessary. Upon completion of command execution, the EP3 FIFO is loaded with a 1-byte
value that indicates the number of couplers activated. See the HW/SW APPLICATION
RECOMMENDATION section for additional details. An NRS error code is an indication that there was
no presence pulse on the branch that was to be connected.