PWMxCON

PWMxCON

PWM Control Register

  0x15C,0x16B 8   1,2 x

PWMxCON

Bit  7 6 5 4 3 2 1 0  
  EN         LD ERSPOL ERSNOW  
Access  R/W         R/W/HC R/W R/W  
Reset  0         0 0 0  

Bit 7 – EN: PWM Module Enable

PWM Module Enable

ValueDescription
1 PWM module is enabled
0 PWM module is disabled. The prescaler, postscaler, and all internal logic is reset. Outputs go to their default states. Register values remain unchanged.

Bit 2 – LD: Reload Registers

Reload Registers

Reload the period and duty cycle registers on the next period event
ValueDescription
1 Reload PR/P1/P2 registers
0 Reload not enabled or reload complete

Bit 1 – ERSPOL: External Reset Polarity Select

External Reset Polarity Select

ValueDescription
1 External Reset input is active-low
0 External Reset input is active-high

Bit 0 – ERSNOW: External Reset Mode Select

External Reset Mode Select

Determines when an external Reset event takes effect.
ValueDescription
1 Stop counter on the next PWM clock. Output goes to the Inactive state.
0 Stop counter at the end of the period. Output goes to the Inactive state.