UM10360 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2013. All rights reserved.
User manual Rev. 3 — 19 December 2013  521 of 841
NXP Semiconductors
UM10360
Chapter 24: LPC176x/5x Pulse Width Modulator (PWM)
24.6.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 
values has taken place, all bits of the LER are automatically cleared. Until the 
corresponding bit in the PWMLER is set and a PWM Match 0 event occurs, any value 
written to the PWM Match registers has no effect on PWM operation.
For example, if PWM2 is configured for double edge operation and is currently running, a 
typical sequence of events for changing the timing would be:
• Write a new value to the PWM Match1 register.
• Write a new value to the PWM Match2 register.
• Write to the PWMLER, setting bits 1 and 2 at the same time.
• The altered values will become effective at the next reset of the timer (when a PWM 
Match 0 event occurs).
The order of writing the two PWM Match registers is not important, since neither value will 
be used until after the write to LER. This insures that both values go into effect at the 
same time, if that is required. A single value may be altered in the same way if needed.
The function of each of the bits in the LER is shown in Table 452
.
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
Table 451: PWM Control Register (PWM1PCR - address 0x4001 804C) bit description …continued
Bit Symbol Value Description Reset 
Value