![Texas Instruments SimpleLink Ethernet MSP432E401Y Скачать руководство пользователя страница 1470](http://html1.mh-extra.com/html/texas-instruments/simplelink-ethernet-msp432e401y/simplelink-ethernet-msp432e401y_technical-reference-manual_10955781470.webp)
PWM Registers
1470
SLAU723A – October 2017 – Revised October 2018
Copyright © 2017–2018, Texas Instruments Incorporated
Pulse Width Modulator (PWM)
21.5.13 PWMnINTEN Register [reset = 0x0]
PWM0 Interrupt and Trigger Enable (PWM0INTEN), offset 0x044
PWM1 Interrupt and Trigger Enable (PWM1INTEN), offset 0x084
PWM2 Interrupt and Trigger Enable (PWM2INTEN), offset 0x0C4
PWM3 Interrupt and Trigger Enable (PWM3INTEN), offset 0x104
These registers control the interrupt and ADC trigger generation capabilities of the PWM generators
(PWM0INTEN controls the PWM generator 0 block, and so on). The events that can cause an interrupt, or
an ADC trigger are:
•
The counter being equal to the load register
•
The counter being equal to zero
•
The counter being equal to the PWMnCMPA register while counting up
•
The counter being equal to the PWMnCMPA register while counting down
•
The counter being equal to the PWMnCMPB register while counting up
•
The counter being equal to the PWMnCMPB register while counting down
Any combination of these events can generate either an interrupt or an ADC trigger, though no
determination can be made as to the actual event that caused an ADC trigger if more than one is
specified. The PWMnRIS register provides information about which events have caused raw interrupts.
PWMnINTEN is shown in
and described in
.
Return to
Figure 21-19. PWMnINTEN 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
TRCMPBD
TRCMPBU
TRCMPAD
TRCMPAU
TRCNTLOAD
TRCNTZERO
R-0x0
R/W-0x0
R/W-0x0
R/W-0x0
R/W-0x0
R/W-0x0
R/W-0x0
7
6
5
4
3
2
1
0
RESERVED
INTCMPBD
INTCMPBU
INTCMPAD
INTCMPAU
INTCNTLOAD
INTCNTZERO
R-0x0
R/W-0x0
R/W-0x0
R/W-0x0
R/W-0x0
R/W-0x0
R/W-0x0
Table 21-15. PWMnINTEN Register Field Descriptions
Bit
Field
Type
Reset
Description
31-14
RESERVED
R
0x0
13
TRCMPBD
R/W
0x0
Trigger for Counter= PWMnCMPB down.
0x0 = No ADC trigger is output.
0x1 = An ADC trigger pulse is output when the counter matches the
value in the PWMnCMPB register value while counting down.
12
TRCMPBU
R/W
0x0
Trigger for Counter= PWMnCMPB up.
0x0 = No ADC trigger is output.
0x1 = An ADC trigger pulse is output when the counter matches the
value in the PWMnCMPB register value while counting up.
11
TRCMPAD
R/W
0x0
Trigger for Counter= PWMnCMPA down.
0x0 = No ADC trigger is output.
0x1 = An ADC trigger pulse is output when the counter matches the
value in the PWMnCMPA register value while counting down.