
UM10850
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2016. All rights reserved.
User manual
Rev. 2.4 — 13 September 2016
217 of 464
NXP Semiconductors
UM10850
Chapter 14: LPC5410x Standard counter/timers (CT32B0/1/2/3/4)
14.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 MATn.2: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.
3:2
CINSEL
Count Input Select
When bits 1:0 in this register are not 00, these bits select which CAP pin is
sampled for clocking.
Note:
If Counter mode is selected for a particular CAPn input in the CTCR, the 3
bits for that input in the Capture Control Register (CCR) must be programmed as
000. However, capture and/or interrupt can be selected for the other 3 CAPn inputs
in the same timer.
0
0x0
Channel 0. CAPn.0 for CT32Bn
0x1
Channel 1. CAPn.1 for CT32Bn
0x2
Channel 2. CAPn.2 for CT32Bn
0x3
Channel 3. CAPn.3 for CT32Bn
4
ENCC
Setting this bit to 1 enables clearing of the timer and the prescaler when the
capture-edge event specified in bits 7:5 occurs.
0
7:5
SELCC
Edge select. When bit 4 is 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 0x2 to 0x3 and 0x6 to 0x7 are reserved.
0
0x0
Channel 0 Rising Edge. Rising edge of the signal on capture channel 0 clears the
timer (if bit 4 is set).
0x1
Channel 0 Falling Edge. Falling edge of the signal on capture channel 0 clears the
timer (if bit 4 is set).
0x2
Channel 1 Rising Edge. Rising edge of the signal on capture channel 1 clears the
timer (if bit 4 is set).
0x3
Channel 1 Falling Edge. Falling edge of the signal on capture channel 1 clears the
timer (if bit 4 is set).
0x4
Channel 2 Rising Edge. Rising edge of the signal on capture channel 2 clears the
timer (if bit 4 is set).
0x5
Channel 2 Falling Edge. Falling edge of the signal on capture channel 2 clears the
timer (if bit 4 is set).
31:8
-
Reserved. Read value is undefined, only zero should be written.
NA
Table 263. Count Control Register (CTCR, address offset 0x070) bit description
Bit
Symbol
Value Description
Reset Value
Table 264. Address map PWMC register
Peripheral
Base address
Offset
Increment
Dimension
CT32B0
0x400B 4000
0x074
-
1
CT32B1
0x400B 8000
0x074
-
1