Difference between revisions of "Firmware-73 Command-012"
(Created page with "==DUMP RES (12, 0Ch)== The DUMP RES command can be used to retrieve the sampling resolution of an analog input port of a USB-microDig. The command can be used in both host an...") |
|||
Line 1: | Line 1: | ||
==DUMP RES (12, 0Ch)== | ==DUMP RES (12, 0Ch)== | ||
− | The DUMP RES command can be used to retrieve the sampling resolution of an analog input | + | The DUMP RES command can be used to retrieve the sampling resolution of a port when it is configured as an analog input. The command can be used in both host and stand-alone modes of operation. Upon completion of the DUMP RES command the USB-microDig sends out the same message as the [[Firmware-73 Command-002 |RES command]]. The DUMP RES command's response does not apply to ports that are configured for I2C sensors. |
− | |||
− | The DUMP RES command | ||
The [BODY] of the RES command consists of a single 7-bit byte with the following format : | The [BODY] of the RES command consists of a single 7-bit byte with the following format : | ||
Line 9: | Line 7: | ||
{| | {| | ||
|00000yyy: | |00000yyy: | ||
− | |x = 1; apply the command to all | + | |x = 1; apply the command to all ports (yyy is ignored), ie. send 8 messages with the status for each port |
|- | |- | ||
| | | |
Revision as of 04:25, 20 November 2016
DUMP RES (12, 0Ch)
The DUMP RES command can be used to retrieve the sampling resolution of a port when it is configured as an analog input. The command can be used in both host and stand-alone modes of operation. Upon completion of the DUMP RES command the USB-microDig sends out the same message as the RES command. The DUMP RES command's response does not apply to ports that are configured for I2C sensors.
The [BODY] of the RES command consists of a single 7-bit byte with the following format :
00000yyy: | x = 1; apply the command to all ports (yyy is ignored), ie. send 8 messages with the status for each port |
yyy = [0..7]; port number, where the first port number = 0, and the last (8th) input number = 7 |
Example:
In order to retrieve the port 2 the following message is sent:
- 240, 125, 0 {DEV}, 12 {DUMP RES}, 2, 247 (F0h, 7Dh, 00h, 0Ch, 02h, F7h)