© Koninklijke Philips Electronics N.V. 2006. All rights reserved.
User manual
Rev. 01 — 12 January 2006
202
Philips Semiconductors
UM10161
Volume 1
Chapter 16: Timer2 and Timer3
Table 175: TIMER/COUNTER2 and TIMER/CT3OUNTER3 register map
Generic
Name
Description
Access
Reset
value
TIMER/
COUNTER2
Address &
Name
TIMER/
COUNTER3
Address &
Name
IR
Interrupt Register. The IR can be written to clear
interrupts. The IR can be read to identify which of
eight possible interrupt sources are pending.
R/W
0
0xE007 0000
T2IR
0xE007 4000
T3IR
TCR
Timer Control Register. The TCR is used to control
the Timer Counter functions. The Timer Counter can
be disabled or reset through the TCR.
R/W
0
0xE007 0004
T2TCR
0xE007 4004
T3TCR
TC
Timer Counter. The 16-bit TC is incremented every
PR+1 cycles of PCLK. The TC is controlled through
the TCR.
R/W
0
0xE007 0008
T2TC
0xE007 4008
T3TC
PR
Prescale Register. The Prescale Counter (below) is
equal to this value. The next clock increments the
TC and clears the PC.
R/W
0
0xE007 000C
T2PR
0xE007 400C
T3PR
PC
Prescale Counter. The 16-bit PC is a counter which
is incremented to the value stored in PR. When the
value in PR is reached, the TC is incremented and
the PC is cleared. The PC is observable and
controllable through the bus interface.
R/W
0
0xE007 0010
T2PC
0xE007 4010
T3PC
MCR
Match Control Register. The MCR is used to control
if an interrupt is generated and if the TC is reset
when a Match occurs.
R/W
0
0xE007 0014
T2MCR
0xE007 4014
T3MCR
MR0
Match Register 0. MR0 can be enabled through the
MCR to reset the TC, stop both the TC and PC,
and/or generate an interrupt every time MR0
matches the TC.
R/W
0
0xE007 0018
T2MR0
0xE007 4018
T3MR0
MR1
Match Register 1. See MR0 description.
R/W
0
0xE007 001C
T2MR1
0xE007 401C
T3MR1
MR2
Match Register 2. See MR0 description.
R/W
0
0xE007 0020
T2MR2
0xE007 4020
T3MR2
MR3
Match Register 3. See MR0 description.
R/W
0
0xE007 0024
T2MR3
0xE007 4024
T3MR3
CCR
Capture Control Register. The CCR controls which
edges of the capture inputs are used to load the
Capture Registers and whether or not an interrupt is
generated when a capture takes place.
R/W
0
0xE007 0028
T2CCR
0xE007 4028
T3CCR
CR0
Capture Register 0. CR0 is loaded with the value of
TC when there is an event on the CAP2.0 input.
Note:
CAP3.0 not usable on Timer 3
RO
0
0xE007 002C
T2CR0
0xE007 402C
T3CR0
CR1
Capture Register 1. See CR0 description.
Note:
CAP3.1 not usable on Timer 3
RO
0
0xE007 0030
T2CR1
0xE007 4030
T3CR1
CR2
Capture Register 2. See CR0 description.
Note:
CAP3.2 not usable on Timer 3
RO
0
0xE007 0034
T2CR2
0xE007 4034
T3CR2