![Texas Instruments SimpleLink Ethernet MSP432E401Y Скачать руководство пользователя страница 1482](http://html1.mh-extra.com/html/texas-instruments/simplelink-ethernet-msp432e401y/simplelink-ethernet-msp432e401y_technical-reference-manual_10955781482.webp)
PWM Registers
1482
SLAU723A – October 2017 – Revised October 2018
Copyright © 2017–2018, Texas Instruments Incorporated
Pulse Width Modulator (PWM)
21.5.21 PWMnGENB Register [reset = 0x0]
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 (see
). If this register is rewritten before the actual update
occurs, the previous value is never used and is lost.
PWMnGENB is shown in
and described in
Return to
Figure 21-27. PWMnGENB Register
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
Table 21-23. PWMnGENB Register Field Descriptions
Bit
Field
Type
Reset
Description
31-12
RESERVED
R
0x0
11-10
ACTCMPBD
R/W
0x0
Action for Comparator B Down This field specifies the action to be
taken when the counter matches comparator B while counting down.
0x0 = Do nothing
0x1 = Invert pwmB
0x2 = Drive pwmB low
0x3 = Drive pwmB high