![Texas Instruments SimpleLink Ethernet MSP432E401Y Technical Reference Manual Download Page 1478](http://html1.mh-extra.com/html/texas-instruments/simplelink-ethernet-msp432e401y/simplelink-ethernet-msp432e401y_technical-reference-manual_10955781478.webp)
PWM Registers
1478
SLAU723A – October 2017 – Revised October 2018
Copyright © 2017–2018, Texas Instruments Incorporated
Pulse Width Modulator (PWM)
21.5.18 PWMnCMPA Register [reset = 0x0]
PWM0 Compare A (PWM0CMPA), offset 0x058
PWM1 Compare A (PWM1CMPA), offset 0x098
PWM2 Compare A (PWM2CMPA), offset 0x0D8
PWM3 Compare A (PWM3CMPA), offset 0x118
These registers contain a value to be compared against the counter (PWM0CMPA controls the PWM
generator 0 block, and so on). When this value matches the counter, a pulse is output which can be
configured to drive the generation of the pwmA and pwmB signals (via the PWMnGENA and PWMnGENB
registers) or drive an interrupt or ADC trigger (via the PWMnINTEN register). If the value of this register is
greater than the PWMnLOAD register (see
), then no pulse is ever output.
If the comparator A update mode is locally synchronized (based on the CMPAUPD bit in the PWMnCTL
register), the 16-bit COMPA value is used the next time the counter reaches zero. If the update mode is
globally synchronized, it is 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.
PWMnCMPA is shown in
and described in
.
Return to
Figure 21-24. PWMnCMPA Register
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10
9
8
7
6
5
4
3
2
1
0
RESERVED
COMPA
R-0x0
R/W-0x0
Table 21-20. PWMnCMPA Register Field Descriptions
Bit
Field
Type
Reset
Description
31-16
RESERVED
R
0x0
15-0
COMPA
R/W
0x0
Comparator A value. The value to be compared against the counter.