Difference between revisions of "Firmware-820 Command-049"

From I-CubeX Wiki
Jump to: navigation, search
(SET OUTPUT INIT (49, 31h))
Line 13: Line 13:
 
|-
 
|-
 
|
 
|
|p = 1; enable pulse
+
|p = 1; enable continuous control, in the form of actuator method or repeating pulse width variation
 
|-
 
|-
 
|
 
|
|p = 0; disable pulse
+
|p = 0; disable continuous control, in the form of actuator method or repeating pulse width variation, and use zzzzzzz as single pulse duration if it is greater than zero
 
|-
 
|-
 
|
 
|
Line 22: Line 22:
 
|-
 
|-
 
|0zzzzzzz:
 
|0zzzzzzz:
|zzzzzzz = [0..127]; pulse width 1-2 ms (ie. steps of approx. 8 microseconds)
+
|zzzzzzz = [0..127]; actuator method MSB or repeating pulse width, or single pulse duration
 
|}
 
|}
 +
 +
When disabling continuous control, the actuator method MSB value or repeating pulse width value is, if greater than zero, used to set the single pulse duration, ie. the delay after which to switch the actuator output status. The single pulse duration range is 0.1-12.7 s (ie. in steps of approx. 0.1 ms)
 +
 +
The repeating pulse width range is 1-2 ms (ie. steps of approx. 8 microseconds) by default. Use the SET OUTPUT PULSE command to configure a repeating pulse with a different interval and pulse width range.
  
 
Example:
 
Example:
  
In order to set the 2nd actuator output pulse width at power-up to 1.5ms, the following message is sent:
+
In order to set the 2nd actuator output repeating pulse width at power-up to 1.5ms, the following message is sent:
  
 
:240, 125, 0 {DEV}, 49 {SET OUTPUT INIT}, 97 {x = 1, p = 1, yyy = 1}, 64 {pulse width}, 247 (F0h, 7Dh, 00h, 31h, 61h, 40h, F7h)
 
:240, 125, 0 {DEV}, 49 {SET OUTPUT INIT}, 97 {x = 1, p = 1, yyy = 1}, 64 {pulse width}, 247 (F0h, 7Dh, 00h, 31h, 61h, 40h, F7h)
Line 33: Line 37:
 
The pulse width is 1 + 64*0.008 = 1.5ms
 
The pulse width is 1 + 64*0.008 = 1.5ms
  
In order to turn the same actuator output off and disable the pulse, the following message is sent:
+
In order to turn the same actuator output off and disable continuous control, the following message is sent:
  
 
:240, 125, 0 {DEV}, 49 {SET OUTPUT INIT}, 1 {x = 0, p = 0, yyy = 1}, 0 {pulse width}, 247 (F0h, 7Dh, 00h, 31h, 01h, 00h, F7h)
 
:240, 125, 0 {DEV}, 49 {SET OUTPUT INIT}, 1 {x = 0, p = 0, yyy = 1}, 0 {pulse width}, 247 (F0h, 7Dh, 00h, 31h, 01h, 00h, F7h)
 
When disabling the pulse the pulse width value is ignored.
 

Revision as of 01:06, 25 February 2022

SET OUTPUT INIT (49, 31h)

The SET OUTPUT INIT command sets the output status at power-up of the WiDig. Enabling the pulse overrides the output on/off setting. The command can be used in both host and stand-alone modes of operation. All output settings are stored in both volatile and non-volatile memory. After a RESET of the WiDig, all outputs’ pulse statuses are retrieved from non-volatile memory whether in stand-alone mode or in host mode. Upon completion of the command the digitizer sends out the same command. To get the values stored in non-volatile memory, use the DUMP OUTPUT INIT command.

The [BODY] of the SET OUTPUT INIT command consists of two 7-bit bytes with the following format:

0xp00yyy: x = 1; output on
x = 0; output off
p = 1; enable continuous control, in the form of actuator method or repeating pulse width variation
p = 0; disable continuous control, in the form of actuator method or repeating pulse width variation, and use zzzzzzz as single pulse duration if it is greater than zero
yyy = [0..7]; actuator output number, where the first actuator output number = 0, and the last (8th) actuator output number = 7
0zzzzzzz: zzzzzzz = [0..127]; actuator method MSB or repeating pulse width, or single pulse duration

When disabling continuous control, the actuator method MSB value or repeating pulse width value is, if greater than zero, used to set the single pulse duration, ie. the delay after which to switch the actuator output status. The single pulse duration range is 0.1-12.7 s (ie. in steps of approx. 0.1 ms)

The repeating pulse width range is 1-2 ms (ie. steps of approx. 8 microseconds) by default. Use the SET OUTPUT PULSE command to configure a repeating pulse with a different interval and pulse width range.

Example:

In order to set the 2nd actuator output repeating pulse width at power-up to 1.5ms, the following message is sent:

240, 125, 0 {DEV}, 49 {SET OUTPUT INIT}, 97 {x = 1, p = 1, yyy = 1}, 64 {pulse width}, 247 (F0h, 7Dh, 00h, 31h, 61h, 40h, F7h)

The pulse width is 1 + 64*0.008 = 1.5ms

In order to turn the same actuator output off and disable continuous control, the following message is sent:

240, 125, 0 {DEV}, 49 {SET OUTPUT INIT}, 1 {x = 0, p = 0, yyy = 1}, 0 {pulse width}, 247 (F0h, 7Dh, 00h, 31h, 01h, 00h, F7h)