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
UM10316_0
© NXP B.V. 2008. All rights reserved.
User manual
Rev. 00.06 — 17 December 2008
253 of 571
NXP Semiconductors
UM10316
Chapter 17: LPC29xx timer 0/1/2/3
5.6 Timer match register
The MR determines the timer-counter match value. Four match registers are available per
timer.
5.7 Timer capture-control register
The CCR controls when one of the four possible capture registers is loaded with the value
in the timer counter, and whether an interrupt is generated when the capture occurs.
A rising edge is detected if the sequence logic 0 followed by logic 1 occurs: a falling edge
is detected if logic 1 followed by logic 0 occurs. The capture control register maintains
two bits for each of the counter registers to enable sequence detection for each of the
capture registers. If the enabled sequence is detected the timer counter value is loaded
into the capture register. If it has been enabled through the interrupt-enable control
register an interrupt is then generated. Setting both the rising and falling bits at the same
time is a valid configuration.
A reset clears the CCR register.
5 and 4
CTRL_0[1:0]
R/W
External match control 0
00*
Do nothing
01
Set logic 0
10
Set logic 1
11
Toggle
3
EMR_3
R
0
Current value of the Match 3 pin
2
EMR_2
R
0
Current value of the Match 2 pin
1
EMR_1
R
0
Current value of the Match 1 pin
0
EMR_0
R
0
Current value of the Match 0 pin
Table 209. EMR register bits
…continued
* = reset value
Bit
Variable name
Access
Value
Description
Table 210. MR register bits
* = reset value
Bit
Variable name
Access
Value
Description
31 to 0
MR[31:0]
R/W
Match register. This specifies the match
value for the timer counter
0000 00
00h*
Table 211. CCR register bits
* = reset value
Bit
Variable name
Access
Value
Description
31 to 8
reserved
R
-
Reserved; do not modify. Read as logic 0
7
FALL_3
R/W
1
Capture on capture input 3 falling. When
logic 1, a sequence of logic 1 followed by
logic 0 from capture input 3 causes CR3 to
be loaded with the contents of TC
0*