DS2490
19 of 50
033199
CANCEL MACRO
- This command is used to terminate any activity on the 1-Wire bus without
completing the Communication command or macro that is currently being executed and to place the 1-
Wire bus in an idle state. The command processing pointer is positioned at the communication command
that follows the set of commands that make up the macro. Further Communication command processing
is stopped until a START EXECUTION command is received. The DS2490 must be in a halted state
before the CANCEL MACRO command can be processed; if not, the command will be ignored.
FLUSH COMM CMDS
- This command is used to clear all unexecuted Communication commands
from the command FIFO. The DS2490 must be in a halted state before the FLUSH COMM CMDS
command can be processed.
FLUSH DATA RCV BUFFER -
This command is used to clear EP3 receive data FIFO (data from 1-
Wire device). The DS2490 must be in a halted state before the FLUSH DATA RCV BUFFER command
can be processed.
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 16 commands as summarized in Table 12. 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 combining embedded command bits with Control commands. 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 exists for host software to track processing progress. If an error condition is
detected during command processing and the embedded ICP bit is set to the proper state or the ERROR
ESCAPE command is used, a Result Register value will be generated with an error indication. Note that
a Result Register value will not be generated if no error condition is detected. Communication command
buffer (FIFO) status and 1-Wire data transmit/received buffers (EP2/3 FIFOs) status can also be