![](http://datasheet.mmic.net.cn/150000/DS2490S_datasheet_5001553/DS2490S_24.png)
DS2490
24 of 50
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.
Command parameters:
1 byte specifying preamble size.
EP2 data:
Length
Description
Same as
preamble size
Preamble data to be written to the 1-Wire device.
EP3 data:
Length
Description
If R = 1 and preamble
size
≥ 4:
As specified in
the second byte
of the
preamble
Data read from the 1-Wire device.
If R = 0: None
No data is returned (this is a write application).
Result Register:
Code
Condition
CRC, CMP
ICP = 0, NTF = 0 or 1: Bad CRC or the release
sequence was not accepted.
0x00
ICP = 0, NTF = 1: no error detected
None
ICP = 0, NTF = 0: no error detected
None
ICP = 1
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. An NRS error code is an indication that there was
no presence pulse on the branch that was to be connected.
Command parameters:
1 byte specifying number of couplers that need to be activated to set-up
the path to the target device.
EP2 data:
Length
Description
9 bytes per
level
8 bytes ROM ID of the coupler to be activated
followed by the Smart-On command code for either
the main or auxiliary 1-Wire coupler output.
EP3 data:
Length
Description
1 byte
Number of couplers successfully activated; should be
the same as the number of levels.
Result Register:
Code
Condition
CMP, SH,
NRS
ICP = 0, NTF = 0 or 1: An error condition is detected.
0x00
ICP = 0, NTF = 1: no error detected