UM10429
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2010. All rights reserved.
User manual
Rev. 1 — 20 October 2010
127 of 258
NXP Semiconductors
UM10429
Chapter 13: LPC11102 32-bit counter/timers (CT32B0/1)
13.7.12 PWM Control Register (TMR32B0PWMC and TMR32B1PWMC)
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.
Table 127. Count Control Register (TMR32B0CTCR - address 0x4001 4070 and TMR32B1TCR
- address 0x4001 8070) bit description
Bit
Symbol
Value
Description
Reset
value
1:0
CTM
Counter/Timer Mode. This field selects which rising PCLK
edges can increment Timer’s Prescale Counter (PC), or clear
PC and increment Timer Counter (TC).
Timer Mode: every rising PCLK edge
00
0x0
Timer Mode: every rising PCLK edge
0x1
Counter Mode: TC is incremented on rising edges on the
CAP input selected by bits 3:2.
0x2
Counter Mode: TC is incremented on falling edges on the
CAP input selected by bits 3:2.
0x3
Counter Mode: TC is incremented on both edges on the CAP
input selected by bits 3:2.
3:2
CIS
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 in the TnCTCR, the 3 bits
for that input in the Capture Control Register (TnCCR) must
be programmed as 000.
0x1 - 0x3 reserved.
00
0x0
CT32Bn_CAP0
31:4
-
-
Reserved, user software should not write ones to reserved
bits. The value read from a reserved bit is not defined.
NA
Table 128. PWM Control Register (TMR32B0PWMC - 0x4001 4074 and TMR32B1PWMC -
0x4001 8074) bit description
Bit
Symbol
Description
Reset value
0
PWM enable
When one, PWM mode is enabled for CT32Bn_MAT0.
When zero, CT32Bn_MAT0 is controlled by EM0.
0
1
PWM enable
When one, PWM mode is enabled for CT32Bn_MAT1.
When zero, CT32Bn_MAT1 is controlled by EM1.
0