
DR
AFT
DR
AFT
DRAFT
DR
D
RAFT
DRAFT
DRA
FT DRAF
D
RAFT DRAFT DRAFT DRAFT DRAFT D
DRAFT
D
RAFT DRA
FT DRAFT DRAFT DRAFT DRA
UM10360_0
© NXP B.V. 2009. All rights reserved.
User manual
Rev. 00.06 — 5 June 2009
487 of 808
NXP Semiconductors
UM10360
Chapter 24: LPC17xx Pulse Width Modulator (PWM)
[1]
Reset Value reflects the data stored in used bits only. It does not include reserved bits content.
7.1 PWM Interrupt Register (PWM1IR - 0x4001 8000)
The PWM Interrupt Register consists of 11 bits (
), 7 for the match interrupts
and 4 reserved for the future use. If an interrupt is generated then the corresponding bit in
the PWMIR will be high. Otherwise, the bit will be low. Writing a logic 1 to the
corresponding IR bit will reset the interrupt. Writing a 0 has no effect.
CCR
Capture Control Register. The CCR controls which edges of
the capture inputs are used to load the Capture Registers and
whether or not an interrupt is generated when a capture takes
place.
R/W
0
PWM1CCR - 0x4001 8028
CR0
Capture Register 0. CR0 is loaded with the value of the TC
when there is an event on the CAPn.0 input.
RO
0
PWM1CR0 - 0x4001 802C
CR1
Capture Register 1. See CR0 description.
RO
0
PWM1CR1 - 0x4001 8030
CR2
Capture Register 2. See CR0 description.
RO
0
PWM1CR2 - 0x4001 8034
CR3
Capture Register 3. See CR0 description.
RO
0
PWM1CR3 - 0x4001 8038
MR4
Match Register 4. MR4 can be enabled in the MCR to reset the
TC, stop both the TC and PC, and/or generate an interrupt
when it matches the TC. In addition, a match between this
value and the TC clears PWM4 in either edge mode, and sets
PWM5 if it’s in double-edge mode.
R/W
0
PWM1MR - 0x4001 8040
MR5
Match Register 5. MR5 can be enabled in the MCR to reset the
TC, stop both the TC and PC, and/or generate an interrupt
when it matches the TC. In addition, a match between this
value and the TC clears PWM5 in either edge mode, and sets
PWM6 if it’s in double-edge mode.
R/W
0
PWM1MR - 0x4001 8044
MR6
Match Register 6. MR6 can be enabled in the MCR to reset the
TC, stop both the TC and PC, and/or generate an interrupt
when it matches the TC. In addition, a match between this
value and the TC clears PWM6 in either edge mode.
R/W
0
PWM1MR - 0x4001 8048
PCR
PWM Control Register. Enables PWM outputs and selects
PWM channel types as either single edge or double edge
controlled.
R/W
0
PWM1PCR - 0x4001 804C
LER
Load Enable Register. Enables use of new PWM match values. R/W
0
PWM1LER - 0x4001 8050
CTCR
Count Control Register. The CTCR selects between Timer and
Counter mode, and in Counter mode selects the signal and
edge(s) for counting.
R/W
0
PWM1CTCR - 0x4001 8070
Table 427. PWM1 register map
Generic
Name
Description
Access Reset
Value
[1]
PWMn Register
Name & Address
Table 428: PWM Interrupt Register (PWM1IR - address 0x4001 8000) bit description
Bit
Symbol
Description
Reset
Value
0
PWMMR0 Interrupt Interrupt flag for PWM match channel 0.
0
1
PWMMR1 Interrupt Interrupt flag for PWM match channel 1.
0
2
PWMMR2 Interrupt Interrupt flag for PWM match channel 2.
0
3
PWMMR3 Interrupt Interrupt flag for PWM match channel 3.
0