
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
486 of 808
NXP Semiconductors
UM10360
Chapter 24: LPC17xx Pulse Width Modulator (PWM)
6.
PWM base addresses
7.
Register description
The PWM1 function includes registers as shown in
below.
Table 426: Addresses for PWM1
PWM
Base Addresses
1
0x4001 8000
Table 427. PWM1 register map
Generic
Name
Description
Access Reset
Value
PWMn Register
Name & Address
IR
Interrupt Register. The IR can be written to clear interrupts. The
IR can be read to identify which of eight possible interrupt
sources are pending.
R/W
0
PWM1IR - 0x4001 8000
TCR
Timer Control Register. The TCR is used to control the Timer
Counter functions. The Timer Counter can be disabled or reset
through the TCR.
R/W
0
PWM1TCR - 0x4001 8004
TC
Timer Counter. The 32-bit TC is incremented every PR+1
cycles of PCLK. The TC is controlled through the TCR.
R/W
0
PWM1TC -0x4001 8008
PR
Prescale Register. The TC is incremented every PR+1 cycles
of PCLK.
R/W
0
PWM1PR - 0x4001 800C
PC
Prescale Counter. The 32-bit PC is a counter which is
incremented to the value stored in PR. When the value in PR is
reached, the TC is incremented. The PC is observable and
controllable through the bus interface.
R/W
0
PWM1PC - 0x4001 8010
MCR
Match Control Register. The MCR is used to control if an
interrupt is generated and if the TC is reset when a Match
occurs.
R/W
0
PWM1MCR - 0x4001 8014
MR0
Match Register 0. MR0 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 sets any PWM output that is in single-edge
mode, and sets PWM1 if it’s in double-edge mode.
R/W
0
PWM1MR0 - 0x4001 8018
MR1
Match Register 1. MR1 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 PWM1 in either edge mode, and sets
PWM2 if it’s in double-edge mode.
R/W
0
PWM1MR1 - 0x4001 801C
MR2
Match Register 2. MR2 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 PWM2 in either edge mode, and sets
PWM3 if it’s in double-edge mode.
R/W
0
PWM1MR2 - 0x4001 8020
MR3
Match Register 3. MR3 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 PWM3 in either edge mode, and sets
PWM4 if it’s in double-edge mode.
R/W
0
PWM1MR3 - 0x4001 8024