![](http://datasheet.mmic.net.cn/150000/DS2490S_datasheet_5001553/DS2490S_19.png)
DS2490
19 of 50
FLUSH DATA XMT BUFFER—This command is used to clear EP2 transmit data FIFO (data to 1-
Wire device). The DS2490 must be in a halted state before the FLUSH DATA XMT BUFFER command
can be processed.
GET COMM CMDS—This command is used to retrieve unexecuted Communication commands and
parameters from the command FIFO. The DS2490 must be in a halted state before the GET COMM
CMDS command can be processed. Unexecuted commands are returned over EP0 in the control transfer
data phase. Host software is responsible for determining the number of command/parameter bytes to be
returned and specifying the value in the wLength field of the control transfer setup packet.
Commands/parameters are deleted from the FIFO as they are transmitted to the host; the command
pointer used with the FIFO is updated as values are read. Any commands/parameters that are not
transferred remain in the FIFO and will be processed when command execution resumes. If the wLength
value passed is larger than the number of command/parameter bytes, the DS2490 will terminate the
control transfer with a short data packet.
COMMUNICATION COMMANDS
Communication commands are used to communicate with and control an attached 1-Wire device(s).
There are 15 Communication commands as summarized in Table 14. Communication commands also
contain embedded command bits for conditional control or additional functionality. Appendix 2 details
the embedded command bit purpose/formatting as well as the control transfer setup packet coding to
transmit the command/parameter data to the DS2490.
Unlike Mode and Control commands, Communication command processing is controlled by host
software by setting embedded command bits within a Communication command. For example, a
command macro form is supported in which several Communication commands and parameter data are
sent/buffered in the DS2490 and then processed as a group. Embedded command bit ICP is used to create
macro command sets. Also, unlike Mode and Control commands, several forms of Communication
command monitoring exist for host software to track processing progress.
Depending on the settings of embedded communication command bits ICP and NTF, see APPENDIX 2,
a Result Register value may be generated to provide command processing feedback. Communication
command buffer (FIFO) status and 1-Wire data transmit/received buffers (EP2/3 FIFOs) status can also
be monitored via the State Registers. See the section “DEVICE FEEDBACK” for details on command
monitoring.
Communication Command Set Summary Table 14
COMMAND
FUNCTION
SET DURATION
Change duration of strong pullup or programming pulse.
PULSE
Perform strong pullup or generate programming pulse.
1-WIRE RESET
Generate 1-Wire reset pulse.
BIT I/O
1-Wire single data bit I/O.
BYTE I/O
1-Wire data byte I/O.
BLOCK I/O
1-Wire data block I/O.
MATCH ACCESS
Address a device on the 1-Wire bus.
READ STRAIGHT
Transmit a data preamble and read back data.