DS2490
13 of 50
033199
commands, the field has additional embedded command parameters as indicated in Appendix 2. The
exception is the READ STRAIGHT command as described previously.
The 2-byte
wIndex
is used to hold additional command parameter data when required by the specific
command.
The
wLength
field is used in the control transfer setup packet to specify the number of bytes to be sent
during the data stage of a control transfer. The “GET COMM CMDS” control command is the only
DS2490 command that uses the data stage of the control transfer. Typically all command data is
embedded in the setup stage. Except for the GET COMM CMDS, this field must be set to 0x0000.
DS2490 Control, Communication, and Mode vendor-specific command descriptions and formatting are
defined in Appendices 1, 2, and 3. Vendor-specific commands not defined in the appendices are not
supported by the DS2490 and the device will respond with a STALL if an unsupported command is
received.
MODE COMMANDS
DS2490 1-Wire characteristics and features (speed, durations, slew rate, etc.) are controlled with discrete
Mode commands and/or embedded Communication command parameters. Parameter values and
enable/disable settings are used for characteristic control. Mode settings are stored in the DS2490 State
Registers and can be read at any time or at the polling interval of EP1. See the section “DEVICE
FEEDBACK” for State Register details.
Enable/disable settings are used to control three global features:
§
Strong pullup to +5V
§
+12V EPROM programming pulse
§
Dynamic 1-Wire bus communication speed change through a communication command
The setting for these three global controls are accessible only through Mode commands; the features are
either enabled or disabled with the appropriate Mode command. Specific Communication commands
exist which can be used to issue a strong pullup, programming pulse, or speed change. When the
corresponding setting is enabled the feature is usable as part of a communication command when disabled
the feature is not usable.
Parameter values and codes are used to specify and control 1-Wire bus characteristics:
§
1-Wire bus communication speed
§
+5V strong pullup duration
§
+12V programming pulse duration
§
Pulldown slew rate
§
Write-1 low time
§
Data sample offset/ Write-0 Recovery time
These six settings are controllable with discrete Mode commands or as embedded command/parameter
values in Communications commands.
As listed in Table 5 and summarized previously, there are eight Mode commands. The USB control
transfer setup packet coding to transmit these commands is detailed in Appendix 3. Mode commands are
immediately processed by the DS2490 when they are received. The DS2490 power-on default values for