31.9.9 PWMxCON
Name: | PWMxCON |
Address: | 0x469,0x478,0x487,0x496 |
PWM Control Register
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
Value | Description |
---|---|
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
Value | Description |
---|---|
1 |
Reload PR/P1/P2 registers |
0 |
Reload not enabled or reload complete |
Bit 1 – ERSPOL External Reset Polarity Select
Value | Description |
---|---|
1 |
External Reset input is active-low |
0 |
External Reset input is active-high |
Bit 0 – ERSNOW External Reset Mode Select
Value | Description |
---|---|
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. |