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
340 of 523
NXP Semiconductors
UM10462
Chapter 15: LPC11U3x/2x/1x 16-bit counter/timers CT16B0/1
15.7.7 Match Registers
The Match register values are continuously compared to the Timer Counter value. When
the two values are equal, actions can be triggered automatically. The action possibilities
are to generate an interrupt, reset the Timer Counter, or stop the timer. Actions are
controlled by the settings in the MCR register.
15.7.8 Capture Control Register
The Capture Control Register is used to control whether the Capture Register is loaded
with the value in the Counter/timer when the capture event occurs, and whether an
interrupt is generated by the capture event. Setting both the rising and falling bits at the
same time is a valid configuration, resulting in a capture event for both edges. In the
description below, n represents the Timer number, 0 or 1.
Remark:
The bit positions for the CAP1 channel control bits are different for
counter/timers CT16B0 (bits 8:6,
) and CT16B1 (bits 5:3,
).
8
MR2S
Stop on MR2: the TC and PC will be stopped and TCR[0] will be set to 0 if MR2 matches
the TC.
0
1
Enabled
0
Disabled
9
MR3I
Interrupt on MR3: an interrupt is generated when MR3 matches the value in the TC.
0
1
Enabled
0
Disabled
10
MR3R
Reset on MR3: the TC will be reset if MR3 matches it.
0
1
Enabled
0
Disabled
11
MR3S
Stop on MR3: the TC and PC will be stopped and TCR[0] will be set to 0 if MR3 matches
the TC.
0
1
Enabled
0
Disabled
31:12
-
Reserved, user software should not write ones to reserved bits. The value read from a
reserved bit is not defined.
NA
Table 303. Match Control Register (MCR, address 0x4000 C014 (CT16B0) and 0x4001 0014 (CT16B1)) bit description
…continued
Bit
Symbol
Value Description
Reset
value
Table 304: Match registers (MR[0:3], addresses 0x4000 C018 (MR0) to 0x4000 C024 (MR3)
(CT16B0) and 0x4001 0018 (MR0) to 0x4001 0024 (MR3) (CT16B1)) bit description
Bit
Symbol
Description
Reset
value
15:0
MATCH
Timer counter match value.
0
31:16
-
Reserved.
-