29.4.6.2 Wait for Trigger Input
The PTG module can support up to 16 independent trigger inputs. The user can specify a step command that waits for a positive or negative edge, or a high or low level, of the selected input signal to occur. The operating mode is selected by the PTGITM[1:0] bits in the PTGCON register.
The PTGWHI
command looks for a positive edge or High state to occur on
the selected trigger input. The PTGWLO
command looks for a negative
edge or Low state to occur on the selected trigger input. The PTG repeats the trigger
input command (i.e., effectively waits) until the selected signal becomes valid before
continuing the step command execution.
The minimum execution time to wait for a trigger is one PTG clock. There is no limit for the PTG wait for a trigger input other than that enforced by the Watchdog Timer. Refer to PTG Watchdog Timer for more information.
The PTG module supports four input trigger command operating modes (Mode 0-Mode 3), which are selected by the PTGITM[1:0] bits in the PTGCON register.