Datasheet
dsPIC33EPXXXGM3XX/6XX/7XX
DS70000689D-page 362 2013-2014 Microchip Technology Inc.
TABLE 25-1: PTG STEP COMMAND FORMAT (CONTINUED)
bit 3-0
Step
Command
OPTION<3:0> Option Description
PTGCTRL
(1)
0000 Reserved
0001 Reserved
0010 Disable Step Delay Timer (PTGSD)
0011 Reserved
0100 Reserved
0101 Reserved
0110 Enable Step Delay Timer (PTGSD)
0111 Reserved
1000 Start and wait for the PTG Timer0 to match Timer0 Limit register
1001 Start and wait for the PTG Timer1 to match Timer1 Limit register
1010 Reserved
1011 Wait for software trigger bit transition from low-to-high before continuing
(PTGSWT = 0 to 1)
1100 Copy contents of the Counter 0 register to the AD1CHS0 register
1101 Copy contents of the Counter 1 register to the AD1CHS0 register
1110 Copy contents of the Literal 0 register to the AD1CHS0 register
1111 Generate the triggers indicated in the PTG Broadcast Trigger Enable register
(PTGBTE)
PTGADD
(1)
0000 Add contents of PTGADJ register to the Counter 0 Limit register (PTGC0LIM)
0001 Add contents of PTGADJ register to the Counter 1 Limit register (PTGC1LIM)
0010 Add contents of PTGADJ register to the Timer0 Limit register (PTGT0LIM)
0011 Add contents of PTGADJ register to the Timer1 Limit register (PTGT1LIM)
0100 Add contents of PTGADJ register to the Step Delay Limit register (PTGSDLIM)
0101 Add contents of PTGADJ register to the Literal 0 register (PTGL0)
0110 Reserved
0111 Reserved
PTGCOPY
(1)
1000 Copy contents of PTGHOLD register to the Counter 0 Limit register
(PTGC0LIM)
1001 Copy contents of PTGHOLD register to the Counter 1 Limit register
(PTGC1LIM)
1010 Copy contents of PTGHOLD register to the Timer0 Limit register (PTGT0LIM)
1011 Copy contents of PTGHOLD register to the Timer1 Limit register (PTGT1LIM)
1100 Copy contents of PTGHOLD register to the Step Delay Limit register
(PTGSDLIM)
1101 Copy contents of PTGHOLD register to the Literal 0 register (PTGL0)
1110 Reserved
1111 Reserved
Note 1: All reserved commands or options will execute but have no effect (i.e., execute as a NOP instruction).
2: Refer to Table 25-2 for the trigger output descriptions.