30.3.1 PTG Control Register

Legend: R = Readable bit, W = Writable bit, HC = Hardware Clearable bit, HS = Hardware Settable bit

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.
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 
 ON SIDLPTGTOGL PTGSWTPTGSSENPTGIVIS 
Access R/WR/WR/WR/W/HCR/WR/W 
Reset 000000 
Bit 76543210 
 PTGSTRTPTGWDTOPTGBUSY   PTGITM[1:0] 
Access R/W/HCR/W/HSR/HS/HCR/WR/W 
Reset 00000 

Bits 31:29 – Reserved[2:0]  Maintain as ‘0

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

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

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

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

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

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

Bit 15 – ON PTG Enable bit

ValueDescription
1 PTG is enabled.
0 PTG is disabled.

Bit 13 – SIDL PTG Stop in Idle Mode bit

ValueDescription
1 Halts PTG operation when device is Idle.
0 PTG 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
1 Asserts the PTG software trigger.
0 Deasserts 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
1 Reading the PTGSDLIM, PTGCxLIM or PTGTxLIM registers returns the current values of their corresponding internal Counter/Timer registers (PTGSD, PTGCx and PTGTx).
0 Reading 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
1 PTG Watchdog Timer has timed out.
0 PTG Watchdog Timer has not timed out.

Bit 5 – PTGBUSY PTG State Machine Busy bit

ValueDescription
1 PTG is running on the selected clock source.
0 PTG 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).