Pulse Width Modulator (PWM)
360 October 8, 2006
Preliminary
Register 34: PWM0 Generator A Control (PWM0GENA), offset 0x060
Register 35: PWM1 Generator A Control (PWM1GENA), offset 0x0A0
Register 36: PWM2 Generator A Control (PWM2GENA), offset 0x0E0
These registers control the generation of the PWMnA 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
(PWM0GENA 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 PWM signal
that is produced.
The PWM0GENA register controls generation of the PWM0A signal; PWM1GENA, the PWM1A
signal; and PWM2GENA, the PWM2A signal.
Each field in these registers can take on one of the values defined in Table 15-2, which defines the
effect of the event on the output 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 A action is taken and the compare B action is ignored.
Bit/Field Name Type Reset Description
31:12 reserved RO 0 Reserved bits return an indeterminate value, and should
never be changed.
11:10 ActCmpBD R/W 0 The action to be taken when the counter matches
comparator B while counting down.
9:8 ActCmpBU R/W 0 The action to be taken when the counter matches
comparator B while counting up. Occurs only when the
Mode bit in the PWMnCTL register (see page 350) is set
to 1.
7:6 ActCmpAD R/W 0 The action to be taken when the counter matches
comparator A while counting down.
5:4 ActCmpAU R/W 0 The action to be taken when the counter matches
comparator A while counting up.Occurs only when the
Mode bit in the PWMnCTL register is se t to 1.
reserved
RO
0
PWMn Generator A Control (PWMnGENA)
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
Reset
Type
000000000000000
RO RO RO RO RO RO RO RO RO RO RO RO RO RO RO
RO
0
Reset
Type
000000000000000
RO RO RO R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W
reserved
ActCmpAD
ActCmpAU
ActLoad
ActZero
ActCmpBUActCmpBD