
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
492 of 808
NXP Semiconductors
UM10360
Chapter 24: LPC17xx Pulse Width Modulator (PWM)
7.6 PWM Control Register (PWM1PCR - 0x4001 804C)
The PWM Control Register is used to enable and select the type of each PWM channel.
The function of each of the bits are shown in
7.7 PWM Latch Enable Register (PWM1LER - 0x4001 8050)
The PWM Latch Enable Registers are used to control the update of the PWM Match
registers when they are used for PWM generation. When software writes to the location of
a PWM Match register while the Timer is in PWM mode, the value is captured, but not
used immediately.
When a PWM Match 0 event occurs (normally also resetting the timer in PWM mode), the
contents of shadow registers will be transferred to the shadow registers if the
corresponding bit in the Latch Enable Register has been set. At that point, the new values
will take effect and determine the course of the next PWM cycle. Once the transfer of new
Table 433: PWM Control Register (PWM1PCR - address 0x4001 804C) bit description
Bit
Symbol
Value Description
Rese
t
Value
1:0
Unused
Unused, always zero.
NA
2
PWMSEL2 1
Selects double edge controlled mode for the PWM2 output.
0
0
Selects single edge controlled mode for PWM2.
3
PWMSEL3 1
Selects double edge controlled mode for the PWM3 output.
0
0
Selects single edge controlled mode for PWM3.
4
PWMSEL4 1
Selects double edge controlled mode for the PWM4 output.
0
0
Selects single edge controlled mode for PWM4.
5
PWMSEL5 1
Selects double edge controlled mode for the PWM5 output.
0
0
Selects single edge controlled mode for PWM5.
6
PWMSEL6 1
Selects double edge controlled mode for the PWM6 output.
0
0
Selects single edge controlled mode for PWM6.
8:7
-
Reserved, user software should not write ones to reserved
bits. The value read from a reserved bit is not defined.
NA
9
PWMENA1 1
The PWM1 output enabled.
0
0
The PWM1 output disabled.
10
PWMENA2 1
The PWM2 output enabled.
0
0
The PWM2 output disabled.
11
PWMENA3 1
The PWM3 output enabled.
0
0
The PWM3 output disabled.
12
PWMENA4 1
The PWM4 output enabled.
0
0
The PWM4 output disabled.
13
PWMENA5 1
The PWM5 output enabled.
0
0
The PWM5 output disabled.
14
PWMENA6 1
The PWM6 output enabled.
0
0
The PWM6 output disabled.
31:15 Unused
Unused, always zero.
NA