SLAU723A October 2017 – October 2018 MSP432E401Y , MSP432E411Y
PWMn Generator B Control (PWMnGENB), offset 0x064
PWM0 Generator B Control (PWM0GENB), offset 0x064
PWM1 Generator B Control (PWM1GENB), offset 0x0A4
PWM2 Generator B Control (PWM2GENB), offset 0x0E4
PWM3 Generator B Control (PWM3GENB), offset 0x124
These registers control the generation of the pwmB signal based on the load and zero output pulses from the counter, as well as the compare A and compare B pulses from the comparators (PWM0GENB controls the PWM generator 0 block, and so on). When the counter is running in Count-Down mode, only four of these events occur; when running in Count-Up/Down mode, all six occur. These events provide great flexibility in the positioning and duty cycle of the resulting PWM signal.
The PWM0GENB register controls generation of the pwm0B signal; PWM1GENB, the pwm1B signal; PWM2GENB, the pwm2B signal; and PWM3GENB, the pwm3B signal.
If a zero or load event coincides with a compare A or compare B event, the zero or load action is taken and the compare A or compare B action is ignored. If a compare A event coincides with a compare B event, the compare B action is taken and the compare A action is ignored.
If the Generator B update mode is immediate (based on the GENBUPD field encoding in the PWMnCTL register), the ACTCMPBD, ACTCMPBU, ACTCMPAD, ACTCMPAU, ACTLOAD, and ACTZERO values are used immediately. If the update mode is locally synchronized, these values are used the next time the counter reaches zero. If the update mode is globally synchronized, these values are used the next time the counter reaches zero after a synchronous update has been requested through the PWM Master Control (PWMCTL) register (seeSection 21.5.1). If this register is rewritten before the actual update occurs, the previous value is never used and is lost.
PWMnGENB is shown in Figure 21-27 and described in Table 21-23.
Return to Summary Table.
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
RESERVED | |||||||
R-0x0 | |||||||
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
RESERVED | |||||||
R-0x0 | |||||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RESERVED | ACTCMPBD | ACTCMPBU | |||||
R-0x0 | R/W-0x0 | R/W-0x0 | |||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
ACTCMPAD | ACTCMPAU | ACTLOAD | ACTZERO | ||||
R/W-0x0 | R/W-0x0 | R/W-0x0 | R/W-0x0 | ||||