Microchip Technology MA330031-2 Data Sheet

Page of 530
 2011-2013 Microchip Technology Inc.
DS70000657H-page 351
dsPIC33EPXXXGP50X, dsPIC33EPXXXMC20X/50X AND PIC24EPXXXGP/MC20X
TABLE 24-1:
PTG STEP COMMAND FORMAT (CONTINUED)
bit 3-0
Step 
Command
OPTION<3:0>
Option Description
PTGCTRL
(
)
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 the Timer0 Limit Register.
1001
Start and wait for the PTG Timer1 to match the Timer1 Limit Register.
1010
Reserved.
1011
Wait for the 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 triggers indicated in the Broadcast Trigger Enable register 
(PTGBTE).
PTGADD
)
0000
Add contents of the PTGADJ register to the Counter 0 Limit register (PTGC0LIM).
0001
Add contents of the PTGADJ register to the Counter 1 Limit register (PTGC1LIM).
0010
Add contents of the PTGADJ register to the Timer0 Limit register (PTGT0LIM).
0011
Add contents of the PTGADJ register to the Timer1 Limit register (PTGT1LIM).
0100
Add contents of the PTGADJ register to the Step Delay Limit register (PTGSDLIM).
0101
Add contents of the PTGADJ register to the Literal 0 register (PTGL0).
0110
Reserved.
0111
Reserved.
PTGCOPY
(
)
1000
Copy contents of the PTGHOLD register to the Counter 0 Limit register 
(PTGC0LIM).
1001
Copy contents of the PTGHOLD register to the Counter 1 Limit register 
(PTGC1LIM).
1010
Copy contents of the PTGHOLD register to the Timer0 Limit register 
(PTGT0LIM).
1011
Copy contents of the PTGHOLD register to the Timer1 Limit register 
(PTGT1LIM).
1100
Copy contents of the PTGHOLD register to the Step Delay Limit register 
(PTGSDLIM).
1101
Copy contents of the 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 24-2
 for the trigger output descriptions.
3:
This feature is only available on dsPIC33EPXXXMC20X/50X and PIC24EPXXXMC20X devices.