186
Philips Semiconductors
Preliminary User Manual
LPC2119/2129/2292/2294
ARM-based Microcontroller
External Match Register (EMR: TIMER0 - T0EMR: 0xE000403C; TIMER1 - T1EMR: 0xE000803C)
The External Match Register provides both control and status of the external match pins M(0-3).
Table 161: External Match Register (EMR: TIMER0 - T0EMR: 0xE000403C; TIMER1 - T1EMR: 0xE000803C)
EMR
Function Description
Reset
Value
0
External Match 0
This bit reflects the state of output MAT0.0/MAT1.0, whether or not this output is
connected to its pin. When a match occurs for MR0, this output of the timer can either
toggle, go low, go high, or do nothing. Bits EMR[4:5] control the functionality of this
output.
0
1
External Match 1
This bit reflects the state of output MAT0.1/MAT1.1, whether or not this output is
connected to its pin. When a match occurs for MR1, this output of the timer can either
toggle, go low, go high, or do nothing. Bits EMR[6:7] control the functionality of this
output.
0
2
External Match 2
This bit reflects the state of output MAT0.2/MAT1.2, whether or not this output is
connected to its pin. When a match occurs for MR2, this output of the timer can either
toggle, go low, go high, or do nothing. Bits EMR[8:9] control the functionality of this
output.
0
3
External Match 3
This bit reflects the state of output MAT0.3/MAT1.3, whether or not this output is
connected to its pin. When a match occurs for MR3, this output of the timer can either
toggle, go low, go high, or do nothing. Bits EMR[10:11] control the functionality of this
output.
0
5:4
External Match
Control 0
Determines the functionality of External Match 0. Table 162
shows the encoding of
these bits.
0
7:6
External Match
Control 1
Determines the functionality of External Match 1. Table 162
shows the encoding of
these bits.
0
9:8
External Match
Control 2
Determines the functionality of External Match 2. Table 162
shows the encoding of
these bits.
0
11:10
External Match
Control 3
Determines the functionality of External Match 3. Table 162
shows the encoding of
these bits.
0
Table 162: External Match Control
EMR[11:10], EMR[9:8],
EMR[7:6], or EMR[5:4]
Function
0 0
Do Nothing
0 1
Clear corresponding External Match output to 0 (LOW if pinned out)
1 0
Set corresponding External Match output to 1(HIGH if pinned out)
1 1
Toggle corresponding External Match output