Difference between revisions of "Firmware-73 Command-012"

From I-CubeX Wiki
Jump to: navigation, search
(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...")
 
 
(5 intermediate revisions by the same user not shown)
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 port of a USB-microDig. 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 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 digital I2C sensors and should  be ignored.
 
 
The DUMP RES command has no [BODY].
 
  
 
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 :
  
 
{|
 
{|
|00000yyy:
+
|0000xyyy:
|x = 1; apply the command to all analog input ports (yyy is ignored), ie. send 8 messages with the status for each analog input port (ports configured for I2C sensors are ignored)
+
|x = 1; apply the command to all ports (yyy is ignored), ie. send 8 messages with the status for each port
 
|-
 
|-
 
|
 
|
Line 17: Line 15:
 
Example:
 
Example:
  
In order to retrieve the port 2 the following message is sent:
+
In order to retrieve the resolution of port 2, configured as analog input, the following message is sent:
  
 
:240, 125, 0 {DEV}, 12 {DUMP RES}, 2, 247 (F0h, 7Dh, 00h, 0Ch, 02h, F7h)
 
:240, 125, 0 {DEV}, 12 {DUMP RES}, 2, 247 (F0h, 7Dh, 00h, 0Ch, 02h, F7h)

Latest revision as of 04:35, 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 digital I2C sensors and should be ignored.

The [BODY] of the RES command consists of a single 7-bit byte with the following format :

0000xyyy: 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 resolution of port 2, configured as analog input, the following message is sent:

240, 125, 0 {DEV}, 12 {DUMP RES}, 2, 247 (F0h, 7Dh, 00h, 0Ch, 02h, F7h)