UM10413
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2011. All rights reserved.
User manual
Rev. 1 — 16 December 2011
192 of 268
NXP Semiconductors
UM10413
MPT612 User manual
22.5.1 Interrupt register (IR TIMER3: T3IR - 0xE007 4000)
The interrupt register consists of 4 bits for the match interrupts and 4 bits for the capture
interrupts. If an interrupt is generated, the corresponding bit in the IR is HIGH. Otherwise,
the bit is LOW. Writing a logic 1 to the corresponding IR bit resets the interrupt. Writing a
logic 0 has no effect.
22.5.2 Timer control register (TCR, TIMER3: T3TCR - 0xE007 4004)
The timer control register (TCR) is used to control the operation of the timer counter.
22.5.3 Count control register (CTCR, TIMER3: T3TCR - 0xE007 4070)
The count control register (CTCR) is used to select between Timer and Counter mode,
and in Counter mode to select the pin and edge(s) for counting.
22.5.4 Timer Counter (TC,TIMER3: T3TC - 0xE007 4008)
The 16-bit timer counter is incremented when the prescale counter reaches its terminal
count. Unless it is reset before reaching its upper limit, the TC counts up through the value
0xFFFF FFFF and then wraps back to the value 0xE000 0000. This event does not cause
an interrupt, but a match register can be used to detect an overflow if needed.
Table 177: Interrupt register (IR, TIMER3: T3IR - address 0xE007 4000) bit description
Bit
Symbol
Description
Reset value
0
MR0 Interrupt
interrupt flag for match channel 0
0
1
MR1 Interrupt
interrupt flag for match channel 1
0
2
MR2 Interrupt
interrupt flag for match channel 2
0
3
MR3 Interrupt
interrupt flag for match channel 3
0
4:7
-
reserved
n/a
Table 178: Timer control register (TCR, TIMER3: T3TCR - address 0xE007 4004) bit
description
Bit
Symbol
Description
Reset value
0
Counter Enable if logic 1, timer counter and prescale counter are
enabled for counting. If logic 0, counters are disabled.
0
1
Counter Reset
if logic 1, timer counter and prescale counter are
synchronously reset on next positive edge of PCLK.
Counters remain reset until TCR[1] is returned to logic 0.
0
7:2
-
reserved, user software must not write logic 1s to
reserved bits; value read from a reserved bit is not
defined
n/a
Table 179: Count control register (CTCR, TIMER3: T3TCR - address 0xE007 4070) bit
description
Bit
Symbol
Value
Description
Reset
value
1:0
Counter/
Timer
Mode
00
selects which rising PCLK edges can increment the timer’s
Prescale Counter (PC), or clear PC and increment Timer
Counter (TC).
timer mode: every rising PCLK edge
00
7:2
-
-
reserved, user software must not write logic 1s to reserved
bits; value read from a reserved bit is not defined
n/a