Interrupt Register (Ir Timer2: T2Ir -; Timer Control Register (Tcr, Timer2: T2Tcr - 0Xe007 0004 And Timer3: T3Tcr - 0Xe007 4004); User Manual - Philips LPC2101 User Manual

Table of Contents

Advertisement

Philips Semiconductors
Volume 1
Table 175: TIMER/COUNTER2 and TIMER/CT3OUNTER3 register map
Generic
Description
Name
EMR
External Match Register. The EMR controls the
external match pins MAT2.2..0 and MAT3.3..0.
Note: MAT2.3 is not connected to a pin on
LPC2101/02/03.
CTCR
Count Control Register. The CTCR selects between
Timer and Counter mode, and in Counter mode
selects the signal and edge(s) for counting.
PWMCON PWM Control Register. The PWMCON enables
PWM mode for the external match pins MAT2.3..0
and MAT3.3..0.
[1]
16.5.1 Interrupt Register (IR TIMER2: T2IR - 0xE007 0000 and TIMER3: T3IR -
0xE007 4000)
The Interrupt Register consists of four bits for the match interrupts and four bits for the
capture interrupts. If an interrupt is generated then the corresponding bit in the IR will be
HIGH. Otherwise, the bit will be LOW. Writing a logic one to the corresponding IR bit will
reset the interrupt. Writing a zero has no effect.
Table 176: Interrupt Register (IR, TIMER2T2: T2IR - address 0xE007 0000 and TIMER3: T3IR - address 0xE007 4000)
bit description
Bit
Symbol
0
MR0 Interrupt
1
MR1 Interrupt
2
MR2 Interrupt
3
MR3 Interrupt
4
CR0 Interrupt
5
CR1 Interrupt
6
CR2 Interrupt
7
CR3 Interrupt
16.5.2 Timer Control Register (TCR, TIMER2: T2TCR - 0xE007 0004 and
TIMER3: T3TCR - 0xE007 4004)
The Timer Control Register (TCR) is used to control the operation of the Timer/Counter.

User manual

Reset value reflects the data stored in used bits00 only. It does not include reserved bits content.
Description
Interrupt flag for match channel 0.
Interrupt flag for match channel 1.
Interrupt flag for match channel 2.
Interrupt flag for match channel 3.
Interrupt flag for capture channel 0 event.
Interrupt flag for capture channel 1 event.
Interrupt flag for capture channel 2 event.
Interrupt flag for capture channel 3 event.
Note: CAPn.3 not usable on Timer 2/Timer3
Rev. 01 — 12 January 2006
Chapter 16: Timer2 and Timer3
Access Reset
TIMER/
[1]
value
COUNTER2
Address &
Name
R/W
0
0xE007 003C
T2EMR
R/W
0
0xE007 0070
T2CTCR
R/W
0
0xE007 0074
PWM0CON
© Koninklijke Philips Electronics N.V. 2006. All rights reserved.
UM10161
TIMER/
COUNTER3
Address &
Name
0xE007 403C
T3EMR
0xE007 4070
T3CTCR
0xE007 4074
PWM1CON
Reset value
0
0
0
0
0
0
0
0
203

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lpc2103Lpc2102

Table of Contents