A
/D
M
UTO
IRECT
ODE
Set Auto/Direct Read Flag - Allows the host to change the value of the Direct/Auto Read Flag. If the flag is 0, the AS8
reads the internal Direct/Auto switches to determine the channel status. If the flag is set to 1, the value stored in
EEPROM is used. The new flag value is stored in EEPROM.
Host sends command - 15 (0F hex)
Host sends data byte: 0 or 1, where 0 = read internal switches, 1 = use stored value.
Get Auto/Direct Mode - Causes the AS8 to send to the host the a data byte which indicates the current mode of all
channels, packed into one data byte as shown below. The mode of each channel is represented by one bit in the
returned data byte as shown below:
MSB (bit 7) - CH8 mode
Bit 6 - CH7 mode
Bit 5 - CH6 mode
Bit 4 - CH5 mode
Bit 3 - CH4 mode
Bit 2 - CH3 mode
Bit 1 - CH2 mode
Bit 0 - CH1 mode
If the associated bit is a 1, the channel is in Direct mode, while a 0 is Auto mode.
Host sends command - 13 0D hex)
Host receives data byte: 0-255 (0-FF hex), interpreted according to the table above.
Set Auto/Direct Mode - Allows the host to input a new value for the Direct/Auto status variable. The data byte sent by
the host should be assembled according to the table above ("Output Auto/Direct Mode" command). A "1" in a bit
position will put the associated channel in the Direct mode, while a "0" will put the associated channel in the Auto
mode. The Auto/Direct Read Flag must be set to 1 for this command to be valid (see "Set Auto/Direct Read Flag"
command below).
Host sends command - 14 (0E hex)
Host sends 2 data bytes: Byte 1 is the low 7 bits of the mode data (defined as in the table above). Byte 2 is 1 if
the MSB of the mode data is 1, and 0 if the MSB of the mode data is 0.
C
OMMANDS
14