Datasheet

UM10398 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2014. All rights reserved.
User manual Rev. 12.3 — 10 June 2014 387 of 547
NXP Semiconductors
UM10398
Chapter 21: LPC1100XL series: 32-bit counter/timer CT32B0/1
21.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.
7:5 SELCC When bit 4 is one, 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 zero.
0
0x0 Rising Edge of CAP0 clears the timer (if bit 4 is set).
0x1 Falling Edge of CAP0 clears the timer (if bit 4 is set).
0x2 Rising Edge of CAP1 clears the timer (if bit 4 is set).
0x3 Falling Edge of CAP1 clears the timer (if bit 4 is set).
0x4 Reserved.
0x5 Reserved.
0x6 Reserved.
0x7 Reserved.
31:8 - - Reserved, user software should not write ones to reserved
bits. The value read from a reserved bit is not defined.
-
Table 341: Count Control Register (TMR32B0CTCR - address 0x4001 4070 and TMR32B1TCR
- address 0x4001 8070) bit description
…continued
Bit Symbol Value Description Reset
value
Table 342: PWM Control Register (TMR32B0PWMC - 0x4001 4074 and TMR32B1PWMC -
0x4001 8074) bit description
Bit Symbol Value Description Reset
value
0 PWMEN0 PWM channel 0 enable 0
0 CT32Bn_MAT0 is controlled by EM0.
1 PWM mode is enabled for CT32Bn_MAT0.
1 PWMEN1 PWM channel 1 enable 0
0 CT32Bn_MAT1 is controlled by EM1.
1 PWM mode is enabled for CT32Bn_MAT1.
2 PWMEN2 PWM channel 2 enable 0
0 CT32Bn_MAT2 is controlled by EM2.
1 PWM mode is enabled for CT32Bn_MAT2.