UM10462
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2016. All rights reserved.
User manual
Rev. 5.5 — 21 December 2016
347 of 523
NXP Semiconductors
UM10462
Chapter 15: LPC11U3x/2x/1x 16-bit counter/timers CT16B0/1
15.7.12 PWM Control register
The PWM Control Register is used to configure the match outputs as PWM outputs. Each
match output can be independently set to perform either as PWM output or as match
output whose function is controlled by the External Match Register (EMR).
For each timer, a maximum of three single edge controlled PWM outputs can be selected
on the CT16Bn_MAT[1:0] outputs. One additional match register determines the PWM
cycle length. When a match occurs in any of the other match registers, the PWM output is
set to HIGH. The timer is reset by the match register that is configured to set the PWM
cycle length. When the timer is reset to zero, all currently HIGH match outputs configured
as PWM outputs are cleared.
7:5
SELCC
When bit 4 is a 1, these bits select which capture input edge
will cause the timer and prescaler to be cleared. These bits
have no effect when bit 4 is low. Values 0x6 to 0x7 are
reserved.
0
0x0
Rising Edge of CT16B1_CAP0 clears the timer (if bit 4 is
set).
0x1
Falling Edge of CT16B1_CAP0 clears the timer (if bit 4 is
set).
0x2
Rising Edge of CT16B1_CAP1 clears the timer (if bit 4 is
set).
0x3
Falling Edge of CT16B1_CAP1 clears the timer (if bit 4 is
set).
0x4
Reserved.
0x5
Reserved.
31:8
-
-
Reserved, user software should not write ones to reserved
bits. The value read from a reserved bit is not defined.
-
Table 313. Count Control Register (CTCR, address 0x4001 0070 (CT16B1)) bit description
Bit
Symbol
Value
Description
Reset
value
Table 314. PWM Control Register (PWMC, address 0x4000 C074 (CT16B0) and 0x4001 0074
(CT16B1)) bit description
Bit
Symbol
Value
Description
Reset
value
0
PWMEN0
PWM mode enable for channel0.
0
0
CT16Bn_MAT0 is controlled by EM0.
1
PWM mode is enabled for CT16Bn_MAT0.
1
PWMEN1
PWM mode enable for channel1.
0
0
CT16Bn_MAT01 is controlled by EM1.
1
PWM mode is enabled for CT16Bn_MAT1.
2
PWMEN2
PWM mode enable for channel2.
0
0
CT16Bn_MAT2 is controlled by EM2.
1
PWM mode is enabled for CT16Bn_MAT2.