
DR
AFT
DR
AFT
DRAFT
DR
D
RAFT
DRAFT
DRA
FT DRAF
D
RAFT DRAFT DRAFT DRAFT DRAFT D
DRAFT
D
RAFT DRA
FT DRAFT DRAFT DRAFT DRA
UM10360_0
© NXP B.V. 2009. All rights reserved.
User manual
Rev. 00.06 — 5 June 2009
489 of 808
NXP Semiconductors
UM10360
Chapter 24: LPC17xx Pulse Width Modulator (PWM)
7.4 PWM Match Control Register (PWM1MCR - 0x4001 8014)
The PWM Match Control Registers are used to control what operations are performed
when one of the PWM Match Registers matches the PWM Timer Counter. The function of
each of the bits is shown in
Table 430: PWM Count control Register (PWM1CTCR - address 0x4001
8
004) bit description
Bit
Symbol
Value
Description
Reset
Value
1:0
Counter/
Timer Mode
00
Timer Mode: the TC is incremented when the Prescale
Counter matches the Prescale Register.
00
01
Counter Mode: the TC is incremented on rising edges of
the PCAP input selected by bits 3:2.
10
Counter Mode: the TC is incremented on falling edges of
the PCAP input selected by bits 3:2.
11
Counter Mode: the TC is incremented on both edges of
the PCAP input selected by bits 3:2.
3:2
Count Input
Select
When bits 1:0 of this register are not 00, these bits select
which PCAP pin which carries the signal used to
increment the TC.
00
00
PCAP1.0
01
PCAP1.1 (Other combinations are reserved)
7:4
-
Reserved, user software should not write ones to
reserved bits. The value read from a reserved bit is not
defined.
NA
Table 431: Match Control Register (PWM1MCR - address 0x4000 4014) bit description
Bit
Symbol
Value Description
Reset
Value
0
PWMMR0I
1
Interrupt on PWMMR0: an interrupt is generated when
PWMMR0 matches the value in the PWMTC.
0
0
This interrupt is disabled.
1
PWMMR0R 1
Reset on PWMMR0: the PWMTC will be reset if PWMMR0
matches it.
0
0
This feature is disabled.
2
PWMMR0S 1
Stop on PWMMR0: the PWMTC and PWMPC will be stopped
and PWMTCR[0] will be set to 0 if PWMMR0 matches the
PWMTC.
0
0
This feature is disabled
3
PWMMR1I
1
Interrupt on PWMMR1: an interrupt is generated when
PWMMR1 matches the value in the PWMTC.
0
0
This interrupt is disabled.
4
PWMMR1R 1
Reset on PWMMR1: the PWMTC will be reset if PWMMR1
matches it.
0
0
This feature is disabled.
5
PWMMR1S 1
Stop on PWMMR1: the PWMTC and PWMPC will be stopped
and PWMTCR[0] will be set to 0 if PWMMR1 matches the
PWMTC.
0
0
This feature is disabled.