![NXP Semiconductors LPC43Sxx Скачать руководство пользователя страница 1027](http://html1.mh-extra.com/html/nxp-semiconductors/lpc43sxx/lpc43sxx_user-manual_17218271027.webp)
UM10503
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2015. All rights reserved.
User manual
Rev. 2.1 — 10 December 2015
1027 of 1441
NXP Semiconductors
UM10503
Chapter 32: LPC43xx/LPC43Sxx Timer0/1/2/3
32.6.7 Timer match registers (MR0 - MR3)
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.
32.6.8 Timer capture control registers
The Capture Control Register is used to control whether one of the four Capture Registers
is loaded with the value in the Timer Counter 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.
Remark:
If Counter mode is selected for a particular CAP input in the CTCR, the 3 bits for
that input in this register should be programmed as 000, but capture and/or interrupt can
be selected for the other 3 CAP inputs.
Table 793. Timer match registers (MR[0:3], addresses 0x4008 4018 (MR0) to 0x4008 4024
(M3) (TIMER0), 0x4008 5018 (MR0) to 0x4008 5024 (MR3)(TIMER1), 0x400C 3018
(MR0) to 0x400C 8024 (MR3) (TIMER2), 0x400C 4018 (MR0) to 0x400C 4024
(MR3)(TIMER3)) bit description
Bit
Symbol
Description
Reset
value
31:0
MATCH
Timer counter match value.
0
Table 794. Timer capture control registers (CCR, addresses 0x4008 4028 (TIMER0),
0x4008 5020 (TIMER1), 0x400C 3028 (TIMER2), 0x400C 4028 (TIMER3)) bit
description
Bit
Symbol
Value
Description
Reset
value
0
CAP0RE
Capture on CAPn.0 rising edge
0
0
Disabled. This feature is disabled.
1
Low to high. A sequence of 0 then 1 on CAPn.0 will cause CR0
to be loaded with the contents of TC.
1
CAP0FE
Capture on CAPn.0 falling edge
0
0
Disabled. This feature is disabled.
1
High to low. A sequence of 1 then 0 on CAPn.0 will cause CR0
to be loaded with the contents of TC.
2
CAP0I
Interrupt on CAPn.0 event
0
0
Disabled. This feature is disabled.
1
Load. A CR0 load due to a CAPn.0 event will generate an
interrupt.
3
CAP1RE
Capture on CAPn.1 rising edge
0
0
Disabled. This feature is disabled.
1
Low to high. A sequence of 0 then 1 on CAPn.1 will cause CR1
to be loaded with the contents of TC.