14.3.11 PWM Generator x Control Register

Note:
  1. This bit(s) cannot be modified while PGxCON.ON = 1.
  2. This bit(s) cannot be modified while UPDATE = 1.
  3. Caution should be exercised when modifying this bit(s) while PGxCON.ON = 1; unexpected results may occur.
Table 14-17. 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: PGxCON
Offset: 0x1050, 0x1098, 0x10E0, 0x1128

Bit 3130292827262524 
 MDCSELMPERSELMPHSEL MSTENUPDMOD[2:0] 
Access R/WR/WR/WR/WR/WR/WR/W 
Reset 0000000 
Bit 2322212019181716 
 TRGMOD[1:0]  SOCS[3:0] 
Access R/WR/WR/WR/WR/WR/W 
Reset 000000 
Bit 15141312111098 
 ONFRZ   TRGCNT[2:0] 
Access R/WR/WR/WR/WR/W 
Reset 00000 
Bit 76543210 
 Reserved  CLKSEL[1:0]MODSEL[2:0] 
Access R/WR/WR/WR/WR/WR/W 
Reset 000000 

Bit 31 – MDCSEL  Master Duty Cycle Register Select(4)

ValueDescription
1

PWM Generator uses MDC register

0

PWM Generator uses PGxDC register

Bit 30 – MPERSEL  Master Period Register Select(4)

ValueDescription
1

PWM Generator uses MPER register

0

PWM Generator uses PGxPER register

Bit 29 – MPHSEL  Master Phase Register Select(4)

ValueDescription
1

PWM Generator uses MPHASE register

0

PWM Generator uses PGxPHASE register

Bit 27 – MSTEN  Master Update Enable(4)

ValueDescription
1

PWM Generator broadcasts software set of UPDREQ control bit and EOC signal to other PWM Generators

0

PWM Generator does not broadcast UPDREQ status bit state or EOC signal

Bits 26:24 – UPDMOD[2:0] PWM Buffer Update Mode Selection

See Table 14-38 for details.

Bits 23:22 – TRGMOD[1:0]  PWM Generator x Trigger Mode Selection(4)

ValueDescription
11Reserved
10Reserved
01

PWM Generator operates in Retriggerable mode

00

PWM Generator operates in Single Trigger mode

Bits 19:16 – SOCS[3:0]  Start-of-Cycle Selection bits(4)

Note:
  1. The PCI selected Sync signal is always available to be OR’d with the selected SOC signal per the SOCS[3:0] bits if the PCI Sync function is enabled.
  2. The source selected by the SOCS[3:0] bits MUST operate from the same clock source as the local PWM Generator. If not, the source must be routed through the PCI Sync logic so the trigger signal may be synchronized to the PWM Generator clock domain.
  3. PWM Generators are grouped into groups of four: PG1-PG4 and PG5-PG8, if available. Any generator within a group of four may be used to trigger another generator within the same group.
ValueDescription
1111

TRIG bit or PCI Sync function only (no hardware trigger source is selected)

1110 - 0101

Reserved

0100

Trigger output selected by PG4 or PG8 PGTRGSEL[2:0] bits (PGxEVT[2:0])

0011

Trigger output selected by PG3 or PG7 PGTRGSEL[2:0] bits (PGxEVT[2:0])

0010

Trigger output selected by PG2 or PG6 PGTRGSEL[2:0] bits (PGxEVT[2:0])

0001

Trigger output selected by PG1 or PG5 PGTRGSEL[2:0] bits (PGxEVT[2:0])

0000

Local EOC – PWM Generator is self-triggered

Bit 15 – ON  PWM Generator x Enable(1)

ValueDescription
1

PWM Generator is enabled

0

PWM Generator is not enabled

Bit 14 – FRZ  FRZ PWM Freeze bit

ValueDescription
1

PWM module stops operation in Debug mode

0

PWM module continues operation in Debug mode

Bits 10:8 – TRGCNT[2:0]  PWM Generator x Trigger Count Select(1)

ValueDescription
111

PWM Generator produces 8 PWM cycles after triggered

110

PWM Generator produces 7 PWM cycles after triggered

101

PWM Generator produces 6 PWM cycles after triggered

100

PWM Generator produces 5 PWM cycles after triggered

011

PWM Generator produces 4 PWM cycles after triggered

010

PWM Generator produces 3 PWM cycles after triggered

001

PWM Generator produces 2 PWM cycles after triggered

000

PWM Generator produces 1 PWM cycle after triggered

Bit 7 – Reserved

Bits 4:3 – CLKSEL[1:0]  Clock Selection(1)

Note:
  1. Do not change the CLKSEL[1:0] bits while ON (PGxCON[15]) = 1.
  2. The PWM Generator time base operates from the frequency scaling circuit clock, effectively scaling the duty cycle and period of the PWM Generator output.
ValueDescription
11

PWM Generator uses the master clock scaled by the frequency scaling circuit(2)

10

PWM Generator uses the master clock divided by the clock divider circuit(2)

01

PWM Generator uses the master clock selected by the MCLKSEL (PCLKCON[0]) control bits

00

No clock selected, PWM Generator is in the lowest power state (default)

Bits 2:0 – MODSEL[2:0]  PWM Generator x Mode Selection(1)

ValueDescription
111

Dual Edge Center-Aligned PWM mode (interrupt/register update twice per cycle)

110

Dual Edge Center-Aligned PWM mode (interrupt/register update once per cycle)

101

Double Update Center-Aligned PWM mode

100

Center-Aligned PWM mode

011

Reserved

010

Independent Edge PWM mode, dual output

001

Variable Phase PWM mode

000

Independent Edge PWM mode