External Match Register (Emr, Timer2: T2Emr - 0Xe007 003C; And Timer3: T3Emr - 0Xe007 403C); User Manual - Philips LPC2101 User Manual

Table of Contents

Advertisement

Philips Semiconductors
Volume 1
16.5.11 External Match Register (EMR, TIMER2: T2EMR - 0xE007 003C; and
TIMER3: T3EMR - 0xE007 403C)
The External Match Register provides both control and status of the external match pins
MAT(0-3).
If the match ouputs are configured as PWM output, the function of the external match
registers is determined by the PWM rules
PWM ouputs" on page
Table 181: External Match Register (EMR, TIMER2: T2EMR - address 0xE007 003C and TIMER3: T3EMR -
address0xE007 4016-bit3C) bit description
Bit
Symbol
Description
0
EM0
External Match 0. This bit reflects the state of output MAT2.0/MAT3.0, whether or not this
output is connected to its pin. When a match occurs between the TC and MR0, this output
of the timer can either toggle, go LOW, go HIGH, or do nothing. Bits EMR[5:4] control the
functionality of this output.
1
EM1
External Match 1. This bit reflects the state of output MAT2.1/MAT3.1, whether or not this
output is connected to its pin. When a match occurs between the TC and MR1, this output
of the timer can either toggle, go LOW, go HIGH, or do nothing. Bits EMR[7:6] control the
functionality of this output.
2
EM2
External Match 2. This bit reflects the state of output MAT2.2/MAT3.2, whether or not this
output is connected to its pin. When a match occurs between the TC and MR2, this output
of the timer can either toggle, go LOW, go HIGH, or do nothing. Bits EMR[9:8] control the
functionality of this output.
3
EM3
External Match 3. This bit reflects the state of output MAT2.3/MAT3.3, whether or not this
output is connected to its pin. When a match occurs between the TC and MR3, this output
of the timer can either toggle, go LOW, go HIGH, or do nothing. Bits EMR[11:10] control
the functionality of this output.
5:4
EMC0
External Match Control 0. Determines the functionality of External Match 0.
shows the encoding of these bits.
7:6
EMC1
External Match Control 1. Determines the functionality of External Match 1.
shows the encoding of these bits.
9:8
EMC2
External Match Control 2. Determines the functionality of External Match 2.
shows the encoding of these bits.
11:10
EMC3
External Match Control 3. Determines the functionality of External Match 3.
shows the encoding of these bits.
15:12
-
Reserved, user software should not write ones to reserved bits. The value read from a
reserved bit is not defined.
Table 182: External match control
EMR[11:10], EMR[9:8],
EMR[7:6], or EMR[5:4]
00
01
10
11

User manual

209).
Function
Do Nothing.
Clear the corresponding External Match bit/output to 0 (MATn.m pin is LOW if pinned out).
Set the corresponding External Match bit/output to 1 (MATn.m pin is HIGH if pinned out).
Toggle the corresponding External Match bit/output.
Rev. 01 — 12 January 2006
Chapter 16: Timer2 and Timer3
(Section 16.7 "Rules for single edge controlled
© Koninklijke Philips Electronics N.V. 2006. All rights reserved.
UM10161
Reset
value
0
0
0
0
Table 182
00
Table 182
00
Table 182
00
Table 182
00
NA
208

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lpc2103Lpc2102

Table of Contents