This mode is used when you want to get a count value from a specific time which an event occurs. Available commands in the capture mode are as follows:
|set||mode||capture||rise||set capture mode: rising edge|
|fall||set capture mode: falling edge|
|toggle||set capture mode:
rising or falling edge
|div||ms||set unit: millisecond|
|us||set unit: microsecond|
|repc||[N]||set capture count|
|trigger||from||ht0||set a target of trigger: ht0|
|php||set a target of trigger: none|
|pin||rise||set a type of pin trigger event: rising|
|fall||set a type of pin trigger event: falling|
|toggle||set a type of pin trigger event:
rising and falling
|get||count||[N]||get a count value|
|state||get current state|
|repc||get remaining repeat count|
Repeat count in the capture mode means the number of capturing a specific event. Available repeat count N is from 0 to 64. The default value is 0 and it is regarded as maximum value (64).
|repeat count||pid_ioctl($pid, "set repc N");|
You can set a trigger target to a HT pin with event as well as HT 0 in the capture mode. How to set this command is as follows:
|ht0||pid_ioctl($pid, "set trigger from ht0");|
|pin event||pid_ioctl($pid, "set trigger from pin");
pid_ioctl($pid, "set trigger from pin rise");
pid_ioctl($pid, "set trigger from pin fall");
pid_ioctl($pid, "set trigger from pin toggle");
|php||pid_ioctl($pid, "set trigger from php");|
There are three event types for pin event: rising edge, falling edge and toggle.
You can set the pin event trigger to one of them and the default is toggle when you do not specify any of event types.
The default value of setting trigger is "php" which means no trigger target is selected. Although a trigger target is set, you can cancel the designation by specifying the trigger target to "php". In this case, HT starts capturing when it starts.
※ Note that HT2 does not support pin event trigger.
This command is for reading a captured count value of HT. Index of the count values can be specified behind this command. How to use it is as follows:
|[N]th count value||pid_ioctl($pid, "get count [N]");|
The counter index starts from 0.
If you do not specify the index, it will be set to 0.
The maximum value of the index is 64.
Accumulated counter values cannot be greater than 32764 in the capture mode. If it exceeds the limitation, HT immediately stops capturing.