29.4.5 Command Looping Control
Two 16-bit loop counters are provided (PTGC0 and PTGC1) that can be used by the
PTGJMPCx
command as a block loop counter or delay generator.
Each loop counter consists of an incrementing counter (PTGCx) and a Limit register
(PTGCxLIM). The Limit register value can be changed by writing directly to
the register (when the module is disabled) or by the PTG sequencer (when the
module is enabled). The data read from the Limit register depends upon the
state of the PTG Counter/Timer Visibility bit (PTGIVIS). The counters are
cleared when the module is in the Reset state or when the PTG module is
disabled (ON = 0
).