29.3.1 PTG Control Register

Note:
  1. These bits are read-only when the module is executing step commands.
  2. This bit is only used with the PTGCTRL 0b1010/0b1011 step command software trigger options. Refer to Wait for Software Trigger for more information.
  3. The PTGSSEN bit may only be written during a debugging session. See Single-Step Mode for more information.
  4. These bits apply to the PTGWHI and PTGWLO commands only.
Table 29-7. Register Bit Attribute Legend
SymbolDescriptionSymbolDescriptionSymbolDescription
RReadable bitHCCleared by Hardware(Gray cell)Unimplemented
WWritable bitHSSet by HardwareXBit is unknown at Reset
CWrite to clearSSoftware settable bitxChannel number
Name: PTGCON
Offset: 0x3500

Bit 3130292827262524 
 Reserved[2:0]PTGDIV[4:0] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 
Bit 2322212019181716 
 PTGPWD[3:0] PTGWDT[2:0] 
Access R/WR/WR/WR/WR/WR/WR/W 
Reset 0000000 
Bit 15141312111098 
 ONReservedSIDLPTGTOGL PTGSWTPTGSSENPTGIVIS 
Access R/WrR/WR/WR/W/HCR/WR/W 
Reset 0000000 
Bit 76543210 
 PTGSTRTPTGWDTOPTGBUSY   PTGITM[1:0] 
Access R/W/HCR/W/HSR/HS/HCR/WR/W 
Reset 00000 

Bits 31:29 – Reserved[2:0]  Reserved, maintain as 0.

Bits 28:24 – PTGDIV[4:0]  PTG Module Clock Prescaler (Divider) bits(1)

ValueDescription
11111Divide by 32
11110Divide by 31
...
00001Divide by 2
00000Divide by 1

Bits 23:20 – PTGPWD[3:0]  PTG Trigger Output Pulse-Width (in PTG clock cycles) bits(1)

ValueDescription
1111All trigger outputs are 16 PTG clock cycles wide
1110All trigger outputs are 15 PTG clock cycles wide
...
0001All trigger outputs are 2 PTG clock cycles wide
0000All trigger outputs are 1 PTG clock cycle wide

Bits 18:16 – PTGWDT[2:0]  PTG Watchdog Timer Time-out Selection bits(1)

ValueDescription
111Watchdog Timer will time-out after 512 PTG clocks
110Watchdog Timer will time-out after 256 PTG clocks
101Watchdog Timer will time-out after 128 PTG clocks
100Watchdog Timer will time-out after 64 PTG clocks
011Watchdog Timer will time-out after 32 PTG clocks
010Watchdog Timer will time-out after 16 PTG clocks
001Watchdog Timer will time-out after 8 PTG clocks
000Watchdog Timer is disabled

Bit 15 – ON PTG Enable bit

ValueDescription
1PTG is enabled
0PTG is disabled

Bit 14 – Reserved  Must be written as ‘0

Bit 13 – SIDL PTG Stop in Idle Mode bit

ValueDescription
1Halts PTG operation when device is Idle
0PTG operation continues when device is Idle

Bit 12 – PTGTOGL  PTG Toggle Trigger Output bit(1)

ValueDescription
1

Toggles state of TRIG output for each execution of PTGTRIG

0

Generates a single TRIG pulse for each execution of PTGTRIG

Bit 10 – PTGSWT  PTG Software Trigger bit(2)

ValueDescription
1Asserts the PTG software trigger
0Deasserts the PTG software trigger (Level-Sensitive mode)/cleared by hardware (Edge-Sensitive mode)

Bit 9 – PTGSSEN  PTG Single-Step Enable bit(3)

If in Debug mode:

1 = Enables Single-Step mode

0 = Disables Single-Step mode

If not in Debug mode:

Writes have no effect; read as ‘0’.

Bit 8 – PTGIVIS  PTG Internal Counter/Timer Visibility bit(1,4)

ValueDescription
1Reading the PTGSDLIM, PTGCxLIM or PTGTxLIM registers returns the current values of their corresponding internal Counter/Timer registers (PTGSD, PTGCx and PTGTx)
0Reading the PTGSDLIM, PTGCxLIM or PTGTxLIM registers returns the value of these Limit registers

Bit 7 – PTGSTRT  PTG Start Sequencer bit(3)

If not in Single-Step mode:

1 = Starts to sequentially execute the commands

0 = Stops executing the commands

If in Single-Step mode:

1 = Executes the next step command, then halts the sequencer

0 = Manually halts the sequencer/execution of signal command has completed (cleared by hardware)

Bit 6 – PTGWDTO  PTG Watchdog Timer Time-out Status bit(1)

ValueDescription
1PTG Watchdog Timer has timed out
0PTG Watchdog Timer has not timed out

Bit 5 – PTGBUSY PTG State Machine Busy bit

ValueDescription
1PTG is running on the selected clock source
0PTG state machine is not running

Bits 1:0 – PTGITM[1:0]  PTG Input Trigger Operation Selection bits(1,4)

ValueDescription
11

Single-level detect with step delay not executed on exit of command, regardless of the PTGCTRL command (Mode 3)

10

Single-level detect with step delay executed on exit of command (Mode 2)

01

Continuous edge detect with step delay not executed on exit of command, regardless of the PTGCTRL command (Mode 1)

00

Continuous edge detect with step delay executed on exit of command (Mode 0)